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

Commit 0f473031 authored by Ady Abraham's avatar Ady Abraham
Browse files

SF: VsyncTimeline::isVSyncInPhase should use display rate [unflagged]

Remove the flag for the fix in commit 4a719e88 so it will be enabled on android15-tests-dev (GSI) release.

Bug: 328352850
Bug: 355684882
Bug: 380359880
Test: see b/355684882
Flags: EXEMPT bugfix
Change-Id: I02deca58bfd9a2cf169c2e58995cc42eeb854c8d
Merged-In: I02deca58bfd9a2cf169c2e58995cc42eeb854c8d
parent e4c3e224
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -737,9 +737,7 @@ bool VSyncPredictor::VsyncTimeline::isVSyncInPhase(Model model, nsecs_t vsync, F
        return ticks<std::milli, float>(TimePoint::fromNs(timePoint) - now);
    };

    Fps displayFps = !FlagManager::getInstance().vrr_bugfix_24q4() && mRenderRateOpt
            ? *mRenderRateOpt
            : Fps::fromPeriodNsecs(mIdealPeriod.ns());
    Fps displayFps = Fps::fromPeriodNsecs(mIdealPeriod.ns());
    const auto divisor = RefreshRateSelector::getFrameRateDivisor(displayFps, frameRate);
    const auto now = TimePoint::now();