131 {
132 SkPaint fillPaint, strokePaint, dashPaint;
134 strokePaint = fillPaint;
136 for (
int i = 0;
i < 2; ++
i) {
143 canvas->
drawPath(fMoveHfPath, strokePaint);
145 canvas->
drawPath(fMoveZfPath, strokePaint);
146 dashPaint = strokePaint;
147 const SkScalar intervals[] = { 0, 10 };
152 canvas->
drawPath(fDashedfPath, dashPaint);
154 canvas->
drawPath(fRefPath[
i * 2], fillPaint);
158 canvas->
drawPath(fMoveHfPath, strokePaint);
160 canvas->
drawPath(fMoveZfPath, strokePaint);
163 canvas->
drawPath(fRefPath[1 +
i * 2], fillPaint);
165 canvas->
drawPath(fCubicPath, strokePaint);
167 canvas->
drawPath(fQuadPath, strokePaint);
169 canvas->
drawPath(fLinePath, strokePaint);
171 }
172 }
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
static sk_sp< SkPathEffect > Make(const SkScalar intervals[], int count, SkScalar phase)
void setStyle(Style style)
void setAntiAlias(bool aa)
void setStrokeCap(Cap cap)
@ kStroke_Style
set to stroke geometry
void setPathEffect(sk_sp< SkPathEffect > pathEffect)
void setStrokeWidth(SkScalar width)
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)