sdm: Enable autorefresh only one single buffer layer is present

Enable autorefresh for layerstack with only one single buffer
layer to avoid ping pong timeout issue. If there are more UI
layers disable auto refresh and keep triggering display refresh
until we hit a single buffer layer only case.

Change-Id: Ia7e8eec9cf30d32faf88be256372307d7b7ab5e0
CRs-Fixed: 957373
1 file changed