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

Unified Diff: experimental/fiddle/fiddle_main.h

Issue 1349163003: experiment/fiddle (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-12-10 (Thursday) 10:34:44 EST Created 5 years 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 | « experimental/fiddle/draw.cpp ('k') | experimental/fiddle/fiddle_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « experimental/fiddle/draw.cpp ('k') | experimental/fiddle/fiddle_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698