OSDN Git Service

fix an issue with vsync event delivery
authorMathias Agopian <mathias@google.com>
Wed, 1 Feb 2012 00:42:54 +0000 (16:42 -0800)
committerMathias Agopian <mathias@google.com>
Wed, 1 Feb 2012 00:42:54 +0000 (16:42 -0800)
commit3cf199aef6250552555344944c3e3a6e4ab05f92
tree70a99a9ea03df2e92aaadd1f47f24b3502f7547c
parent4fb3e778edf6f70e7fa82b45223784347ef521f9
fix an issue with vsync event delivery

vsync events were sometimes delivered to connected
client who didn't request them. this happened if
another client requested the delivery and that client
was first in the client list.

also fix the vsync test which didn't request any events as
well as DisplayEventReveiver documentation which was misleading
about the necessity to request vsync events.

Change-Id: Ie990fda3f337f8f0042745c4b2cde67936c45686
include/gui/DisplayEventReceiver.h
services/surfaceflinger/EventThread.cpp
services/surfaceflinger/tests/vsync/vsync.cpp