Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ae5536b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SurfaceFlinger: propagate phase offsets to scheduler"

parents c12c20a3 f665635d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -54,6 +54,15 @@ public:
        mEarlyOffsets = early;
        mEarlyGlOffsets = earlyGl;
        mLateOffsets = late;

        if (mSfConnectionHandle && late.sf != mOffsets.load().sf) {
            mScheduler->setPhaseOffset(mSfConnectionHandle, late.sf);
        }

        if (mAppConnectionHandle && late.app != mOffsets.load().app) {
            mScheduler->setPhaseOffset(mAppConnectionHandle, late.app);
        }

        mOffsets = late;
    }