summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2021-04-13 15:45:36 -0700
committer Alec Mouri <alecmouri@google.com> 2021-04-22 13:21:05 -0700
commitcf165b6a7cde156ce956b32c90f43d3f5b41b649 (patch)
tree69ac5d5b17c53354ea12470a95761f8e9877b599 /libs/gui/LayerDebugInfo.cpp
parentf45fd103bf2ef1ae7b528daf67cbcb487b1a5045 (diff)
Update physicalDisplay when rendering CachedSet to include offset.
Fixes the following scenario: imagine a layer stack containing: 1. A cached set extending from (0, 200) x (1080 x 3080), and 2. An animating status bar extending from (0, 0) x (1080, 200) is presented onto a display that is 1080 pixels wide and 3080 pixels tall. Currently when rendering a cached set, the clip is set to the layer stack content, and the physicalDisplay is set to the buffer bounds. But RenderEngine's interface works by mapping from the clip rectangle to the physicalDisplay rectangle. But, since the cached set is not fullscreen, that means that the cached set's top left corner is rendered at (0, 200), which is not correct. Instead, the physicalDisplay rectangle needs to have the same dimensions as the framebuffer content rectangle so that there's no unintended scaling, but the rectangle must be offset by the bounding box of the cached set so that the content correctly fills the output buffer. Bug: 185278446 Test: lockscreen doesn't flicker Change-Id: I480a5661e93178c050538f397e630c25fea5a2da
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions