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

Unified Diff: tools/json/SkJSONCanvas.h

Issue 1644903003: added support for more features in JSON (blurs, dashing, different path fill types, etc.) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 | « gyp/json.gyp ('k') | 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 66b413ebbe255e67d487f55c283fb2b34b085485..27cb398a3652554d9fdb8bc41162f98eae314f5e 100644
--- a/tools/json/SkJSONCanvas.h
+++ b/tools/json/SkJSONCanvas.h
@@ -63,6 +63,18 @@
#define SKJSONCANVAS_ATTRIBUTE_REGIONOP "op"
#define SKJSONCANVAS_ATTRIBUTE_EDGESTYLE "edgeStyle"
#define SKJSONCANVAS_ATTRIBUTE_DEVICEREGION "deviceRegion"
+#define SKJSONCANVAS_ATTRIBUTE_BLUR "blur"
+#define SKJSONCANVAS_ATTRIBUTE_SIGMA "sigma"
+#define SKJSONCANVAS_ATTRIBUTE_QUALITY "quality"
+#define SKJSONCANVAS_ATTRIBUTE_TEXTALIGN "textAlign"
+#define SKJSONCANVAS_ATTRIBUTE_TEXTSIZE "textSize"
+#define SKJSONCANVAS_ATTRIBUTE_TEXTSCALEX "textScaleX"
+#define SKJSONCANVAS_ATTRIBUTE_TEXTSKEWX "textSkewX"
+#define SKJSONCANVAS_ATTRIBUTE_DASHING "dashing"
+#define SKJSONCANVAS_ATTRIBUTE_INTERVALS "intervals"
+#define SKJSONCANVAS_ATTRIBUTE_PHASE "phase"
+#define SKJSONCANVAS_ATTRIBUTE_FILLTYPE "fillType"
+#define SKJSONCANVAS_ATTRIBUTE_VERBS "verbs"
#define SKJSONCANVAS_VERB_MOVE "move"
#define SKJSONCANVAS_VERB_LINE "line"
@@ -75,9 +87,6 @@
#define SKJSONCANVAS_STYLE_STROKE "stroke"
#define SKJSONCANVAS_STYLE_STROKEANDFILL "strokeAndFill"
-#define SKJSONCANVAS_EDGESTYLE_HARD "hard"
-#define SKJSONCANVAS_EDGESTYLE_SOFT "soft"
-
#define SKJSONCANVAS_POINTMODE_POINTS "points"
#define SKJSONCANVAS_POINTMODE_LINES "lines"
#define SKJSONCANVAS_POINTMODE_POLYGON "polygon"
@@ -89,6 +98,23 @@
#define SKJSONCANVAS_REGIONOP_REVERSE_DIFFERENCE "reverseDifference"
#define SKJSONCANVAS_REGIONOP_REPLACE "replace"
+#define SKJSONCANVAS_BLURSTYLE_NORMAL "normal"
+#define SKJSONCANVAS_BLURSTYLE_SOLID "solid"
+#define SKJSONCANVAS_BLURSTYLE_OUTER "outer"
+#define SKJSONCANVAS_BLURSTYLE_INNER "inner"
+
+#define SKJSONCANVAS_BLURQUALITY_LOW "low"
+#define SKJSONCANVAS_BLURQUALITY_HIGH "high"
+
+#define SKJSONCANVAS_ALIGN_LEFT "left"
+#define SKJSONCANVAS_ALIGN_CENTER "center"
+#define SKJSONCANVAS_ALIGN_RIGHT "right"
+
+#define SKJSONCANVAS_FILLTYPE_WINDING "winding"
+#define SKJSONCANVAS_FILLTYPE_EVENODD "evenOdd"
+#define SKJSONCANVAS_FILLTYPE_INVERSEWINDING "inverseWinding"
+#define SKJSONCANVAS_FILLTYPE_INVERSEEVENODD "inverseEvenOdd"
+
/*
* Implementation of SkCanvas which writes JSON when drawn to. The JSON describes all of the draw
* commands issued to the canvas, and can later be turned back into draw commands using
« no previous file with comments | « gyp/json.gyp ('k') | tools/json/SkJSONCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698