Index: tools/json/SkJSONCanvas.h |
diff --git a/tools/json/SkJSONCanvas.h b/tools/json/SkJSONCanvas.h |
index 76d1be0ac5ff83aab6eda33fe8963cee39a0fea5..b919efc66c86f4b908ed92b09fedc0d6f6781f5e 100644 |
--- a/tools/json/SkJSONCanvas.h |
+++ b/tools/json/SkJSONCanvas.h |
@@ -149,6 +149,10 @@ public: |
/* Complete the JSON document. */ |
void finish(); |
+ static Json::Value MakeMatrix(const SkMatrix& matrix); |
+ |
+ static Json::Value MakeIRect(const SkIRect& irect); |
+ |
// overridden SkCanvas API |
void onDrawPaint(const SkPaint&) override; |
@@ -226,6 +230,7 @@ public: |
SkCanvas::SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec& rec) override; |
private: |
+ // Helpers to turn values into JSON, these could probably be static |
Json::Value makePoint(const SkPoint& point); |
Json::Value makePoint(SkScalar x, SkScalar y); |
@@ -245,9 +250,7 @@ private: |
Json::Value makeEdgeStyle(SkCanvas::ClipEdgeStyle edgeStyle); |
Json::Value makePointMode(SkCanvas::PointMode mode); |
- |
- Json::Value makeMatrix(const SkMatrix& matrix); |
- |
+ |
void updateMatrix(); |
SkWStream& fOut; |