56 canvas->translate(10 - strokeBounds.
fLeft, 10 - strokeBounds.
fTop);
63 canvas->translate(74 - fillBounds.
fLeft, 10 - fillBounds.
fTop);
64 canvas->drawPath(fillPath, fillPaint);
71 canvas->scale(2.f, 2.f);
75 path1.
cubicTo(201.1f, -128.61f, 34.21f, 82.54f, 134.14f, 126.01f);
78 path2.
cubicTo(201.f, -128.61f, 34.21f, 82.54f, 134.14f, 126.f);
84 stroke.setStrokeWidth(1.f);
88 canvas->translate(-75.f, 50.f);
93 canvas->translate(-20.f, 100.f);
101 SkM44 mat{1, -0.00000139566271f, 0, -2321738,
102 0.000113059919f, 0.0123444516f, 0, -353,
109 strokePath.arcTo(circle, 59.9999962f, 59.9999962f,
true);
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
static float SkBits2Float(uint32_t bits)
DEF_SIMPLE_GM_BG(bug41422450, canvas, 863, 473, SK_ColorWHITE)
DEF_SIMPLE_GM(bug12866, canvas, 128, 64)
void setStyle(Style style)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
void setStrokeWidth(SkScalar width)
SkPath & moveTo(SkScalar x, SkScalar y)
const SkRect & getBounds() const
SkPath & cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)
static void strokePath(SkCanvas *canvas, const SkPath &path)
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)
SkScalar fLeft
smaller x-axis bounds
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
SkScalar fTop
smaller y-axis bounds