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
Loading
Please register or sign in to comment