22 , fName(
"clip_strategy_"){
26 this->forEachClipCircle([&](
float x,
float y,
float r) {
47 for (
int i = 0;
i < loops; ++
i) {
55 this->forEachClipCircle([&](
float x,
float y,
float r) {
65 template <
typename Func>
66 void forEachClipCircle(Func&& func) {
67 auto q =
static_cast<float>(this->
getSize().
width()) / (fCount + 1);
68 for (
size_t i = 1;
i <= fCount; ++
i) {
constexpr SkColor SK_ColorGREEN
ClipStrategyBench(Mode mode, size_t count)
~ClipStrategyBench() override=default
void onDraw(int loops, SkCanvas *canvas) override
const char * onGetName() override
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)
SkPath & addCircle(SkScalar x, SkScalar y, SkScalar radius, SkPathDirection dir=SkPathDirection::kCW)
void append(const char text[])
const char * c_str() const
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
constexpr int32_t width() const