Loading core/java/android/view/TextureView.java +11 −1 Original line number Diff line number Diff line Loading @@ -561,8 +561,18 @@ public class TextureView extends View { applyUpdate(); applyTransformMatrix(); // This case can happen if the app invokes setSurfaceTexture() before // we are able to create the hardware layer. We can safely initialize // the layer here thanks to the validate() call at the beginning of // this method if (mLayer == null && mUpdateSurface) { getHardwareLayer(); } if (mLayer != null) { mLayer.copyInto(bitmap); } } return bitmap; } Loading Loading
core/java/android/view/TextureView.java +11 −1 Original line number Diff line number Diff line Loading @@ -561,8 +561,18 @@ public class TextureView extends View { applyUpdate(); applyTransformMatrix(); // This case can happen if the app invokes setSurfaceTexture() before // we are able to create the hardware layer. We can safely initialize // the layer here thanks to the validate() call at the beginning of // this method if (mLayer == null && mUpdateSurface) { getHardwareLayer(); } if (mLayer != null) { mLayer.copyInto(bitmap); } } return bitmap; } Loading