OSDN Git Service

DispSync: Don't resync if HW vsync is unavailable
authorDan Stoza <stoza@google.com>
Tue, 19 Apr 2016 18:56:20 +0000 (11:56 -0700)
committerDan Stoza <stoza@google.com>
Tue, 19 Apr 2016 18:56:20 +0000 (11:56 -0700)
commit0a3c4d6f8c95a89875455e989278a440822968d7
treed5d9a2bb282f90cb5632b74de8d8ee20c76c45d2
parent6328134d8f3969e5cf345bec84b2c6455afc6a34
DispSync: Don't resync if HW vsync is unavailable

Don't attempt to resync to hardware vsync if it's not available (if
the display is blanked), which should prevent unusual sequences of
commands (enable vsync, then unblank) to hardware composer.

Bug: 28177844
Change-Id: I9d6046fb0a346830e98829fd250642f0809d7e31
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger_hwc1.cpp