Avoid destroying TextureView surfaces for onStop
am: 391d560402
Change-Id: I6e1e5a5f024410e7e0288910386cbc439b8a9039
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() {
|
HardwareLayer getHardwareLayer() {
|
||||||
if (mLayer == null) {
|
if (mLayer == null) {
|
||||||
if (mAttachInfo == null || mAttachInfo.mHardwareRenderer == null) {
|
if (mAttachInfo == null || mAttachInfo.mHardwareRenderer == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user