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 19:58:58 +0000
commit11a1105b23283f3cea24a1dcd9529835f5601594 (patch)
tree87ad0f12238cccaafa2c751dc7f30950e23b6773 /libs/gui/QueueBufferInputOutput.cpp
parente5c824b24c8f217ef363557f548cef7ceeb2d097 (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 Change-Id: I73addd5058924a370965f7d704c6bcf05848d821 Merged-In: I73addd5058924a370965f7d704c6bcf05848d821 Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
Diffstat (limited to 'libs/gui/QueueBufferInputOutput.cpp')
0 files changed, 0 insertions, 0 deletions