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

Commit 01ace761 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

SF: Iterate correctly over multiple displays when computing and caching bounds

Bug: 124308298

Test: go/wm-smoke
Test: atest EncodeVirtualDisplayWithCompositionTest
Change-Id: I6d5f1cbe29ba33be4407091cbdd17ec038b7301f
parent 1603cc25
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2329,7 +2329,7 @@ void SurfaceFlinger::computeLayerBounds() {
        for (const auto& layer : mDrawingState.layersSortedByZ) {
            // only consider the layers on the given layer stack
            if (!display->belongsInOutput(layer->getLayerStack(), layer->getPrimaryDisplayOnly())) {
                return;
                continue;
            }

            layer->computeBounds(displayDevice->getViewport().toFloatRect(), ui::Transform());