Definition at line 23 of file BigPathBench.cpp.
◆ BigPathBench()
BigPathBench::BigPathBench |
( |
Align |
align, |
|
|
bool |
round |
|
) |
| |
|
inline |
Definition at line 30 of file BigPathBench.cpp.
30 : fAlign(align), fRound(
round) {
34 }
35 }
const char * gAlignName[]
static void round(SkPoint *p)
void printf(const char format[],...) SK_PRINTF_LIKE(2
void append(const char text[])
◆ onDelayedSetup()
void BigPathBench::onDelayedSetup |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void BigPathBench::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
canvas |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Implements Benchmark.
Definition at line 48 of file BigPathBench.cpp.
48 {
50 paint.setAntiAlias(
true);
52 paint.setStrokeWidth(2);
53 if (fRound) {
55 }
57
59 switch (fAlign) {
62 break;
64 break;
67 break;
68 }
69
70 for (
int i = 0;
i < loops;
i++) {
72 }
73 }
virtual void setupPaint(SkPaint *paint)
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
const SkRect & getBounds() const
constexpr float left() const
constexpr float right() const
◆ onGetName()
const char * BigPathBench::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ onGetSize()
SkISize BigPathBench::onGetSize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from Benchmark.
Definition at line 42 of file BigPathBench.cpp.
42 {
44 }
static constexpr SkISize Make(int32_t w, int32_t h)
The documentation for this class was generated from the following file: