commit | 6c7e56191e7478fb13532dd5133259d449935c7b | [log] [tgz] |
---|---|---|
author | Jorim Jaggi <jjaggi@google.com> | Tue Dec 12 02:17:10 2017 +0100 |
committer | Winson Chung <winsonc@google.com> | Wed Dec 13 18:44:09 2017 -0800 |
tree | ec2d8c5b740e2cbec0389b8a678467d4083df293 | |
parent | a5e105728fb87264b9dc2e66b3703168f8864110 [diff] |
Fix possible race conditions when cancelling animations Since the surface is being released by the SurfaceAnimator, it was possible that SurfaceAnimationRunner was still applying surface changes on a released surface. Solve this by introducing a cancel-lock on which all surface operations are synchronized on. Bug: 64674361 Test: SurfaceAnimationRunnerTest Change-Id: I06ee9e8270f492faa1cbfd84a09a68c9a1a09ade