16 fName.
printf(
"GM_%s", fGM->getName().c_str());
30 fGpuSetupFailed =
true;
33 fGM->onceBeforeDraw();
41 fGpuSetupFailed =
false;
45 if (fGpuSetupFailed) {
49 fGM->drawBackground(canvas);
50 for (
int i = 0;
i < loops; ++
i) {
51 fGM->drawContent(canvas);
56 return fGM->getISize();
void onPerCanvasPostDraw(SkCanvas *) override
SkISize onGetSize() override
GMBench(std::unique_ptr< skiagm::GM > gm)
void onDraw(int loops, SkCanvas *) override
const char * onGetName() override
void onPerCanvasPreDraw(SkCanvas *) override
bool isSuitableFor(Backend backend) override
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const