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

Commit bdc325c6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "SurfaceFlinger: captureScreen buffer set GRALLOC_USAGE_HW_COMPOSER usage" am: 05f351cb

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1281993

Change-Id: Ia2de102e06f3d4d95824ba7566469f4a51c7ad77
parents 32b2be1c 05f351cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5747,7 +5747,7 @@ status_t SurfaceFlinger::captureScreenCommon(RenderArea& renderArea,

    // TODO(b/116112787) Make buffer usage a parameter.
    const uint32_t usage = GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN |
            GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE;
            GRALLOC_USAGE_HW_RENDER | GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_HW_COMPOSER;
    *outBuffer =
            getFactory().createGraphicBuffer(renderArea.getReqWidth(), renderArea.getReqHeight(),
                                             static_cast<android_pixel_format>(reqPixelFormat), 1,