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

Commit 76488114 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Revert "Refactor SurfaceFlinger::rebuildLayerStacks"

This reverts commit 3beb7117.

Bug: 35801498
Change-Id: Ife431b19f3aef21cbe07863ca2964b2a40677dbd
parent b665cd38
Loading
Loading
Loading
Loading
+36 −39
Original line number Diff line number Diff line
@@ -1552,11 +1552,8 @@ void SurfaceFlinger::rebuildLayerStacks() {
    ALOGV("rebuildLayerStacks");

    // rebuild the visible layer list per screen
    if (CC_LIKELY(mVisibleRegionsDirty)) {
        return;
    }

    ATRACE_NAME("rebuildLayerStacks VR Dirty");
    if (CC_UNLIKELY(mVisibleRegionsDirty)) {
        ATRACE_CALL();
        mVisibleRegionsDirty = false;
        invalidateHwcGeometry();

@@ -1594,7 +1591,7 @@ void SurfaceFlinger::rebuildLayerStacks() {
                    tr.transform(opaqueRegion));
            displayDevice->dirtyRegion.orSelf(dirtyRegion);
        }

    }
}

void SurfaceFlinger::setUpHWComposer() {