diff options
| author | 2020-11-11 22:25:57 +0000 | |
|---|---|---|
| committer | 2020-11-11 22:25:57 +0000 | |
| commit | ac71ee5b7ac6959f0cc3bf27d5c25211971ddae0 (patch) | |
| tree | 432fc9710078791a7bdc4ef4534fb3f99dace30d /services | |
| parent | 70bfb99f01d6753428549541d4cadf4aa7cdc659 (diff) | |
| parent | 6267c1b16be58cb921c7d614a9afc77f04a6adc6 (diff) | |
Merge "SurfaceFlinger: captureScreen buffer set GRALLOC_USAGE_HW_COMPOSER usage" am: 05f351cb83 am: bdc325c604 am: 6267c1b16b
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1281993
Change-Id: Ieaa9e43a8204d6bf6cdfda9049324efe07b328d8
Diffstat (limited to 'services')
| -rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index ec81bada3d..39f923f6c5 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -5746,7 +5746,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, |