am 44e45cfe
: Merge "DispSync: don\'t compensate for wakeup latency" into klp-dev
* commit '44e45cfeb37a04c206730b12ff001525ebe42a7b': DispSync: don't compensate for wakeup latency
This commit is contained in:
commit
44b09f8b55
@ -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