Avoid destroying TextureView surfaces for onStop
bug:30238922 TextureViews will hold onto their backing surfaces, which will allow them to resume gracefully when the app's surfaces are saved. Now only resources that are destroyed for onStop are DisplayLists. Change-Id: Ia768ba9ffc4497c26aa3a5b101a0f5fa1a258b9c
This commit is contained in:
@@ -355,17 +355,6 @@ public class TextureView extends View {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@Override
|
||||
protected void destroyHardwareResources() {
|
||||
super.destroyHardwareResources();
|
||||
destroySurface();
|
||||
invalidateParentCaches();
|
||||
invalidate(true);
|
||||
}
|
||||
|
||||
HardwareLayer getHardwareLayer() {
|
||||
if (mLayer == null) {
|
||||
if (mAttachInfo == null || mAttachInfo.mHardwareRenderer == null) {
|
||||
|
||||
Reference in New Issue
Block a user