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

Commit 7420ead8 authored by Alec Mouri's avatar Alec Mouri Committed by Luca Stefani
Browse files

Respect source crop when capturing layers.

Source crop we receive from window manager appears to be correct, no
need for this workaround.

Bug: 117892959
Test: adb shell screencap, rotation animation, power cycle display
Change-Id: I54ea3fb561ce4f2ea6f48079ad51efdd9984d186
Merged-In: I54ea3fb561ce4f2ea6f48079ad51efdd9984d186
parent ce3a2e78
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -4890,10 +4890,6 @@ status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display, sp<GraphicBuf
        device = getDisplayDeviceLocked(display);
        if (!device) return BAD_VALUE;

        // ignore sourceCrop (i.e., use the projected logical display
        // viewport) until the framework is fixed
        sourceCrop.clear();

        // set the requested width/height to the logical display viewport size
        // by default
        if (reqWidth == 0 || reqHeight == 0) {