• Home
  • Raw
  • Download

Lines Matching full:path

21 static SkScalar make_frame(SkPath* path) {  in make_frame()  argument
24 path->addRoundRect(r, SkIntToScalar(15), SkIntToScalar(15)); in make_frame()
29 paint.getFillPath(*path, path); in make_frame()
33 static SkScalar make_triangle(SkPath* path) { in make_triangle() argument
37 path->moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])); in make_triangle()
38 path->lineTo(SkIntToScalar(gCoord[2]), SkIntToScalar(gCoord[3])); in make_triangle()
39 path->lineTo(SkIntToScalar(gCoord[4]), SkIntToScalar(gCoord[5])); in make_triangle()
40 path->close(); in make_triangle()
41 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_triangle()
45 static SkScalar make_rect(SkPath* path) { in make_rect() argument
48 path->addRect(r); in make_rect()
49 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_rect()
53 static SkScalar make_oval(SkPath* path) { in make_oval() argument
56 path->addOval(r); in make_oval()
57 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_oval()
61 static SkScalar make_sawtooth(SkPath* path, int teeth) { in make_sawtooth() argument
68 path->moveTo(x, y); in make_sawtooth()
71 path->lineTo(x, y - dy); in make_sawtooth()
73 path->lineTo(x, y + dy); in make_sawtooth()
75 path->lineTo(x, y + (2 * dy)); in make_sawtooth()
76 path->lineTo(x0, y + (2 * dy)); in make_sawtooth()
77 path->close(); in make_sawtooth()
81 static SkScalar make_sawtooth_3(SkPath* path) { return make_sawtooth(path, 3); } in make_sawtooth_3() argument
82 static SkScalar make_sawtooth_32(SkPath* path) { return make_sawtooth(path, 32); } in make_sawtooth_32() argument
84 static SkScalar make_house(SkPath* path) { in make_house() argument
85 path->moveTo(21, 23); in make_house()
86 path->lineTo(21, 11.534f); in make_house()
87 path->lineTo(22.327f, 12.741f); in make_house()
88 path->lineTo(23.673f, 11.261f); in make_house()
89 path->lineTo(12, 0.648f); in make_house()
90 path->lineTo(8, 4.285f); in make_house()
91 path->lineTo(8, 2); in make_house()
92 path->lineTo(4, 2); in make_house()
93 path->lineTo(4, 7.921f); in make_house()
94 path->lineTo(0.327f, 11.26f); in make_house()
95 path->lineTo(1.673f, 12.74f); in make_house()
96 path->lineTo(3, 11.534f); in make_house()
97 path->lineTo(3, 23); in make_house()
98 path->lineTo(11, 23); in make_house()
99 path->lineTo(11, 18); in make_house()
100 path->lineTo(13, 18); in make_house()
101 path->lineTo(13, 23); in make_house()
102 path->lineTo(21, 23); in make_house()
103 path->close(); in make_house()
104 path->lineTo(9, 16); in make_house()
105 path->lineTo(9, 21); in make_house()
106 path->lineTo(5, 21); in make_house()
107 path->lineTo(5, 9.715f); in make_house()
108 path->lineTo(12, 3.351f); in make_house()
109 path->lineTo(19, 9.715f); in make_house()
110 path->lineTo(19, 21); in make_house()
111 path->lineTo(15, 21); in make_house()
112 path->lineTo(15, 16); in make_house()
113 path->lineTo(9, 16); in make_house()
114 path->close(); in make_house()
115 path->offset(20, 0); in make_house()
119 static SkScalar make_star(SkPath* path, int n) { in make_star() argument
126 path->moveTo(c, c - r); in make_star()
129 path->lineTo(c + SkScalarCos(rad) * r, c + SkScalarSin(rad) * r); in make_star()
131 path->close(); in make_star()
135 static SkScalar make_star_5(SkPath* path) { return make_star(path, 5); } in make_star_5() argument
136 static SkScalar make_star_13(SkPath* path) { return make_star(path, 13); } in make_star_13() argument
138 // We don't expect any output from this path.
139 static SkScalar make_line(SkPath* path) { in make_line() argument
140 path->moveTo(SkIntToScalar(30), SkIntToScalar(30)); in make_line()
141 path->lineTo(SkIntToScalar(120), SkIntToScalar(40)); in make_line()
142 path->close(); in make_line()
143 path->moveTo(SkIntToScalar(150), SkIntToScalar(30)); in make_line()
144 path->lineTo(SkIntToScalar(150), SkIntToScalar(30)); in make_line()
145 path->lineTo(SkIntToScalar(300), SkIntToScalar(40)); in make_line()
146 path->close(); in make_line()
150 static void make_info(SkPath* path) { in make_info() argument
151 path->moveTo(24, 4); in make_info()
152 path->cubicTo(12.94999980926514f, in make_info()
158 path->cubicTo(4, in make_info()
164 path->cubicTo(35.04999923706055f, in make_info()
170 path->cubicTo(44, in make_info()
176 path->close(); in make_info()
177 path->moveTo(26, 34); in make_info()
178 path->lineTo(22, 34); in make_info()
179 path->lineTo(22, 22); in make_info()
180 path->lineTo(26, 22); in make_info()
181 path->lineTo(26, 34); in make_info()
182 path->close(); in make_info()
183 path->moveTo(26, 18); in make_info()
184 path->lineTo(22, 18); in make_info()
185 path->lineTo(22, 14); in make_info()
186 path->lineTo(26, 14); in make_info()
187 path->lineTo(26, 18); in make_info()
188 path->close(); in make_info()
191 static void make_accessibility(SkPath* path) { in make_accessibility() argument
192 path->moveTo(12, 2); in make_accessibility()
193 path->cubicTo(13.10000038146973f, in make_accessibility()
199 path->cubicTo(14, in make_accessibility()
205 path->cubicTo(10.89999961853027f, in make_accessibility()
211 path->cubicTo(10, in make_accessibility()
217 path->close(); in make_accessibility()
218 path->moveTo(21, 9); in make_accessibility()
219 path->lineTo(15, 9); in make_accessibility()
220 path->lineTo(15, 22); in make_accessibility()
221 path->lineTo(13, 22); in make_accessibility()
222 path->lineTo(13, 16); in make_accessibility()
223 path->lineTo(11, 16); in make_accessibility()
224 path->lineTo(11, 22); in make_accessibility()
225 path->lineTo(9, 22); in make_accessibility()
226 path->lineTo(9, 9); in make_accessibility()
227 path->lineTo(3, 9); in make_accessibility()
228 path->lineTo(3, 7); in make_accessibility()
229 path->lineTo(21, 7); in make_accessibility()
230 path->lineTo(21, 9); in make_accessibility()
231 path->close(); in make_accessibility()
235 static void make_visualizer(SkPath* path) { in make_visualizer() argument
236 path->moveTo(1.9520f, 2.0000f); in make_visualizer()
237 path->conicTo(1.5573f, 1.9992f, 1.2782f, 2.2782f, 0.9235f); in make_visualizer()
238 path->conicTo(0.9992f, 2.5573f, 1.0000f, 2.9520f, 0.9235f); in make_visualizer()
239 path->lineTo(1.0000f, 5.4300f); in make_visualizer()
240 path->lineTo(17.0000f, 5.4300f); in make_visualizer()
241 path->lineTo(17.0000f, 2.9520f); in make_visualizer()
242 path->conicTo(17.0008f, 2.5573f, 16.7218f, 2.2782f, 0.9235f); in make_visualizer()
243 path->conicTo(16.4427f, 1.9992f, 16.0480f, 2.0000f, 0.9235f); in make_visualizer()
244 path->lineTo(1.9520f, 2.0000f); in make_visualizer()
245 path->close(); in make_visualizer()
246 path->moveTo(2.7140f, 3.1430f); in make_visualizer()
247 path->conicTo(3.0547f, 3.1287f, 3.2292f, 3.4216f, 0.8590f); in make_visualizer()
248 path->conicTo(3.4038f, 3.7145f, 3.2292f, 4.0074f, 0.8590f); in make_visualizer()
249 path->conicTo(3.0547f, 4.3003f, 2.7140f, 4.2860f, 0.8590f); in make_visualizer()
250 path->conicTo(2.1659f, 4.2631f, 2.1659f, 3.7145f, 0.7217f); in make_visualizer()
251 path->conicTo(2.1659f, 3.1659f, 2.7140f, 3.1430f, 0.7217f); in make_visualizer()
252 path->lineTo(2.7140f, 3.1430f); in make_visualizer()
253 path->close(); in make_visualizer()
254 path->moveTo(5.0000f, 3.1430f); in make_visualizer()
255 path->conicTo(5.3407f, 3.1287f, 5.5152f, 3.4216f, 0.8590f); in make_visualizer()
256 path->conicTo(5.6898f, 3.7145f, 5.5152f, 4.0074f, 0.8590f); in make_visualizer()
257 path->conicTo(5.3407f, 4.3003f, 5.0000f, 4.2860f, 0.8590f); in make_visualizer()
258 path->conicTo(4.4519f, 4.2631f, 4.4519f, 3.7145f, 0.7217f); in make_visualizer()
259 path->conicTo(4.4519f, 3.1659f, 5.0000f, 3.1430f, 0.7217f); in make_visualizer()
260 path->lineTo(5.0000f, 3.1430f); in make_visualizer()
261 path->close(); in make_visualizer()
262 path->moveTo(7.2860f, 3.1430f); in make_visualizer()
263 path->conicTo(7.6267f, 3.1287f, 7.8012f, 3.4216f, 0.8590f); in make_visualizer()
264 path->conicTo(7.9758f, 3.7145f, 7.8012f, 4.0074f, 0.8590f); in make_visualizer()
265 path->conicTo(7.6267f, 4.3003f, 7.2860f, 4.2860f, 0.8590f); in make_visualizer()
266 path->conicTo(6.7379f, 4.2631f, 6.7379f, 3.7145f, 0.7217f); in make_visualizer()
267 path->conicTo(6.7379f, 3.1659f, 7.2860f, 3.1430f, 0.7217f); in make_visualizer()
268 path->close(); in make_visualizer()
269 path->moveTo(1.0000f, 6.1900f); in make_visualizer()
270 path->lineTo(1.0000f, 14.3810f); in make_visualizer()
271 path->conicTo(0.9992f, 14.7757f, 1.2782f, 15.0548f, 0.9235f); in make_visualizer()
272 path->conicTo(1.5573f, 15.3338f, 1.9520f, 15.3330f, 0.9235f); in make_visualizer()
273 path->lineTo(16.0480f, 15.3330f); in make_visualizer()
274 path->conicTo(16.4427f, 15.3338f, 16.7218f, 15.0548f, 0.9235f); in make_visualizer()
275 path->conicTo(17.0008f, 14.7757f, 17.0000f, 14.3810f, 0.9235f); in make_visualizer()
276 path->lineTo(17.0000f, 6.1910f); in make_visualizer()
277 path->lineTo(1.0000f, 6.1910f); in make_visualizer()
278 path->lineTo(1.0000f, 6.1900f); in make_visualizer()
279 path->close(); in make_visualizer()
370 static void show(SkCanvas* canvas, const SkPath& path, const SkPaint& paint, in show() argument
379 canvas->drawPath(path, paint); in show()
384 SkPath path; in onDraw() local
386 path.addCircle(SkIntToScalar(50), SkIntToScalar(50), SkIntToScalar(40)); in onDraw()
387 path.toggleInverseFillType(); in onDraw()
403 show(canvas, path, paint, clipPtr, clipR.fTop, clipR.centerY()); in onDraw()
404 show(canvas, path, paint, clipPtr, clipR.centerY(), clipR.fBottom); in onDraw()
422 SkPath path; variable
423 path.moveTo(48,-23);
424 path.cubicTo(48,-29.5, 6,-30, 6,-30);
425 path.cubicTo(6,-30, 2,0, 2,0);
426 path.cubicTo(2,0, 44,-21.5, 48,-23);
427 path.close();
430 canvas->drawPath(path, p);
432 // Rotated path, which is not antialiased on GPU
435 canvas->drawPath(path, p);
446 SkPath path; local
447 path.moveTo(10, 10);
448 path.moveTo(75, 75);
449 path.lineTo(150, 75);
450 path.lineTo(150, 150);
451 path.lineTo(75, 150);
452 canvas->drawPath(path, p);
455 path.reset();
456 path.moveTo(75, 50);
457 path.moveTo(100, 75);
458 path.lineTo(150, 75);
459 path.lineTo(150, 150);
460 path.lineTo(75, 150);
461 path.lineTo(75, 50);
462 path.close();
463 canvas->drawPath(path, p);
466 path.reset();
467 path.moveTo(10, 10);
468 path.moveTo(75, 75);
469 path.lineTo(150, 75);
470 path.lineTo(150, 150);
471 path.lineTo(75, 150);
472 path.close();
473 canvas->drawPath(path, p);
476 path.reset();
477 path.moveTo(75, 150);
478 path.lineTo(75, 75);
479 path.lineTo(150, 75);
480 path.lineTo(150, 150);
481 path.lineTo(75, 150);
482 path.moveTo(75, 150);
483 canvas->drawPath(path, p);
486 path.reset();
487 path.moveTo(250, 75);
488 path.moveTo(250, 75);
489 path.moveTo(250, 75);
490 path.moveTo(100, 75);
491 path.lineTo(150, 75);
492 path.lineTo(150, 150);
493 path.lineTo(75, 150);
494 path.lineTo(75, 75);
495 path.close();
496 path.lineTo(0, 0);
497 path.close();
498 canvas->drawPath(path, p);
501 path.reset();
502 path.moveTo(75, 75);
503 path.lineTo(150, 75);
504 path.lineTo(150, 150);
505 path.lineTo(75, 150);
506 path.moveTo(250, 75);
507 canvas->drawPath(path, p);
510 path.reset();
511 path.moveTo(75, 10);
512 path.moveTo(75, 75);
513 path.lineTo(150, 75);
514 path.lineTo(150, 150);
515 path.lineTo(75, 150);
516 path.lineTo(75, 10);
517 path.close();
518 canvas->drawPath(path, p);
521 path.reset();
522 path.moveTo(75, 75);
523 path.lineTo(75, 75);
524 path.lineTo(75, 75);
525 path.lineTo(75, 75);
526 path.lineTo(150, 75);
527 path.lineTo(150, 150);
528 path.lineTo(75, 150);
529 path.close();
530 path.moveTo(10, 10);
531 path.lineTo(30, 10);
532 path.lineTo(10, 30);
533 canvas->drawPath(path, p);
536 path.reset();
537 path.moveTo(75, 75);
538 path.lineTo(75, 75);
539 path.moveTo(75, 75);
540 path.lineTo(75, 75);
541 path.lineTo(150, 75);
542 path.lineTo(150, 150);
543 path.lineTo(75, 150);
544 path.close();
545 canvas->drawPath(path, p);
548 path.reset();
549 path.moveTo(75, 75);
550 path.lineTo(150, 75);
551 path.lineTo(150, 150);
552 path.lineTo(75, 150);
553 path.lineTo(75, 250);
554 path.moveTo(75, 75);
555 path.close();
556 canvas->drawPath(path, p);
559 path.reset();
560 path.moveTo(75, 75);
561 path.lineTo(150, 75);
562 path.lineTo(150, 150);
563 path.lineTo(75, 150);
564 path.lineTo(75, 10);
565 path.moveTo(75, 75);
566 path.close();
567 canvas->drawPath(path, p);
570 path.reset();
571 path.moveTo(75, 75);
572 path.lineTo(150, 75);
573 path.lineTo(150, 150);
574 path.lineTo(10, 150);
575 path.moveTo(75, 75);
576 path.lineTo(75, 75);
577 canvas->drawPath(path, p);
580 path.reset();
581 path.moveTo(150, 75);
582 path.lineTo(150, 150);
583 path.lineTo(75, 150);
584 path.lineTo(75, 100);
585 canvas->drawPath(path, p);
588 path.reset();
589 path.moveTo(150, 100);
590 path.lineTo(150, 100);
591 path.lineTo(150, 150);
592 path.lineTo(75, 150);
593 path.lineTo(75, 100);
594 path.lineTo(75, 75);
595 path.lineTo(150, 75);
596 path.close();
597 canvas->drawPath(path, p);
600 path.reset();
601 path.moveTo(75, 75);
602 path.lineTo(150, 75);
603 path.lineTo(150, 150);
604 path.lineTo(140, 150);
605 path.lineTo(140, 75);
606 path.moveTo(75, 75);
607 path.close();
608 canvas->drawPath(path, p);
611 path.reset();
612 path.moveTo(75, 75);
613 path.lineTo(150, 75);
614 path.lineTo(150, 150);
615 path.lineTo(140, 150);
616 path.lineTo(140, 75);
617 path.moveTo(75, 75);
618 path.close();
619 canvas->drawPath(path, p);