commit | cc6d483974c76d4ce29ad23407c12a5f70632d07 | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Mon Feb 04 15:41:12 2019 -0800 |
committer | Robert Carr <racarr@google.com> | Mon Feb 04 15:41:12 2019 -0800 |
tree | 9e88302db22a2ab20b5f6f37a02864b371967746 | |
parent | affa55b49baebce7ae1b8bb893e015379df83a49 [diff] |
SurfaceControl: Fix release Currently we call decStrong causing ~SurfaceControl to be invoked. If mOwned=true this will cause a reparent to null which is not the intended behavior of release. We call SurfaceControl#release before decStrong to fix this. Also we have destroy call destroy to be less confusing. Bug: 123587983 Test: SurfaceControlTest Change-Id: I86faa9d1eb850ac6437fc870b126a1473ee091e3