skia2/experimental/fiddle/fiddle_main.h
2015-12-10 07:52:45 -08:00

35 lines
699 B
C

/*
* 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