Loading core/java/android/view/TextureView.java +10 −6 Original line number Original line Diff line number Diff line Loading @@ -261,6 +261,7 @@ public class TextureView extends View { @Override @Override public final void draw(Canvas canvas) { public final void draw(Canvas canvas) { applyUpdate(); applyUpdate(); applyTransformMatrix(); } } /** /** Loading Loading @@ -315,11 +316,7 @@ public class TextureView extends View { } } applyUpdate(); applyUpdate(); applyTransformMatrix(); if (mMatrixChanged) { mLayer.setTransform(mMatrix); mMatrixChanged = false; } return mLayer; return mLayer; } } Loading Loading @@ -386,7 +383,7 @@ public class TextureView extends View { public void setTransform(Matrix transform) { public void setTransform(Matrix transform) { mMatrix.set(transform); mMatrix.set(transform); mMatrixChanged = true; mMatrixChanged = true; invalidate(); invalidateParentIfNeeded(); } } /** /** Loading @@ -410,6 +407,13 @@ public class TextureView extends View { return transform; return transform; } } private void applyTransformMatrix() { if (mMatrixChanged) { mLayer.setTransform(mMatrix); mMatrixChanged = false; } } /** /** * <p>Returns a {@link android.graphics.Bitmap} representation of the content * <p>Returns a {@link android.graphics.Bitmap} representation of the content * of the associated surface texture. If the surface texture is not available, * of the associated surface texture. If the surface texture is not available, Loading Loading
core/java/android/view/TextureView.java +10 −6 Original line number Original line Diff line number Diff line Loading @@ -261,6 +261,7 @@ public class TextureView extends View { @Override @Override public final void draw(Canvas canvas) { public final void draw(Canvas canvas) { applyUpdate(); applyUpdate(); applyTransformMatrix(); } } /** /** Loading Loading @@ -315,11 +316,7 @@ public class TextureView extends View { } } applyUpdate(); applyUpdate(); applyTransformMatrix(); if (mMatrixChanged) { mLayer.setTransform(mMatrix); mMatrixChanged = false; } return mLayer; return mLayer; } } Loading Loading @@ -386,7 +383,7 @@ public class TextureView extends View { public void setTransform(Matrix transform) { public void setTransform(Matrix transform) { mMatrix.set(transform); mMatrix.set(transform); mMatrixChanged = true; mMatrixChanged = true; invalidate(); invalidateParentIfNeeded(); } } /** /** Loading @@ -410,6 +407,13 @@ public class TextureView extends View { return transform; return transform; } } private void applyTransformMatrix() { if (mMatrixChanged) { mLayer.setTransform(mMatrix); mMatrixChanged = false; } } /** /** * <p>Returns a {@link android.graphics.Bitmap} representation of the content * <p>Returns a {@link android.graphics.Bitmap} representation of the content * of the associated surface texture. If the surface texture is not available, * of the associated surface texture. If the surface texture is not available, Loading