Searched defs:ShaperBench (Results 1 – 2 of 2) sorted by relevance
14 struct ShaperBench : public Benchmark { struct15 ShaperBench(const char* r, const char* n) : fResource(r), fName(n) {} in ShaperBench() argument16 std::unique_ptr<SkShaper> fShaper;17 sk_sp<SkData> fData;18 const char* fResource;19 const char* fName;20 const char* onGetName() override { return fName; } in onGetName()21 bool isSuitableFor(Backend backend) override { return backend == kNonRendering_Backend; } in isSuitableFor()22 void onDelayedSetup() override { in onDelayedSetup()26 void onDraw(int loops, SkCanvas*) override { in onDraw()
14 struct ShaperBench : public Benchmark { struct15 ShaperBench(const char* r, const char* n) : fResource(r), fName(n) {} in ShaperBench() function16 std::unique_ptr<SkShaper> fShaper;17 sk_sp<SkData> fData;18 const char* fResource;19 const char* fName;20 const char* onGetName() override { return fName; } in onGetName()21 bool isSuitableFor(Backend backend) override { return backend == kNonRendering_Backend; } in isSuitableFor()22 void onDelayedSetup() override { in onDelayedSetup()26 void onDraw(int loops, SkCanvas*) override { in onDraw()