diff options
| author | 2022-07-19 08:14:11 -0700 | |
|---|---|---|
| committer | 2022-07-19 18:08:02 +0000 | |
| commit | 38876847fecbf3e24ecdb4d9d7542aa6241ff0e0 (patch) | |
| tree | 5f126424b722b7e0a4877aa645d4fefeea85ff63 /libs/input/SpriteController.cpp | |
| parent | 838cd583bae90fae8341dd5d65bcc8c0dc95523d (diff) | |
SurfaceView: Ensure the Surface remains valid with SurfaceHolder#lockCanvas
Fixes an issue where the surface was destroyed while the caller had a
valid Surface. The SurfaceHolder#lockCanvas API states the
Surface remains valid until the caller unlocks the canvas. This cl
ensures the validity by acquiring the mSurfaceLock before changing
the state of the Surface.
Test: app in b/234006724 does not ANR
Test: app in b/235188096 does not crash
Test: atest SurfaceViewTest
Bug: 235188096
Change-Id: I67ae2b98b83cc148128bb7c70cf2180c927c0b04
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions