56 static const char* gCapName[] = {
57 "butt",
"round",
"square"
59 static const char* gJoinName[] = {
60 "miter",
"round",
"bevel"
67 fName.printf(
"draw_stroke_bezier_%s_%s_%s_%g", proc(
nullptr, 0), gCapName[c], gJoinName[j],
w);
const char *(* DrawProc)(const BezierRec *, int)
static const char * draw_cubic(const BezierRec *rec, int count)
static const char * draw_quad(const BezierRec *rec, int count)
virtual void setupPaint(SkPaint *paint)
void onDraw(int loops, SkCanvas *canvas) override
const char * onGetName() override
BezierBench(SkPaint::Cap c, SkPaint::Join j, SkScalar w, DrawProc proc)
void drawPath(const SkPath &path, const SkPaint &paint)
@ kButt_Cap
no stroke extension
void setStyle(Style style)
void setStrokeCap(Cap cap)
@ kStroke_Style
set to stroke geometry
void setStrokeJoin(Join join)
@ kMiter_Join
extends to miter limit
@ kBevel_Join
connects outside edges
void setStrokeWidth(SkScalar width)
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2)
SkPath & cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)
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