OSDN Git Service

DispSync: remove delay when enabling vsync events
authorJamie Gennis <jgennis@google.com>
Tue, 29 Oct 2013 20:36:12 +0000 (13:36 -0700)
committerJamie Gennis <jgennis@google.com>
Fri, 1 Nov 2013 20:58:56 +0000 (13:58 -0700)
commit41c3c496ff507554da1c6099c600809608bdbb81
tree4a4a2292359b47432b41f1707c65c205bcdb1611
parent46417b845a257d6725adf048a3cfad6306218e9b
DispSync: remove delay when enabling vsync events

This change fixes a bug that caused an extra frame of latency when enabling
vsync event callbacks in DispSync.  The bug was related to the logic that
prevents the two events from firing with very little time between them due to
updates to the vsync model.

Bug: 11479720
Change-Id: Ie7eaff9e92ffb7b7b6cb4d3d4402c96cbd29af7e
services/surfaceflinger/DispSync.cpp