From 34a0cdb98eb5561774ea4e7b3b602aad80c4a3cc Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Thu, 8 Jun 2017 15:40:38 -0700 Subject: 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 --- libs/androidfw/include/androidfw/DisplayEventDispatcher.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/androidfw/include') diff --git a/libs/androidfw/include/androidfw/DisplayEventDispatcher.h b/libs/androidfw/include/androidfw/DisplayEventDispatcher.h index 3ade2156589a..e1dfb9490c60 100644 --- a/libs/androidfw/include/androidfw/DisplayEventDispatcher.h +++ b/libs/androidfw/include/androidfw/DisplayEventDispatcher.h @@ -22,7 +22,8 @@ namespace android { class DisplayEventDispatcher : public LooperCallback { public: - DisplayEventDispatcher(const sp& looper); + DisplayEventDispatcher(const sp& looper, + ISurfaceComposer::VsyncSource vsyncSource = ISurfaceComposer::eVsyncSourceApp); status_t initialize(); void dispose(); -- cgit v1.2.3-59-g8ed1b