37 paint.setAntiAlias(
true);
38 auto drawPathSet = [canvas] (
const SkPath& path,
const SkMatrix& m) {
40 paint.setAntiAlias(
true);
41 SkRect bounds = path.getBounds();
45 canvas->
translate(-bounds.fLeft, -bounds.fTop);
73 return bounds.fBottom +
kPad;
79 paths.
back().moveTo(0.f, 0.f);
80 paths.
back().lineTo(98.f, 100.f);
81 paths.
back().lineTo(100.f, 100.f);
82 paths.
back().conicTo(150.f, 50.f, 100.f, 0.f, 0.6f);
83 paths.
back().conicTo(148.f, 50.f, 100.f, 100.f, 0.6f);
84 paths.
back().conicTo(50.f, 30.f, 0.f, 100.f, 0.9f);
87 paths.
back().addCircle(30.f, 30.f, 30.f);
93 for (
const SkPath& path : paths) {
99 s.setScale(0.5f, 2.f);
100 ty = drawPathSet(path,
s);
105 r.
setRotate(60.f, path.getBounds().centerX(), path.getBounds().centerY());
106 ty = drawPathSet(path, r);