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

Commit 914d106e authored by ramindani's avatar ramindani Committed by Ram Indani
Browse files

[SF] set render rate as peakFps when new display device is added

BUG: 352486646
Flag: EXEMPT bugfix
Test: presubmit
Change-Id: I82a6f3bf078280e3719419b62dedae44859880bb
parent 62007522
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3767,7 +3767,7 @@ sp<DisplayDevice> SurfaceFlinger::setupNewDisplayDeviceInternal(
    if (const auto& physical = state.physical) {
        const auto& mode = *physical->activeMode;
        mDisplayModeController.setActiveMode(physical->id, mode.getId(), mode.getVsyncRate(),
                                             mode.getVsyncRate());
                                             mode.getPeakFps());
    }

    display->setLayerFilter(makeLayerFilterForDisplay(display->getId(), state.layerStack));