Lines Matching defs:path
60 SkPath path;
61 this->makePath(&path);
64 path.transform(m);
68 canvas->drawPath(path, paint);
83 void makePath(SkPath* path) override {
87 path->moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1]));
88 path->lineTo(SkIntToScalar(gCoord[2]), SkIntToScalar(gCoord[3]));
89 path->lineTo(SkIntToScalar(gCoord[4]), SkIntToScalar(gCoord[5]));
90 path->close();
103 void makePath(SkPath* path) override {
105 path->addRect(r);
124 void makePath(SkPath* path) override {
126 path->addRect(r);
129 path->transform(rotateMatrix);
149 void makePath(SkPath* path) override {
151 path->addOval(r);
164 void makePath(SkPath* path) override {
165 path->addCircle(SkIntToScalar(20), SkIntToScalar(20),
198 void makePath(SkPath* path) override {
199 path->moveTo(10, 10);
200 path->lineTo(15, 10);
201 path->lineTo(15, 5);
202 path->lineTo(40, 40);
203 path->close();
219 void makePath(SkPath* path) override {
220 path->moveTo(10, 10);
221 path->lineTo(15, 10);
222 path->lineTo(40, 50);
223 path->close();
237 void makePath(SkPath* path) override {
244 path->moveTo(x, y);
247 path->lineTo(x, y - dy);
249 path->lineTo(x, y + dy);
251 path->lineTo(x, y + 2 * dy);
252 path->lineTo(x0, y + 2 * dy);
253 path->close();
267 void makePath(SkPath* path) override {
271 path->quadTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480,
274 path->close();
288 void makePath(SkPath* path) override {
290 path->moveTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480);
292 path->lineTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480);
340 void makePath(SkPath* path) {
346 path->moveTo(fPoints[(fCurrPoint++) & (kNumPoints - 1)]);
349 path->lineTo(fPoints[(fCurrPoint++) & (kNumPoints - 1)]);
352 path->quadTo(fPoints[(fCurrPoint + 0) & (kNumPoints - 1)],
357 path->conicTo(fPoints[(fCurrPoint + 0) & (kNumPoints - 1)],
363 path->cubicTo(fPoints[(fCurrPoint + 0) & (kNumPoints - 1)],
369 path->close();
372 SkDEBUGFAIL("Unexpected path verb");
588 // reversePathTo assumes a single contour path.
732 static void add_corner_arc(SkPath* path, const SkRect& rect,
759 path->arcTo(arcRect, SkIntToScalar(startAngle), SkIntToScalar(90), false);
762 static void make_arb_round_rect(SkPath* path, const SkRect& r,
765 add_corner_arc(path, r, xCorner, yCorner, 270);
766 add_corner_arc(path, r, xCorner, yCorner, 0);
767 add_corner_arc(path, r, xCorner, yCorner, 90);
768 add_corner_arc(path, r, xCorner, yCorner, 180);
769 path->close();
771 SkASSERT(path->isConvex());
877 static const SkRect kBaseRect; // rect that is used to construct the path
988 SkPath path;
989 path.moveTo(-100, 1);
990 path.cubicTo(-101, 1, -118, -47, -138, -44);
997 paint.getFillPath(path, &dst, nullptr, SkPaintPriv::ComputeResScaleForStroking(mtx));
1218 DEF_BENCH( return new TightBoundsBench([](const SkPath& path){ return path.computeTightBounds();},
1220 DEF_BENCH( return new TightBoundsBench([](const SkPath& path) {
1221 SkRect bounds; TightBounds(path, &bounds); return bounds;