From 4a4e4a239f034cb8af2df9a438b26c3bc088889c Mon Sep 17 00:00:00 2001 From: Tim Murray Date: Tue, 19 Apr 2016 16:29:23 +0000 Subject: Revert "Revert "DispSync: Always resync after inactivity"" This reverts commit 67264e930992e43ef3351b04692d4ca59cbb01ad. We've fixed the kernel issues this exposed. bug 28198793 Change-Id: Ie895cc0a815094cce4bee3b2bf45800ee1e2fdc3 --- services/surfaceflinger/EventThread.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'services/surfaceflinger/EventThread.cpp') diff --git a/services/surfaceflinger/EventThread.cpp b/services/surfaceflinger/EventThread.cpp index f760200006..dd88adb362 100644 --- a/services/surfaceflinger/EventThread.cpp +++ b/services/surfaceflinger/EventThread.cpp @@ -44,8 +44,9 @@ static void vsyncOffCallback(union sigval val) { return; } -EventThread::EventThread(const sp& src) +EventThread::EventThread(const sp& src, SurfaceFlinger& flinger) : mVSyncSource(src), + mFlinger(flinger), mUseSoftwareVSync(false), mVsyncEnabled(false), mDebugVsyncEnabled(false), @@ -126,6 +127,9 @@ void EventThread::setVsyncRate(uint32_t count, void EventThread::requestNextVsync( const sp& connection) { Mutex::Autolock _l(mLock); + + mFlinger.resyncWithRateLimit(); + if (connection->count < 0) { connection->count = 0; mCondition.broadcast(); -- cgit v1.2.3-59-g8ed1b