summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--services/surfaceflinger/DispSync.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/DispSync.cpp b/services/surfaceflinger/DispSync.cpp
index b2a604c..167c6f0 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;