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 |