commit | 3bc95b5b712c44c687ef04156b63c70c930f69f2 | [log] [tgz] |
---|---|---|
author | Robert Carr <racarr@google.com> | Mon Mar 20 21:57:23 2017 -0700 |
committer | Robert Carr <racarr@google.com> | Mon Mar 20 21:57:23 2017 -0700 |
tree | d8682b9f16adc993994df907c1fb4dd24df76184 | |
parent | 44ab5750929fe70da87ea82f0f914845f8141e08 [diff] |
SurfaceView: Fix Surface leak when changing format. We simply weren't destroying the old Surface (though the finalizer would have eventually caught it). As we destroy it we need to use a Window preservation scheme similar to what the WindowManager provided. Bug: 36447956 Test: Manual Change-Id: I8b4210eb76cec364522cc0a40014517e42ebbe68