commit | 40e361cb78773dd8682f665196db91e8be4666d1 | [log] [tgz] |
---|---|---|
author | chaviw <chaviw@google.com> | Tue May 10 12:40:58 2022 -0500 |
committer | chaviw <chaviw@google.com> | Tue May 10 12:40:58 2022 -0500 |
tree | a4dd2e4eb42acea59c6cbf505cc8da2805a96441 | |
parent | c0ba82990231f068a23afa0cd049ac4588977f4b [diff] |
Lock in Surface#destroy Previously, destroy just directly called release, which was already locked. Now, destroy invokes some functions in native. This means if another thread is calling release during the destroy call, it could cause crashes. Test: Hard to repro bug Bug: 223412469 Change-Id: Ie6415f505bbc86505e3fe3ea2a0bea96a3e78ad3