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

Commit cbad735d authored by Jamie Gennis's avatar Jamie Gennis
Browse files

SurfaceFlinger: recompute visible regions less

This change removes some visible region recomputation that was needed to handle
the SCALING_MODE_FREEZE cropping.  We've changed things to use a window crop
from the WindowManager instead, so this is no longer needed.

Bug: 6299171
Change-Id: I32fbc2b689c985837126d8ba3d9a91e79613ffbf
parent b7a6b963
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -528,7 +528,6 @@ void Layer::lockPageFlip(bool& recomputeVisibleRegions)
            mCurrentTransform = transform;
            mCurrentScalingMode = scalingMode;
            mFlinger->invalidateHwcGeometry();
            recomputeVisibleRegions = true;
        }

        uint32_t bufWidth  = mActiveBuffer->getWidth();
@@ -537,7 +536,6 @@ void Layer::lockPageFlip(bool& recomputeVisibleRegions)
            if (bufWidth != uint32_t(oldActiveBuffer->width) ||
                bufHeight != uint32_t(oldActiveBuffer->height)) {
                mFlinger->invalidateHwcGeometry();
                recomputeVisibleRegions = true;
            }
        }