summaryrefslogtreecommitdiff
path: root/libs/gui/QueueBufferInputOutput.cpp
diff options
context:
space:
mode:
author Richard Liu <xuegang.liu@nxp.com> 2020-04-08 10:51:55 +0000
committer Ady Abraham <adyabr@google.com> 2020-11-11 04:16:56 +0000
commitcbcb8951d15c9deb2986817288a1c49e99d3b011 (patch)
treeec1df2a13dbae1bd5e66bf2c48a767c6a1f79609 /libs/gui/QueueBufferInputOutput.cpp
parentda4f3515b77e9e26f3788593ad443665bd8a035b (diff)
SurfaceFlinger: captureScreen buffer set GRALLOC_USAGE_HW_COMPOSER usage
CaptureScreen buffer should set GRALLOC_USAGE_HW_COMPOSER usage, as this buffer will be composited as one layer by composer at the short time when do screenshot. Some platforms will check GRALLOC_USAGE_HW_COMPOSER usage and guarantee buffer be allocated as physical continuous memory, as some composer hardware such as DPU 2D can't handle no-continuous memory without MMU. Without GRALLOC_USAGE_HW_COMPOSER usage, these platforms will meet problem. Dumpsys SurfaceFinger information: Display 21441949190532096 HWC layers: ------------------------------------------------------------------------------------------- Layer name Z | Window Type | Comp Type | Transform | Disp Frame (LTRB) | Source Crop (LTRB) ------------------------------------------------------------------------------------------- SnapshotStartingWindow for taskId=1297#0 rel 0 | 3 | DEVICE | 0 | 0 0 1920 1080 | 0.0 0.0 1920.0 1080.0 - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - StatusBar#0 rel 0 | 2000 | DEVICE | 0 | 0 0 1920 31 | 0.0 0.0 1920.0 31.0 - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - NavigationBar0#0 rel 0 | 2019 | DEVICE | 0 | 0 1019 1920 1080 | 0.0 0.0 1920.0 61.0 - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - Sprite#0 331000 | 0 | DEVICE | 0 | 951 537 979 573 | 0.0 0.0 28.0 36.0 - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - 0xf16e6c0623e0: 8100.00 KiB | 1920 (1920) x 1080 | 1 | 1 | 0x333 | screenshot Bug: 153476418 Test: Launch an app and swipe up to trigger a screenshot Change-Id: I73addd5058924a370965f7d704c6bcf05848d821 Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
Diffstat (limited to 'libs/gui/QueueBufferInputOutput.cpp')
0 files changed, 0 insertions, 0 deletions