18 : fPath(path), fPaint(
paint), fRes(res)
20 fName.
printf(
"build_stroke_%s_%g_%d_%d",
21 pathType,
paint.getStrokeWidth(),
paint.getStrokeJoin(),
paint.getStrokeCap());
35 for (
int outer = 0; outer < 10; ++outer) {
36 for (
int i = 0; i < loops; ++i) {
53static const int N = 100;
65 for (
int i = 0; i <
N; ++i) {
74 for (
int i = 0; i <
N; ++i) {
83 for (
int i = 0; i <
N; ++i) {
92 for (
int i = 0; i <
N; ++i) {
101 paint.setStrokeWidth(
X / 10);
static SkPoint rand_pt(SkRandom &rand)
static SkPath cubic_path_maker()
static SkPath quad_path_maker()
static SkPath conic_path_maker()
static SkPaint paint_maker()
static SkPath line_path_maker()
virtual void setupPaint(SkPaint *paint)
@ kStroke_Style
set to stroke geometry
@ kMiter_Join
extends to miter limit
void printf(const char format[],...) SK_PRINTF_LIKE(2
const char * c_str() const
bool isSuitableFor(Backend backend) override
void onDraw(int loops, SkCanvas *canvas) override
StrokeBench(const SkPath &path, const SkPaint &paint, const char pathType[], SkScalar res)
const char * onGetName() override
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)
static constexpr SkPoint Make(float x, float y)