3#ifndef examples_DEFINED
4#define examples_DEFINED
42#define REGISTER_FIDDLE(NAME, WIDTH, HEIGHT, TEXT, IMG_INDEX, DURATION, SRGB, F16, \
43 OFSCR, OFSCR_WIDTH, OFSCR_HEIGHT, OFSCR_SAMPLECOUNT, \
44 OFSCR_TEXTURABLE, OFSCR_MIPMAP) \
45 namespace example_##NAME { void draw(SkCanvas*); } \
46 sk_tools::Registry<fiddle::Example> reg_##NAME( \
47 fiddle::Example{&example_##NAME::draw, #NAME, DURATION, IMG_INDEX, \
48 WIDTH, HEIGHT, OFSCR_WIDTH, OFSCR_HEIGHT, OFSCR_SAMPLECOUNT, \
49 TEXT, SRGB, F16, OFSCR, OFSCR_TEXTURABLE, OFSCR_MIPMAP}); \
50 namespace example_##NAME
52#define REG_FIDDLE_SRGB(NAME, W, H, T, I, DURATION, F16) \
53 REGISTER_FIDDLE(NAME, W, H, T, I, DURATION, true, F16, \
54 false, 64, 64, 0, false, false)
56#define REG_FIDDLE_ANIMATED(NAME, W, H, T, I, DURATION) \
57 REGISTER_FIDDLE(NAME, W, H, T, I, DURATION, false, false, \
58 false, 64, 64, 0, false, false)
60#define REG_FIDDLE(NAME, W, H, TEXT, I) \
61 REG_FIDDLE_ANIMATED(NAME, W, H, TEXT, I, 0)
sk_sp< SkFontMgr > fontMgr
GrBackendTexture backEndTextureRenderTarget
GrBackendRenderTarget backEndRenderTarget
GrBackendTexture backEndTexture
int fOffscreenSampleCount
void(* fFunc)(SkCanvas *)
double fAnimationDuration
bool fOffscreenTexturable