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()
DEF_BENCH(return new StrokeBench(line_path_maker(), paint_maker(), "line_1", 1);) DEF_BENCH(return new StrokeBench(quad_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
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
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)