Definition at line 13 of file GrQuadBench.cpp.
◆ INHERITED
◆ GrQuadBoundsBench()
GrQuadBoundsBench::GrQuadBoundsBench |
( |
bool |
perspective | ) |
|
|
inline |
Definition at line 15 of file GrQuadBench.cpp.
17 fName.
printf(
"grquad_bounds_%s", perspective ?
"3d" :
"2d");
18 }
void printf(const char format[],...) SK_PRINTF_LIKE(2
◆ isSuitableFor()
bool GrQuadBoundsBench::isSuitableFor |
( |
Backend |
backend | ) |
|
|
inlineoverridevirtual |
◆ onDelayedSetup()
void GrQuadBoundsBench::onDelayedSetup |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from Benchmark.
Definition at line 31 of file GrQuadBench.cpp.
31 {
34 for (int j = 0; j < 4; ++j) {
38
39
41 } else {
43 }
44 }
47 }
48 }
static constexpr int kQuadCount
GrQuad fQuads[kQuadCount]
void setQuadType(Type newType)
float nextRangeF(float min, float max)
◆ onDraw()
void GrQuadBoundsBench::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
|
|
) |
| |
|
inlineoverrideprotectedvirtual |
Implements Benchmark.
Definition at line 50 of file GrQuadBench.cpp.
50 {
52 for (
int i = 0;
i < loops; ++
i) {
56 }
57 }
58
59
61 }
constexpr float height() const
constexpr float width() const
◆ onGetName()
const char * GrQuadBoundsBench::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ fArea
◆ fName
◆ fPerspective
bool GrQuadBoundsBench::fPerspective |
|
protected |
◆ fQuads
◆ kQuadCount
constexpr int GrQuadBoundsBench::kQuadCount = 1000 |
|
inlinestaticconstexprprotected |
The documentation for this class was generated from the following file: