20 paint.setAntiAlias(
true);
21 paint.setStrokeWidth(0.25f);
24 static constexpr SkScalar kDash[2] = {10.f, 10.f};
28 canvas->concat(viewBox);
30 canvas->drawPath(path,
paint);
constexpr SkColor SK_ColorBLACK
static sk_sp< SkPathEffect > Make(const SkScalar intervals[], int count, SkScalar phase)
static SkMatrix RectToRect(const SkRect &src, const SkRect &dst, ScaleToFit mode=kFill_ScaleToFit)
@ kStroke_Style
set to stroke geometry
static SkPath Line(const SkPoint a, const SkPoint b)
#define DEF_SIMPLE_GM(NAME, CANVAS, W, H)
static constexpr SkRect MakeWH(float w, float h)