Loading core/java/android/view/TextureView.java +9 −1 Original line number Original line Diff line number Diff line Loading @@ -374,6 +374,14 @@ public class TextureView extends View { // tell mLayer about it and set the SurfaceTexture to use the // tell mLayer about it and set the SurfaceTexture to use the // current view size. // current view size. mUpdateSurface = false; mUpdateSurface = false; // Since we are updating the layer, force an update to ensure its // parameters are correct (width, height, transform, etc.) synchronized (mLock) { mUpdateLayer = true; } mMatrixChanged = true; mAttachInfo.mHardwareRenderer.setSurfaceTexture(mLayer, mSurface); mAttachInfo.mHardwareRenderer.setSurfaceTexture(mLayer, mSurface); nSetDefaultBufferSize(mSurface, getWidth(), getHeight()); nSetDefaultBufferSize(mSurface, getWidth(), getHeight()); } } Loading Loading @@ -471,7 +479,7 @@ public class TextureView extends View { } } private void applyTransformMatrix() { private void applyTransformMatrix() { if (mMatrixChanged) { if (mMatrixChanged && mLayer != null) { mLayer.setTransform(mMatrix); mLayer.setTransform(mMatrix); mMatrixChanged = false; mMatrixChanged = false; } } Loading Loading
core/java/android/view/TextureView.java +9 −1 Original line number Original line Diff line number Diff line Loading @@ -374,6 +374,14 @@ public class TextureView extends View { // tell mLayer about it and set the SurfaceTexture to use the // tell mLayer about it and set the SurfaceTexture to use the // current view size. // current view size. mUpdateSurface = false; mUpdateSurface = false; // Since we are updating the layer, force an update to ensure its // parameters are correct (width, height, transform, etc.) synchronized (mLock) { mUpdateLayer = true; } mMatrixChanged = true; mAttachInfo.mHardwareRenderer.setSurfaceTexture(mLayer, mSurface); mAttachInfo.mHardwareRenderer.setSurfaceTexture(mLayer, mSurface); nSetDefaultBufferSize(mSurface, getWidth(), getHeight()); nSetDefaultBufferSize(mSurface, getWidth(), getHeight()); } } Loading Loading @@ -471,7 +479,7 @@ public class TextureView extends View { } } private void applyTransformMatrix() { private void applyTransformMatrix() { if (mMatrixChanged) { if (mMatrixChanged && mLayer != null) { mLayer.setTransform(mMatrix); mLayer.setTransform(mMatrix); mMatrixChanged = false; mMatrixChanged = false; } } Loading