Start tracking the CTM while filling the BBH in SkRecordDraw.
Depends on https://codereview.chromium.org/475473002/
BUG=skia:
R=robertphillips@google.com, reed@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/468193003
diff --git a/src/core/SkRecords.h b/src/core/SkRecords.h
index 1efdf28..3d5b190 100644
--- a/src/core/SkRecords.h
+++ b/src/core/SkRecords.h
@@ -197,7 +197,7 @@
RECORD0(NoOp);
-RECORD0(Restore);
+RECORD1(Restore, SkMatrix, matrix);
RECORD0(Save);
RECORD3(SaveLayer, Optional<SkRect>, bounds, Optional<SkPaint>, paint, SkCanvas::SaveFlags, flags);
@@ -291,10 +291,10 @@
PODArray<uint16_t> indices;
int indexCount;
};
-
+
struct DrawPatch {
static const Type kType = DrawPatch_Type;
-
+
DrawPatch(const SkPaint& paint, SkPoint cubics[12], SkColor colors[4],
SkPoint texCoords[4], SkXfermode* xmode)
: paint(paint)
@@ -302,7 +302,7 @@
, colors(colors)
, texCoords(texCoords)
, xmode(SkSafeRef(xmode)) { }
-
+
SkPaint paint;
PODArray<SkPoint> cubics;
PODArray<SkColor> colors;