Merge "DispSync: don't compensate for wakeup latency" into klp-dev
This commit is contained in:
commit
44e45cfeb3
@ -110,7 +110,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
nextEventTime = computeNextEventTimeLocked(now);
|
nextEventTime = computeNextEventTimeLocked(now);
|
||||||
targetTime = nextEventTime - mWakeupLatency;
|
targetTime = nextEventTime;
|
||||||
|
|
||||||
bool isWakeup = false;
|
bool isWakeup = false;
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ private:
|
|||||||
nsecs_t t = computeListenerNextEventTimeLocked(mEventListeners[i],
|
nsecs_t t = computeListenerNextEventTimeLocked(mEventListeners[i],
|
||||||
ref);
|
ref);
|
||||||
|
|
||||||
if (t - mWakeupLatency < now) {
|
if (t < now) {
|
||||||
CallbackInvocation ci;
|
CallbackInvocation ci;
|
||||||
ci.mCallback = mEventListeners[i].mCallback;
|
ci.mCallback = mEventListeners[i].mCallback;
|
||||||
ci.mEventTime = t;
|
ci.mEventTime = t;
|
||||||
|
Loading…
Reference in New Issue
Block a user