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

Unified Diff: tools/json/SkJSONRenderer.h

Issue 1636563002: Initial support for turning Skia draws into a JSON document and vice versa. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: moved to /tools 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 | « tools/json/SkJSONCanvas.cpp ('k') | tools/json/SkJSONRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json/SkJSONRenderer.h
diff --git a/tools/json/SkJSONRenderer.h b/tools/json/SkJSONRenderer.h
new file mode 100644
index 0000000000000000000000000000000000000000..d92edf29da0c38009751464e2f8e745e1ac4d740
--- /dev/null
+++ b/tools/json/SkJSONRenderer.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkJSONRenderer_DEFINED
+#define SkJSONRenderer_DEFINED
+
+
+#include "SkCanvas.h"
+
+namespace SkJSONRenderer {
+ /*
+ * Takes a JSON document produced by SkJSONCanvas and issues its draw commands to the target
+ * canvas.
+ */
+ void render(const char* json, SkCanvas* target);
+}
+
+#endif
« no previous file with comments | « tools/json/SkJSONCanvas.cpp ('k') | tools/json/SkJSONRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698