OSDN Git Service

Wake up disp sync thread when setting display period
authorJesse Hall <jessehall@google.com>
Thu, 10 Oct 2013 21:48:22 +0000 (14:48 -0700)
committerJesse Hall <jessehall@google.com>
Thu, 10 Oct 2013 21:48:22 +0000 (14:48 -0700)
Bug: 10624956
Change-Id: I272c15f319521bfbd1bb70451366c7dd84d60bf9

services/surfaceflinger/DispSync.cpp

index 7e67138..b2a604c 100644 (file)
@@ -397,6 +397,7 @@ void DispSync::setPeriod(nsecs_t period) {
     Mutex::Autolock lock(mMutex);
     mPeriod = period;
     mPhase = 0;
+    mThread->updateModel(mPeriod, mPhase);
 }
 
 void DispSync::updateModelLocked() {