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

Unified Diff: tools/json/SkJSONCanvas.h

Issue 1664263002: JSON API cleanups (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: reverted unintentional revert of Josh's changes :-) Created 4 years, 10 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 | « no previous file | tools/json/SkJSONCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json/SkJSONCanvas.h
diff --git a/tools/json/SkJSONCanvas.h b/tools/json/SkJSONCanvas.h
index 2e016df93787f09646b3d85acdd70334882e0f62..b43606447bdb815e606316e8979bb2dd27e87ab2 100644
--- a/tools/json/SkJSONCanvas.h
+++ b/tools/json/SkJSONCanvas.h
@@ -16,6 +16,8 @@
#define SKJSONCANVAS_COMMANDS "commands"
#define SKJSONCANVAS_COMMAND "command"
+#define SKJSONCANVAS_COMMAND_TRANSLATE "Translate"
+#define SKJSONCANVAS_COMMAND_SCALE "Scale"
#define SKJSONCANVAS_COMMAND_MATRIX "Matrix"
#define SKJSONCANVAS_COMMAND_PAINT "Paint"
#define SKJSONCANVAS_COMMAND_RECT "Rect"
@@ -94,6 +96,8 @@
#define SKJSONCANVAS_ATTRIBUTE_DST "dst"
#define SKJSONCANVAS_ATTRIBUTE_STRICT "strict"
#define SKJSONCANVAS_ATTRIBUTE_DESCRIPTION "description"
+#define SKJSONCANVAS_ATTRIBUTE_X "x"
+#define SKJSONCANVAS_ATTRIBUTE_Y "y"
#define SKJSONCANVAS_VERB_MOVE "move"
#define SKJSONCANVAS_VERB_LINE "line"
@@ -169,6 +173,10 @@ public:
// overridden SkCanvas API
+ void didConcat(const SkMatrix&) override;
+
+ void didSetMatrix(const SkMatrix&) override;
+
void onDrawPaint(const SkPaint&) override;
void onDrawRect(const SkRect&, const SkPaint&) override;
@@ -268,7 +276,6 @@ private:
void updateMatrix();
SkWStream& fOut;
- SkMatrix fLastMatrix;
Json::Value fRoot;
Json::Value fCommands;
bool fSendBinaries;
« no previous file with comments | « no previous file | tools/json/SkJSONCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698