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

Unified Diff: src/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: fixed some build issues 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
Index: src/json/SkJSONRenderer.h
diff --git a/src/json/SkJSONRenderer.h b/src/json/SkJSONRenderer.h
new file mode 100644
index 0000000000000000000000000000000000000000..d92edf29da0c38009751464e2f8e745e1ac4d740
--- /dev/null
+++ b/src/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

Powered by Google App Engine
This is Rietveld 408576698