25 canvas->clear(0xFFFFFFFF);
31 canvas->translate(0,
y);
33 canvas->drawRect({ 20, 20, 200, 200 },
p);
39 canvas->translate(0,
y);
41 canvas->drawRect({ 20, 20, 20.2f, 200 },
p);
42 canvas->drawRect({ 20, 200, 200, 200.1f },
p);
43 canvas->drawCircle(100, 100, 30,
p);
55 canvas->drawPath(pb.
detach(),
p);
69 canvas->drawPath(
path,
p);
74 canvas->translate(0,
y);
76 pb.
moveTo(1.98009784f, 9.0162744f);
77 pb.
lineTo(47.843992f, 10.1922744f);
78 pb.
lineTo(47.804008f, 11.7597256f);
79 pb.
lineTo(1.93990216f, 10.5837256f);
80 canvas->drawPath(pb.
detach(),
p);
89 canvas->drawPath(pb.
detach(),
p);
97 canvas->clear(0xFFFFFFFF);
104 for (
int i = 1;
i < 8; ++
i) {
109 canvas->drawPath(
path,
p);
113 canvas->translate(200, 0);
117 canvas->drawPath(
path,
p);
124 canvas->translate(0, 300);
125 canvas->drawPath(
SkPathBuilder().addRect({20, 20, 100.4999f, 100})
126 .addRect({100.5001f, 20, 200, 100})
129 canvas->translate(300, 0);
130 canvas->drawPath(
SkPathBuilder().addRect({20, 20, 100.1f, 100})
131 .addRect({100.9f, 20, 200, 100})
138 p.setAntiAlias(
true);
144 canvas->drawPath(
path,
p);
constexpr SkColor SK_ColorRED
static float SkBits2Float(uint32_t bits)
#define SkScalarSin(radians)
#define SkScalarCos(radians)
DEF_SIMPLE_GM(analytic_antialias_convex, canvas, W, H)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
SkPathBuilder & conicTo(SkPoint pt1, SkPoint pt2, SkScalar w)
SkPathBuilder & lineTo(SkPoint pt)
SkPathBuilder & cubicTo(SkPoint pt1, SkPoint pt2, SkPoint pt3)
SkPathBuilder & moveTo(SkPoint pt)
static void SetConvexity(const SkPath &path, SkPathConvexity c)
static SkPath Circle(SkScalar center_x, SkScalar center_y, SkScalar radius, SkPathDirection dir=SkPathDirection::kCW)
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