Merge "Avoid destroying TextureView surfaces for onStop" into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-07-26 00:06:43 +00:00
committed by Android (Google) Code Review

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