Loading core/java/android/view/GLES20Canvas.java +1 −1 Original line number Diff line number Diff line Loading @@ -621,7 +621,7 @@ class GLES20Canvas extends HardwareCanvas { @Override public void concat(Matrix matrix) { nConcatMatrix(mRenderer, matrix.native_instance); if (matrix != null) nConcatMatrix(mRenderer, matrix.native_instance); } private static native void nConcatMatrix(int renderer, int matrix); Loading graphics/java/android/graphics/Canvas.java +3 −2 Original line number Diff line number Diff line Loading @@ -513,12 +513,13 @@ public class Canvas { public native void skew(float sx, float sy); /** * Preconcat the current matrix with the specified matrix. * Preconcat the current matrix with the specified matrix. If the specified * matrix is null, this method does nothing. * * @param matrix The matrix to preconcatenate with the current matrix */ public void concat(Matrix matrix) { native_concat(mNativeCanvas, matrix.native_instance); if (matrix != null) native_concat(mNativeCanvas, matrix.native_instance); } /** Loading libs/hwui/DisplayListOp.h +5 −1 Original line number Diff line number Diff line Loading @@ -468,7 +468,11 @@ public: } virtual void output(int level, uint32_t logFlags) const { if (mMatrix) { OP_LOG("SetMatrix " MATRIX_STRING, MATRIX_ARGS(mMatrix)); } else { OP_LOGS("SetMatrix (reset)"); } } virtual const char* name() { return "SetMatrix"; } Loading libs/hwui/DisplayListRenderer.h +8 −5 Original line number Diff line number Diff line Loading @@ -269,12 +269,15 @@ private: } inline SkMatrix* refMatrix(SkMatrix* matrix) { // Copying the matrix is cheap and prevents against the user changing the original // matrix before the operation that uses it if (matrix) { // Copying the matrix is cheap and prevents against the user changing // the original matrix before the operation that uses it SkMatrix* copy = new SkMatrix(*matrix); mMatrices.add(copy); return copy; } return matrix; } inline Layer* refLayer(Layer* layer) { mLayers.add(layer); Loading Loading
core/java/android/view/GLES20Canvas.java +1 −1 Original line number Diff line number Diff line Loading @@ -621,7 +621,7 @@ class GLES20Canvas extends HardwareCanvas { @Override public void concat(Matrix matrix) { nConcatMatrix(mRenderer, matrix.native_instance); if (matrix != null) nConcatMatrix(mRenderer, matrix.native_instance); } private static native void nConcatMatrix(int renderer, int matrix); Loading
graphics/java/android/graphics/Canvas.java +3 −2 Original line number Diff line number Diff line Loading @@ -513,12 +513,13 @@ public class Canvas { public native void skew(float sx, float sy); /** * Preconcat the current matrix with the specified matrix. * Preconcat the current matrix with the specified matrix. If the specified * matrix is null, this method does nothing. * * @param matrix The matrix to preconcatenate with the current matrix */ public void concat(Matrix matrix) { native_concat(mNativeCanvas, matrix.native_instance); if (matrix != null) native_concat(mNativeCanvas, matrix.native_instance); } /** Loading
libs/hwui/DisplayListOp.h +5 −1 Original line number Diff line number Diff line Loading @@ -468,7 +468,11 @@ public: } virtual void output(int level, uint32_t logFlags) const { if (mMatrix) { OP_LOG("SetMatrix " MATRIX_STRING, MATRIX_ARGS(mMatrix)); } else { OP_LOGS("SetMatrix (reset)"); } } virtual const char* name() { return "SetMatrix"; } Loading
libs/hwui/DisplayListRenderer.h +8 −5 Original line number Diff line number Diff line Loading @@ -269,12 +269,15 @@ private: } inline SkMatrix* refMatrix(SkMatrix* matrix) { // Copying the matrix is cheap and prevents against the user changing the original // matrix before the operation that uses it if (matrix) { // Copying the matrix is cheap and prevents against the user changing // the original matrix before the operation that uses it SkMatrix* copy = new SkMatrix(*matrix); mMatrices.add(copy); return copy; } return matrix; } inline Layer* refLayer(Layer* layer) { mLayers.add(layer); Loading