summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-07-03 10:13:05 +0000
committer Riddle Hsu <riddlehsu@google.com> 2023-07-03 10:16:18 +0000
commit4552d3e896c884a43a836a55b1329fe304ff5ca7 (patch)
tree8563cb1dc682d038883a5e61135ecfb52e969141 /libs/hwui/FrameInfoVisualizer.cpp
parentf2c66dee859cf50eed77d1f2c6b4ade9ca10f719 (diff)
Avoid changing z-order of overlay layer after resizing display
The WindowToken of cutout/rounded corner overlay will be collected in transition for sync drawing, so buildFinishTransaction will put the restore operations in finishTransaction. But previously the finishTransaction will always reparent the token to the parent in window hierarchy, which doesn't consider the override operation while creating the surface (makeSurface). Then after the first display resize transition, the overlay becomes flickering in next display resize because it is occluded by the screenshot layer which has a higher z-order without including the overlay. Bug: 288726181 Test: Change screen resolution in Settings. The cutout won't have a small flickering (disappear in a frame). Change-Id: Ibee8c5b8daffdaf38f4f0ce9351dd085929ccb45
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions