Index: experimental/fiddle/fiddle_main.h |
diff --git a/experimental/fiddle/fiddle_main.h b/experimental/fiddle/fiddle_main.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ab2aa8b5ab8ac58e4abbdf4e5e191e659e9d4fb5 |
--- /dev/null |
+++ b/experimental/fiddle/fiddle_main.h |
@@ -0,0 +1,34 @@ |
+/* |
+ * Copyright 2015 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+#ifndef fiddle_main_DEFINED |
+#define fiddle_main_DEFINED |
+ |
+#include "skia.h" |
+ |
+extern SkBitmap source; |
+extern SkImage* image; |
+ |
+struct DrawOptions { |
+ DrawOptions(int w, int h, bool r, bool g, bool p, bool k, const char* s) |
+ : size(SkISize::Make(w, h)) |
+ , raster(r) |
+ , gpu(g) |
+ , pdf(p) |
+ , skp(k) |
+ , source(s) {} |
+ SkISize size; |
+ bool raster; |
+ bool gpu; |
+ bool pdf; |
+ bool skp; |
+ const char* source; |
+}; |
+ |
+extern DrawOptions GetDrawOptions(); |
+extern void draw(SkCanvas*); |
+ |
+#endif // fiddle_main_DEFINED |