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

Commit db6e8adc authored by Peiyong Lin's avatar Peiyong Lin Committed by android-build-merger
Browse files

Merge "Avoid sending powerhint right after GPU composition." into qt-dev

am: 2bbf60ab

Change-Id: I39414dec8b1f907becc0ad48abf4de8df75f9fcb
parents 24a05e01 2bbf60ab
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3402,10 +3402,9 @@ bool SurfaceFlinger::doComposeSurfaces(const sp<DisplayDevice>& displayDevice,
        renderEngine.drawLayers(clientCompositionDisplay, clientCompositionLayers,
                                buf->getNativeBuffer(), /*useFramebufferCache=*/true, std::move(fd),
                                readyFence);
        if (expensiveRenderingExpected && displayId) {
    } else if (displayId) {
        mPowerAdvisor.setExpensiveRenderingExpected(*displayId, false);
    }
    }
    return true;
}