8#ifndef Benchmark_DEFINED
9#define Benchmark_DEFINED
17#define DEF_BENCH3(code, N) \
18 static BenchRegistry gBench##N([](void*) -> Benchmark* { code; });
19#define DEF_BENCH2(code, N) DEF_BENCH3(code, N)
20#define DEF_BENCH(code) DEF_BENCH2(code, __COUNTER__)
sk_tools::Registry< Benchmark *(*)(void *)> BenchRegistry
virtual void getGpuStats(SkCanvas *, skia_private::TArray< SkString > *keys, skia_private::TArray< double > *values)
virtual bool shouldLoop() const
virtual void onPreDraw(SkCanvas *)
virtual void onPerCanvasPostDraw(SkCanvas *)
virtual SkISize onGetSize()
void draw(int loops, SkCanvas *)
void postDraw(SkCanvas *)
virtual bool getDMSAAStats(GrRecordingContext *)
virtual void onDraw(int loops, SkCanvas *)=0
void perCanvasPreDraw(SkCanvas *)
virtual bool isSuitableFor(Backend backend)
virtual void onDelayedSetup()
virtual void onPerCanvasPreDraw(SkCanvas *)
virtual void onPostDraw(SkCanvas *)
void perCanvasPostDraw(SkCanvas *)
virtual void setupPaint(SkPaint *paint)
virtual const char * onGetUniqueName()
virtual const char * onGetName()=0
virtual void modifyGrContextOptions(GrContextOptions *)
const char * getUniqueName()
@ kRaster
Suitable for thread which raster data.