Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2f5addbd authored by Alec Mouri's avatar Alec Mouri
Browse files

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
parent 95c0a889
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment