summaryrefslogtreecommitdiff
path: root/libs/androidfw/DisplayEventDispatcher.cpp
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2017-06-08 15:40:38 -0700
committerJorim Jaggi <jjaggi@google.com>2017-06-08 17:22:43 -0700
commit34a0cdb98eb5561774ea4e7b3b602aad80c4a3cc (patch)
treeadece5dc12a5ed961ead639525c7c1134ad56829 /libs/androidfw/DisplayEventDispatcher.cpp
parent245281c056a5b880486671157b48d6c4e5815ce1 (diff)
Properly run window animations at vsync-sf (1/2)
- Add new Choreographer instance that runs on vsync-sf - Use this new Choreographer for WindowAnimator, and remove all the hacks around it Test: Open apps and close apps, notice no stutter Test: Screen zoom animations Test: go/wm-smoke Bug: 36631902 Change-Id: I988ae25645effc3ac20efa7cb9b68f23444da0d0
Diffstat (limited to 'libs/androidfw/DisplayEventDispatcher.cpp')
-rw-r--r--libs/androidfw/DisplayEventDispatcher.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/androidfw/DisplayEventDispatcher.cpp b/libs/androidfw/DisplayEventDispatcher.cpp
index b8ef9ea49293..7708e4340397 100644
--- a/libs/androidfw/DisplayEventDispatcher.cpp
+++ b/libs/androidfw/DisplayEventDispatcher.cpp
@@ -33,8 +33,9 @@ namespace android {
// using just a few large reads.
static const size_t EVENT_BUFFER_SIZE = 100;
-DisplayEventDispatcher::DisplayEventDispatcher(const sp<Looper>& looper) :
- mLooper(looper), mWaitingForVsync(false) {
+DisplayEventDispatcher::DisplayEventDispatcher(const sp<Looper>& looper,
+ ISurfaceComposer::VsyncSource vsyncSource) :
+ mLooper(looper), mReceiver(vsyncSource), mWaitingForVsync(false) {
ALOGV("dispatcher %p ~ Initializing display event dispatcher.", this);
}