Definition at line 13 of file ClipStrategyBench.cpp.
◆ Mode
◆ ClipStrategyBench()
ClipStrategyBench::ClipStrategyBench |
( |
Mode |
mode, |
|
|
size_t |
count |
|
) |
| |
|
inline |
Definition at line 20 of file ClipStrategyBench.cpp.
21 : fMode(mode)
23 , fName("clip_strategy_"){
24
27 this->forEachClipCircle([&](
float x,
float y,
float r) {
29 });
30 } else {
32 }
34 }
SkPath & addCircle(SkScalar x, SkScalar y, SkScalar radius, SkPathDirection dir=SkPathDirection::kCW)
void append(const char text[])
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
◆ ~ClipStrategyBench()
ClipStrategyBench::~ClipStrategyBench |
( |
| ) |
|
|
overridedefault |
◆ onDraw()
void ClipStrategyBench::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
canvas |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Implements Benchmark.
Definition at line 43 of file ClipStrategyBench.cpp.
43 {
47
48 for (int i = 0; i < loops; ++i) {
50
54 } else {
56 this->forEachClipCircle([&](
float x,
float y,
float r) {
58 });
60 }
62 }
63 }
constexpr SkColor SK_ColorGREEN
int saveLayer(const SkRect *bounds, const SkPaint *paint)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
void setBlendMode(SkBlendMode mode)
◆ onGetName()
const char * ClipStrategyBench::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: