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

Commit b7d1230e authored by Lloyd Pique's avatar Lloyd Pique
Browse files

Revert "SF: Fix initialization of mRefreshStartTime"

This reverts commit 3d095726.

Reason for revert: b/111793219 Power regression, with urgent fix needed.

Test: run cts -m CtsDeqpTestCases, run cts -m CtsViewTestCases

Change-Id: Ibd4c08b2be82a10c1e0a1a639b746e696ed8121c
parent 854b8099
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1765,8 +1765,6 @@ void SurfaceFlinger::preComposition()
    ATRACE_CALL();
    ALOGV("preComposition");

    mRefreshStartTime = systemTime(SYSTEM_TIME_MONOTONIC);

    bool needExtraInvalidate = false;
    mDrawingState.traverseInZOrder([&](Layer* layer) {
        if (layer->onPreComposition(mRefreshStartTime)) {
@@ -2220,6 +2218,8 @@ void SurfaceFlinger::configureDeviceComposition(const CompositionInfo& compositi

void SurfaceFlinger::beginFrame()
{
    mRefreshStartTime = systemTime(SYSTEM_TIME_MONOTONIC);

    for (const auto& [token, display] : mDisplays) {
        bool dirty = !display->getDirtyRegion(mRepaintEverything).isEmpty();
        bool empty = display->getVisibleLayersSortedByZ().size() == 0;