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

Commit 51dcd581 authored by Jamie Gennis's avatar Jamie Gennis
Browse files

SurfaceFlinger: recompute visible regions more

This change makes a change in the crop, scaling mode, transform, or buffer
dimensions trigger a recomputation of the visible regions of a window.  With
the new cropping behavior for SCALING_MODE_FREEZE all of these can now affect
the visible region.

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

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