OSDN Git Service

DO NOT MERGE: SF: disable HW vsync while dozing
authorZheng Zhang <zhzh@google.com>
Fri, 17 Mar 2017 10:19:39 +0000 (11:19 +0100)
committerZheng Zhang <zhzh@google.com>
Tue, 18 Apr 2017 23:04:11 +0000 (23:04 +0000)
commit46d455b3abaa2c7a54c8d4e3b3cd5a03fe59ac2f
treeb92f03cb777ba9632b0b25d10a9ce35f83bb21eb
parentc1038b66dddb28ca1d3a1b6fc12f433c5a852128
DO NOT MERGE: SF: disable HW vsync while dozing

It cancels any in-progress resync when display goes to sleep, then
it avoids any unexpected wake up due to delayed frames once device
has just switched to ambient mode.

In DOZE_SUSPEND, screen displays a still image in a self-refresh mode,
so there is no need to keep aligned with HW vsync. At the opposite, DOZE
mode is used to refresh the screen in Ambient (i.e. watchface refresh,
nofications, app updates in ambi-active), hence resync SF to HW vsync.

Bug: 35998607
Bug: 36215242
Change-Id: I22cd8f84e9aca04b4f657fe07785751cf31a7c68
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger_hwc1.cpp