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

Commit 5441005c authored by Ady Abraham's avatar Ady Abraham
Browse files

SF: clear VsyncTimelines when DisplayMode changes

commit c5d7246d kept the old
vsync timeline on clearTimestamps to avoid a vsync drift on dVRR,
however when the display mode changes, it actually needs to create
a new vsync timeline.

Fixes: 331272179
Change-Id: Ie1e40ad62d815e41869a4960a6ab21dc6f9c701b
Test: android.graphics.cts.FrameRateOverrideTest
parent c7f52148
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -427,6 +427,7 @@ void VSyncPredictor::setDisplayModePtr(ftl::NonNull<DisplayModePtr> modePtr) {
        mRateMap[idealPeriod()] = {idealPeriod(), 0};
    }

    mTimelines.clear();
    clearTimestamps();
}