Definition at line 11 of file CanvasSaveRestoreBench.cpp.
◆ CanvasSaveRestoreBench()
CanvasSaveRestoreBench::CanvasSaveRestoreBench |
( |
int |
depth | ) |
|
|
inline |
Definition at line 13 of file CanvasSaveRestoreBench.cpp.
13 : fDepth(depth) {
14 fName.
printf(
"canvas_save_restore_%d", fDepth);
15 }
void printf(const char format[],...) SK_PRINTF_LIKE(2
◆ isSuitableFor()
bool CanvasSaveRestoreBench::isSuitableFor |
( |
Backend |
backend | ) |
|
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void CanvasSaveRestoreBench::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
canvas |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Implements Benchmark.
Definition at line 22 of file CanvasSaveRestoreBench.cpp.
22 {
24
25 for (
int i = 0;
i < loops; ++
i) {
26 for (int j = 0; j < fDepth; ++j) {
29 }
31 for (
int j = 0; j <
fDepth; ++j) {
33 }
34 }
35 }
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void concat(const SkMatrix &matrix)
static SkM44 Rotate(SkV3 axis, SkScalar radians)
constexpr SkColor4f kCyan
◆ onGetName()
const char * CanvasSaveRestoreBench::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ onGetSize()
SkISize CanvasSaveRestoreBench::onGetSize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: