diff options
author | Mathias Agopian <mathias@google.com> | 2012-01-31 16:42:54 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-01-31 16:42:54 -0800 |
commit | 3cf199aef6250552555344944c3e3a6e4ab05f92 (patch) | |
tree | 70a99a9ea03df2e92aaadd1f47f24b3502f7547c /include/gui | |
parent | 4fb3e778edf6f70e7fa82b45223784347ef521f9 (diff) | |
download | frameworks_native-3cf199aef6250552555344944c3e3a6e4ab05f92.zip frameworks_native-3cf199aef6250552555344944c3e3a6e4ab05f92.tar.gz frameworks_native-3cf199aef6250552555344944c3e3a6e4ab05f92.tar.bz2 |
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
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/DisplayEventReceiver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/gui/DisplayEventReceiver.h b/include/gui/DisplayEventReceiver.h index dccc164..a281377 100644 --- a/include/gui/DisplayEventReceiver.h +++ b/include/gui/DisplayEventReceiver.h @@ -63,7 +63,9 @@ public: public: /* * DisplayEventReceiver creates and registers an event connection with - * SurfaceFlinger. Events start being delivered immediately. + * SurfaceFlinger. VSync events are disabled by default. Call setVSyncRate + * or requestNextVsync to receive them. + * Other events start being delivered immediately. */ DisplayEventReceiver(); |