diff options
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/DispSync.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/DispSync.cpp b/services/surfaceflinger/DispSync.cpp index 7e67138..bff304e 100644 --- a/services/surfaceflinger/DispSync.cpp +++ b/services/surfaceflinger/DispSync.cpp @@ -110,7 +110,7 @@ public: } nextEventTime = computeNextEventTimeLocked(now); - targetTime = nextEventTime - mWakeupLatency; + targetTime = nextEventTime; bool isWakeup = false; @@ -228,7 +228,7 @@ private: nsecs_t t = computeListenerNextEventTimeLocked(mEventListeners[i], ref); - if (t - mWakeupLatency < now) { + if (t < now) { CallbackInvocation ci; ci.mCallback = mEventListeners[i].mCallback; ci.mEventTime = t; |