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

Commit 23081dae authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[SF] use peak refresh rate to schedule the next" into main

parents 51699b86 8c86ab3a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -560,10 +560,8 @@ auto DisplayDevice::setDesiredMode(display::DisplayModeRequest&& desiredMode) ->
        return DesiredModeAction::InitiateRenderRateSwitch;
    }

    // Set the render frame rate to the active physical refresh rate to schedule the next
    // frame as soon as possible.
    setActiveMode(activeMode.modePtr->getId(), activeMode.modePtr->getVsyncRate(),
                  activeMode.modePtr->getVsyncRate());
                  activeMode.modePtr->getPeakFps());

    // Initiate a mode change.
    mDesiredModeOpt = std::move(desiredMode);