aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/fiddle/fiddle_main.h
diff options
context:
space:
mode:
authorGravatar Joe Gregorio <jcgregorio@google.com>2017-02-13 11:39:43 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-13 17:43:13 +0000
commit1fd1823b4775040b6a9723db90029d037c34ea54 (patch)
tree9cbd81271b17fa43c52c8300b5d3d57005e0bd9c /tools/fiddle/fiddle_main.h
parentff590a12441002d281254ec6a86070ac0a19263f (diff)
Add plumbing for text only fiddles.
BUG=skia: Change-Id: If3967f868c482bbded7185a0ed7c6559cd2858c5 Reviewed-on: https://skia-review.googlesource.com/8334 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Joe Gregorio <jcgregorio@google.com>
Diffstat (limited to 'tools/fiddle/fiddle_main.h')
-rw-r--r--tools/fiddle/fiddle_main.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/fiddle/fiddle_main.h b/tools/fiddle/fiddle_main.h
index a03eebca6c..078c26c3fd 100644
--- a/tools/fiddle/fiddle_main.h
+++ b/tools/fiddle/fiddle_main.h
@@ -24,7 +24,7 @@ extern SkBitmap source;
extern sk_sp<SkImage> image;
struct DrawOptions {
- DrawOptions(int w, int h, bool r, bool g, bool p, bool k, bool srgb, bool f16, const char* s)
+ DrawOptions(int w, int h, bool r, bool g, bool p, bool k, bool srgb, bool f16, bool textOnly, const char* s)
: size(SkISize::Make(w, h))
, raster(r)
, gpu(g)
@@ -32,6 +32,7 @@ struct DrawOptions {
, skp(k)
, srgb(srgb)
, f16(f16)
+ , textOnly(textOnly)
, source(s)
{
// F16 mode is only valid for color correct backends.
@@ -44,10 +45,12 @@ struct DrawOptions {
bool skp;
bool srgb;
bool f16;
+ bool textOnly;
const char* source;
};
extern DrawOptions GetDrawOptions();
+extern void SkDebugf(const char * format, ...);
extern void draw(SkCanvas*);
#endif // fiddle_main_DEFINED