summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2021-06-22 14:39:20 -0700
committer Alec Mouri <alecmouri@google.com> 2021-06-22 17:08:13 -0700
commit2f5addbd34afe44a407e8353b41a9b025a41cf71 (patch)
tree246494c50d564354c9bf990d24355876fd6d2dc1 /libs/gui/LayerState.cpp
parent95c0a889007264dac4c6053d663f269cc1324046 (diff)
Improve Planner stability
This fixes two crashes in Planner: 1. During device rotation, an Output's layer stack may change, which invalidates OutputLayer pointers. When updating a LayerState, swap in the updated OutputLayer pointer as well to keep references from going stale. 2. Retain the set of removedLayers until after Flattener has updated its internal state in flattenLayers(). Otherwise, removed LayerStates may be deleted which invalidates dangling pointers in the Flattener. Bug: 188743022 Test: builds Test: libcompositionengine_test Test: rotate Chrome Change-Id: I889703a2675bc0eddadd344f1a550d93d7f4c8df
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions