Home
last modified time | relevance | path

Searched defs:ShaperBench (Results 1 – 2 of 2) sorted by relevance

/third_party/flutter/skia/bench/
DShaperBench.cpp14 struct ShaperBench : public Benchmark { struct
15 ShaperBench(const char* r, const char* n) : fResource(r), fName(n) {} in ShaperBench() argument
16 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()
/third_party/skia/bench/
DShaperBench.cpp14 struct ShaperBench : public Benchmark { struct
15 ShaperBench(const char* r, const char* n) : fResource(r), fName(n) {} in ShaperBench() function
16 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()