OSDN Git Service

Improve the VSYNC api a bit.
authorMathias Agopian <mathias@google.com>
Wed, 7 Dec 2011 01:22:19 +0000 (17:22 -0800)
committerMathias Agopian <mathias@google.com>
Wed, 7 Dec 2011 06:43:10 +0000 (22:43 -0800)
commit478ae5eb5a0047e1b2988c896cff6363b455ee50
treebb3e26939a6b6a0c0b0b5ab4b12fe4f0dc5d7bf3
parent9bbbcf8c65771e581a8bdbe5d1cc70e3faf310ab
Improve the VSYNC api a bit.

- add the ability to set the vsync delivery rate, when the rate is
set to N>1 (ie: receive every N vsync), SF process' is woken up for
all of vsync, but clients only see the every N events.

- add the concept of one-shot vsync events, with a call-back
to request the next one. currently the call-back is a binder IPC.

Change-Id: I09f71df0b0ba0d88ed997645e2e2497d553c9a1b
include/gui/DisplayEventReceiver.h
include/gui/IDisplayEventConnection.h
libs/gui/DisplayEventReceiver.cpp
libs/gui/IDisplayEventConnection.cpp
services/surfaceflinger/DisplayEventConnection.cpp
services/surfaceflinger/DisplayEventConnection.h
services/surfaceflinger/EventThread.cpp
services/surfaceflinger/EventThread.h
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h