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

Unified Diff: tools/json/SkJSONCanvas.h

Issue 1662003002: Modify skia serve to return clip rect and view matrix (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: todo 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 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;
« 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