Avoid destroying TextureView surfaces for onStop

am: 391d560402

Change-Id: I6e1e5a5f024410e7e0288910386cbc439b8a9039
This commit is contained in:
Chris Craik
2016-07-26 00:29:44 +00:00
committed by android-build-merger

View File

@@ -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) {