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

Skip to content
Commit 615e4aaa authored by Winson Chung's avatar Winson Chung
Browse files

Cancel running split decor animations before finishing the current resize transition

- One possible flow for this:
  1) play a pending split resize animation with a transition that
     includes a snapshot -> this creates a SplitDecorManager animation
     which directly animates the snapshot leash
  2) have another resize which triggers setup of a new pending resize
     animation -> this cancels the current animation which cleans up/
     releases the existing transition's surfaces, but nothing notifies
     SplitDecorManager, so that animation continues to play
  3) Next frame comes in, SplitDecorManager's animation tries to update
     the surface that has already been released -> crash
- This change just cancels any existing animations (which will remove
  the decor) before creating a new pending resize animation and
  finishing the previous transition

Fixes: 325306101
Test: Presubmit (not reproducible)
Change-Id: Id77f02871bfd684e8dd814b3a38a94e06049e210
parent a9a83eed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment