Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: src/core/SkRecords.h

Issue 468193003: Start tracking the CTM while filling the BBH in SkRecordDraw. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecords.h
diff --git a/src/core/SkRecords.h b/src/core/SkRecords.h
index 1efdf28b14048667d2336e22519d0c502ab91ba6..3d5b1908934f4c7fc0d401980a94d9996bc73490 100644
--- a/src/core/SkRecords.h
+++ b/src/core/SkRecords.h
@@ -197,7 +197,7 @@ private:
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 @@ struct DrawVertices {
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 @@ struct DrawPatch {
, colors(colors)
, texCoords(texCoords)
, xmode(SkSafeRef(xmode)) { }
-
+
SkPaint paint;
PODArray<SkPoint> cubics;
PODArray<SkColor> colors;
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698