Definition at line 12 of file ClipStrategyBench.cpp.
◆ Mode
◆ ClipStrategyBench()
ClipStrategyBench::ClipStrategyBench |
( |
Mode |
mode, |
|
|
size_t |
count |
|
) |
| |
|
inline |
Definition at line 19 of file ClipStrategyBench.cpp.
22 , fName("clip_strategy_"){
23
26 this->forEachClipCircle([&](
float x,
float y,
float r) {
28 });
29 } else {
31 }
33 }
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
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
◆ ~ClipStrategyBench()
ClipStrategyBench::~ClipStrategyBench |
( |
| ) |
|
|
overridedefault |
◆ onDraw()
void ClipStrategyBench::onDraw |
( |
int |
loops, |
|
|
SkCanvas * |
canvas |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Implements Benchmark.
Definition at line 42 of file ClipStrategyBench.cpp.
42 {
46
47 for (
int i = 0;
i < loops; ++
i) {
49
53 } else {
55 this->forEachClipCircle([&](
float x,
float y,
float r) {
57 });
59 }
61 }
62 }
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: