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

Commit e4e26c07 authored by Yiwei Zhang's avatar Yiwei Zhang
Browse files

Apply scissor in render engine for main display

Bug: b/113041377
Test: manually
Change-Id: I651357d456f13ff67961b75d3630aca91aa512ac
parent 2e0be278
Loading
Loading
Loading
Loading
+11 −16
Original line number Diff line number Diff line
@@ -2923,10 +2923,6 @@ bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& display) {
            }
        }

        if (!display->isPrimary()) {
            // just to be on the safe side, we don't set the
            // scissor on the main display. It should never be needed
            // anyways (though in theory it could since the API allows it).
        const Rect& bounds = display->getBounds();
        const Rect& scissor = display->getScissor();
        if (scissor != bounds) {
@@ -2940,7 +2936,6 @@ bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& display) {
                                              scissor.getWidth(), scissor.getHeight());
        }
    }
    }

    /*
     * and then, render the layers targeted at the framebuffer