Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84d9e0ef authored by Andreas Gampe's avatar Andreas Gampe Committed by Android Git Automerger
Browse files

am 5e968ad1: am dde72862: am 7db6ebe0: Merge "Frameworks/base: Don\'t allocate...

am 5e968ad1: am dde72862: am 7db6ebe0: Merge "Frameworks/base: Don\'t allocate another identity matrix"

* commit '5e968ad1':
  Frameworks/base: Don't allocate another identity matrix
parents dddea39d 5e968ad1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -805,7 +805,6 @@ public class VectorDrawable extends Drawable {
        // is no need for deep copying.
        private final Path mPath;
        private final Path mRenderPath;
        private static final Matrix IDENTITY_MATRIX = new Matrix();
        private final Matrix mFinalPathMatrix = new Matrix();

        private Paint mStrokePaint;
@@ -948,7 +947,7 @@ public class VectorDrawable extends Drawable {

        public void draw(Canvas canvas, int w, int h, ColorFilter filter) {
            // Travese the tree in pre-order to draw.
            drawGroupTree(mRootGroup, IDENTITY_MATRIX, canvas, w, h, filter);
            drawGroupTree(mRootGroup, Matrix.IDENTITY_MATRIX, canvas, w, h, filter);
        }

        private void drawPath(VGroup vGroup, VPath vPath, Canvas canvas, int w, int h,