Merge "SurfaceFlinger: Dispsync changePhaseOffset" into qt-r1-dev am: 2c97ca4f4b
am: 185bc77105
Change-Id: If5066973227b84db873c63161528916bc23861f4
diff --git a/services/surfaceflinger/Scheduler/DispSync.cpp b/services/surfaceflinger/Scheduler/DispSync.cpp
index e59d459..81be372 100644
--- a/services/surfaceflinger/Scheduler/DispSync.cpp
+++ b/services/surfaceflinger/Scheduler/DispSync.cpp
@@ -288,17 +288,6 @@
// new offset to allow for a seamless offset change without double-firing or
// skipping.
nsecs_t diff = oldPhase - phase;
- if (diff > mPeriod / 2) {
- diff -= mPeriod;
- } else if (diff < -mPeriod / 2) {
- diff += mPeriod;
- }
-
- if (phase < 0 && oldPhase > 0) {
- diff += mPeriod;
- } else if (phase > 0 && oldPhase < 0) {
- diff -= mPeriod;
- }
eventListener.mLastEventTime -= diff;
eventListener.mLastCallbackTime -= diff;
mCond.signal();