Definition at line 24 of file BlurRectBench.cpp.
◆ BlurRectBench()
BlurRectBench::BlurRectBench |
( |
SkScalar |
rad | ) |
|
|
inline |
Definition at line 30 of file BlurRectBench.cpp.
30 {
31 fRadius = rad;
32
34 fLoopCount = 100;
36 fLoopCount = 1000;
37 } else {
38 fLoopCount = 10000;
39 }
40 }
◆ makeBlurryRect()
virtual void BlurRectBench::makeBlurryRect |
( |
const SkRect & |
| ) |
|
|
protectedpure virtual |
◆ onDraw()
|
inlineoverrideprotectedvirtual |
Implements Benchmark.
Definition at line 55 of file BlurRectBench.cpp.
55 {
58
59 paint.setAntiAlias(
true);
60
63
65
66 for (
int i = 0;
i < loops;
i++) {
68 }
69 }
virtual void setupPaint(SkPaint *paint)
virtual void makeBlurryRect(const SkRect &)=0
virtual void preBenchSetup(const SkRect &)
static constexpr SkRect MakeWH(float w, float h)
◆ onGetName()
const char * BlurRectBench::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ preBenchSetup()
virtual void BlurRectBench::preBenchSetup |
( |
const SkRect & |
| ) |
|
|
inlineprotectedvirtual |
◆ radius()
SkScalar BlurRectBench::radius |
( |
| ) |
const |
|
inlineprotected |
◆ setName()
void BlurRectBench::setName |
( |
const SkString & |
name | ) |
|
|
inlineprotected |
Definition at line 51 of file BlurRectBench.cpp.
51 {
53 }
DEF_SWITCHES_START aot vmservice shared library name
The documentation for this class was generated from the following file: