387 {
393 SkPaint strokePaint(origPaint);
395
397 make0, make1, make2, make3, make4, make5
398 };
399
401
405
406 for (size_t i = 0; i < std::size(procs); ++i) {
409 procs[i](&orig,
bounds, &str);
410
412 for (int j = 0; j < 13; ++j) {
413 strokePaint.setStrokeWidth(
SK_Scalar1 * j * j);
414 canvas->
drawPath(orig, strokePaint);
419 canvas->
translate(dx + strokePaint.getStrokeWidth(), 0);
420 }
423 }
424 }
constexpr SkColor SK_ColorRED
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
void setStyle(Style style)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
Optional< SkRect > bounds
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)
static constexpr SkRect MakeWH(float w, float h)