• Home
  • Raw
  • Download

Lines Matching full:path

13 static SkScalar make_frame(SkPath* path) {  in make_frame()  argument
16 path->addRoundRect(r, SkIntToScalar(15), SkIntToScalar(15)); in make_frame()
21 paint.getFillPath(*path, path); in make_frame()
25 static SkScalar make_triangle(SkPath* path) { in make_triangle() argument
29 path->moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])); in make_triangle()
30 path->lineTo(SkIntToScalar(gCoord[2]), SkIntToScalar(gCoord[3])); in make_triangle()
31 path->lineTo(SkIntToScalar(gCoord[4]), SkIntToScalar(gCoord[5])); in make_triangle()
32 path->close(); in make_triangle()
33 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_triangle()
37 static SkScalar make_rect(SkPath* path) { in make_rect() argument
40 path->addRect(r); in make_rect()
41 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_rect()
45 static SkScalar make_oval(SkPath* path) { in make_oval() argument
48 path->addOval(r); in make_oval()
49 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_oval()
53 static SkScalar make_sawtooth(SkPath* path, int teeth) { in make_sawtooth() argument
60 path->moveTo(x, y); in make_sawtooth()
63 path->lineTo(x, y - dy); in make_sawtooth()
65 path->lineTo(x, y + dy); in make_sawtooth()
67 path->lineTo(x, y + (2 * dy)); in make_sawtooth()
68 path->lineTo(x0, y + (2 * dy)); in make_sawtooth()
69 path->close(); in make_sawtooth()
73 static SkScalar make_sawtooth_3(SkPath* path) { return make_sawtooth(path, 3); } in make_sawtooth_3() argument
74 static SkScalar make_sawtooth_32(SkPath* path) { return make_sawtooth(path, 32); } in make_sawtooth_32() argument
76 static SkScalar make_house(SkPath* path) { in make_house() argument
77 path->moveTo(21, 23); in make_house()
78 path->lineTo(21, 11.534f); in make_house()
79 path->lineTo(22.327f, 12.741f); in make_house()
80 path->lineTo(23.673f, 11.261f); in make_house()
81 path->lineTo(12, 0.648f); in make_house()
82 path->lineTo(8, 4.285f); in make_house()
83 path->lineTo(8, 2); in make_house()
84 path->lineTo(4, 2); in make_house()
85 path->lineTo(4, 7.921f); in make_house()
86 path->lineTo(0.327f, 11.26f); in make_house()
87 path->lineTo(1.673f, 12.74f); in make_house()
88 path->lineTo(3, 11.534f); in make_house()
89 path->lineTo(3, 23); in make_house()
90 path->lineTo(11, 23); in make_house()
91 path->lineTo(11, 18); in make_house()
92 path->lineTo(13, 18); in make_house()
93 path->lineTo(13, 23); in make_house()
94 path->lineTo(21, 23); in make_house()
95 path->close(); in make_house()
96 path->lineTo(9, 16); in make_house()
97 path->lineTo(9, 21); in make_house()
98 path->lineTo(5, 21); in make_house()
99 path->lineTo(5, 9.715f); in make_house()
100 path->lineTo(12, 3.351f); in make_house()
101 path->lineTo(19, 9.715f); in make_house()
102 path->lineTo(19, 21); in make_house()
103 path->lineTo(15, 21); in make_house()
104 path->lineTo(15, 16); in make_house()
105 path->lineTo(9, 16); in make_house()
106 path->close(); in make_house()
107 path->offset(20, 0); in make_house()
111 static SkScalar make_star(SkPath* path, int n) { in make_star() argument
118 path->moveTo(c, c - r); in make_star()
122 path->lineTo(c + cosV * r, c + sinV * r); in make_star()
124 path->close(); in make_star()
128 static SkScalar make_star_5(SkPath* path) { return make_star(path, 5); } in make_star_5() argument
129 static SkScalar make_star_13(SkPath* path) { return make_star(path, 13); } in make_star_13() argument
131 // We don't expect any output from this path.
132 static SkScalar make_line(SkPath* path) { in make_line() argument
133 path->moveTo(SkIntToScalar(30), SkIntToScalar(30)); in make_line()
134 path->lineTo(SkIntToScalar(120), SkIntToScalar(40)); in make_line()
135 path->close(); in make_line()
136 path->moveTo(SkIntToScalar(150), SkIntToScalar(30)); in make_line()
137 path->lineTo(SkIntToScalar(150), SkIntToScalar(30)); in make_line()
138 path->lineTo(SkIntToScalar(300), SkIntToScalar(40)); in make_line()
139 path->close(); in make_line()
143 static void make_info(SkPath* path) { in make_info() argument
144 path->moveTo(24, 4); in make_info()
145 path->cubicTo(12.94999980926514f, in make_info()
151 path->cubicTo(4, in make_info()
157 path->cubicTo(35.04999923706055f, in make_info()
163 path->cubicTo(44, in make_info()
169 path->close(); in make_info()
170 path->moveTo(26, 34); in make_info()
171 path->lineTo(22, 34); in make_info()
172 path->lineTo(22, 22); in make_info()
173 path->lineTo(26, 22); in make_info()
174 path->lineTo(26, 34); in make_info()
175 path->close(); in make_info()
176 path->moveTo(26, 18); in make_info()
177 path->lineTo(22, 18); in make_info()
178 path->lineTo(22, 14); in make_info()
179 path->lineTo(26, 14); in make_info()
180 path->lineTo(26, 18); in make_info()
181 path->close(); in make_info()
184 static void make_accessibility(SkPath* path) { in make_accessibility() argument
185 path->moveTo(12, 2); in make_accessibility()
186 path->cubicTo(13.10000038146973f, in make_accessibility()
192 path->cubicTo(14, in make_accessibility()
198 path->cubicTo(10.89999961853027f, in make_accessibility()
204 path->cubicTo(10, in make_accessibility()
210 path->close(); in make_accessibility()
211 path->moveTo(21, 9); in make_accessibility()
212 path->lineTo(15, 9); in make_accessibility()
213 path->lineTo(15, 22); in make_accessibility()
214 path->lineTo(13, 22); in make_accessibility()
215 path->lineTo(13, 16); in make_accessibility()
216 path->lineTo(11, 16); in make_accessibility()
217 path->lineTo(11, 22); in make_accessibility()
218 path->lineTo(9, 22); in make_accessibility()
219 path->lineTo(9, 9); in make_accessibility()
220 path->lineTo(3, 9); in make_accessibility()
221 path->lineTo(3, 7); in make_accessibility()
222 path->lineTo(21, 7); in make_accessibility()
223 path->lineTo(21, 9); in make_accessibility()
224 path->close(); in make_accessibility()
228 static void make_visualizer(SkPath* path) { in make_visualizer() argument
229 path->moveTo(1.9520f, 2.0000f); in make_visualizer()
230 path->conicTo(1.5573f, 1.9992f, 1.2782f, 2.2782f, 0.9235f); in make_visualizer()
231 path->conicTo(0.9992f, 2.5573f, 1.0000f, 2.9520f, 0.9235f); in make_visualizer()
232 path->lineTo(1.0000f, 5.4300f); in make_visualizer()
233 path->lineTo(17.0000f, 5.4300f); in make_visualizer()
234 path->lineTo(17.0000f, 2.9520f); in make_visualizer()
235 path->conicTo(17.0008f, 2.5573f, 16.7218f, 2.2782f, 0.9235f); in make_visualizer()
236 path->conicTo(16.4427f, 1.9992f, 16.0480f, 2.0000f, 0.9235f); in make_visualizer()
237 path->lineTo(1.9520f, 2.0000f); in make_visualizer()
238 path->close(); in make_visualizer()
239 path->moveTo(2.7140f, 3.1430f); in make_visualizer()
240 path->conicTo(3.0547f, 3.1287f, 3.2292f, 3.4216f, 0.8590f); in make_visualizer()
241 path->conicTo(3.4038f, 3.7145f, 3.2292f, 4.0074f, 0.8590f); in make_visualizer()
242 path->conicTo(3.0547f, 4.3003f, 2.7140f, 4.2860f, 0.8590f); in make_visualizer()
243 path->conicTo(2.1659f, 4.2631f, 2.1659f, 3.7145f, 0.7217f); in make_visualizer()
244 path->conicTo(2.1659f, 3.1659f, 2.7140f, 3.1430f, 0.7217f); in make_visualizer()
245 path->lineTo(2.7140f, 3.1430f); in make_visualizer()
246 path->close(); in make_visualizer()
247 path->moveTo(5.0000f, 3.1430f); in make_visualizer()
248 path->conicTo(5.3407f, 3.1287f, 5.5152f, 3.4216f, 0.8590f); in make_visualizer()
249 path->conicTo(5.6898f, 3.7145f, 5.5152f, 4.0074f, 0.8590f); in make_visualizer()
250 path->conicTo(5.3407f, 4.3003f, 5.0000f, 4.2860f, 0.8590f); in make_visualizer()
251 path->conicTo(4.4519f, 4.2631f, 4.4519f, 3.7145f, 0.7217f); in make_visualizer()
252 path->conicTo(4.4519f, 3.1659f, 5.0000f, 3.1430f, 0.7217f); in make_visualizer()
253 path->lineTo(5.0000f, 3.1430f); in make_visualizer()
254 path->close(); in make_visualizer()
255 path->moveTo(7.2860f, 3.1430f); in make_visualizer()
256 path->conicTo(7.6267f, 3.1287f, 7.8012f, 3.4216f, 0.8590f); in make_visualizer()
257 path->conicTo(7.9758f, 3.7145f, 7.8012f, 4.0074f, 0.8590f); in make_visualizer()
258 path->conicTo(7.6267f, 4.3003f, 7.2860f, 4.2860f, 0.8590f); in make_visualizer()
259 path->conicTo(6.7379f, 4.2631f, 6.7379f, 3.7145f, 0.7217f); in make_visualizer()
260 path->conicTo(6.7379f, 3.1659f, 7.2860f, 3.1430f, 0.7217f); in make_visualizer()
261 path->close(); in make_visualizer()
262 path->moveTo(1.0000f, 6.1900f); in make_visualizer()
263 path->lineTo(1.0000f, 14.3810f); in make_visualizer()
264 path->conicTo(0.9992f, 14.7757f, 1.2782f, 15.0548f, 0.9235f); in make_visualizer()
265 path->conicTo(1.5573f, 15.3338f, 1.9520f, 15.3330f, 0.9235f); in make_visualizer()
266 path->lineTo(16.0480f, 15.3330f); in make_visualizer()
267 path->conicTo(16.4427f, 15.3338f, 16.7218f, 15.0548f, 0.9235f); in make_visualizer()
268 path->conicTo(17.0008f, 14.7757f, 17.0000f, 14.3810f, 0.9235f); in make_visualizer()
269 path->lineTo(17.0000f, 6.1910f); in make_visualizer()
270 path->lineTo(1.0000f, 6.1910f); in make_visualizer()
271 path->lineTo(1.0000f, 6.1900f); in make_visualizer()
272 path->close(); in make_visualizer()
363 static void show(SkCanvas* canvas, const SkPath& path, const SkPaint& paint, in show() argument
372 canvas->drawPath(path, paint); in show()
377 SkPath path; in onDraw() local
379 path.addCircle(SkIntToScalar(50), SkIntToScalar(50), SkIntToScalar(40)); in onDraw()
380 path.toggleInverseFillType(); in onDraw()
396 show(canvas, path, paint, clipPtr, clipR.fTop, clipR.centerY()); in onDraw()
397 show(canvas, path, paint, clipPtr, clipR.centerY(), clipR.fBottom); in onDraw()
415 SkPath path; variable
416 path.moveTo(48,-23);
417 path.cubicTo(48,-29.5, 6,-30, 6,-30);
418 path.cubicTo(6,-30, 2,0, 2,0);
419 path.cubicTo(2,0, 44,-21.5, 48,-23);
420 path.close();
423 canvas->drawPath(path, p);
425 // Rotated path, which is not antialiased on GPU
428 canvas->drawPath(path, p);
439 SkPath path; local
440 path.moveTo(10, 10);
441 path.moveTo(75, 75);
442 path.lineTo(150, 75);
443 path.lineTo(150, 150);
444 path.lineTo(75, 150);
445 canvas->drawPath(path, p);
448 path.reset();
449 path.moveTo(75, 50);
450 path.moveTo(100, 75);
451 path.lineTo(150, 75);
452 path.lineTo(150, 150);
453 path.lineTo(75, 150);
454 path.lineTo(75, 50);
455 path.close();
456 canvas->drawPath(path, p);
459 path.reset();
460 path.moveTo(10, 10);
461 path.moveTo(75, 75);
462 path.lineTo(150, 75);
463 path.lineTo(150, 150);
464 path.lineTo(75, 150);
465 path.close();
466 canvas->drawPath(path, p);
469 path.reset();
470 path.moveTo(75, 150);
471 path.lineTo(75, 75);
472 path.lineTo(150, 75);
473 path.lineTo(150, 150);
474 path.lineTo(75, 150);
475 path.moveTo(75, 150);
476 canvas->drawPath(path, p);
479 path.reset();
480 path.moveTo(250, 75);
481 path.moveTo(250, 75);
482 path.moveTo(250, 75);
483 path.moveTo(100, 75);
484 path.lineTo(150, 75);
485 path.lineTo(150, 150);
486 path.lineTo(75, 150);
487 path.lineTo(75, 75);
488 path.close();
489 path.lineTo(0, 0);
490 path.close();
491 canvas->drawPath(path, p);
494 path.reset();
495 path.moveTo(75, 75);
496 path.lineTo(150, 75);
497 path.lineTo(150, 150);
498 path.lineTo(75, 150);
499 path.moveTo(250, 75);
500 canvas->drawPath(path, p);
503 path.reset();
504 path.moveTo(75, 10);
505 path.moveTo(75, 75);
506 path.lineTo(150, 75);
507 path.lineTo(150, 150);
508 path.lineTo(75, 150);
509 path.lineTo(75, 10);
510 path.close();
511 canvas->drawPath(path, p);
514 path.reset();
515 path.moveTo(75, 75);
516 path.lineTo(75, 75);
517 path.lineTo(75, 75);
518 path.lineTo(75, 75);
519 path.lineTo(150, 75);
520 path.lineTo(150, 150);
521 path.lineTo(75, 150);
522 path.close();
523 path.moveTo(10, 10);
524 path.lineTo(30, 10);
525 path.lineTo(10, 30);
526 canvas->drawPath(path, p);
529 path.reset();
530 path.moveTo(75, 75);
531 path.lineTo(75, 75);
532 path.moveTo(75, 75);
533 path.lineTo(75, 75);
534 path.lineTo(150, 75);
535 path.lineTo(150, 150);
536 path.lineTo(75, 150);
537 path.close();
538 canvas->drawPath(path, p);
541 path.reset();
542 path.moveTo(75, 75);
543 path.lineTo(150, 75);
544 path.lineTo(150, 150);
545 path.lineTo(75, 150);
546 path.lineTo(75, 250);
547 path.moveTo(75, 75);
548 path.close();
549 canvas->drawPath(path, p);
552 path.reset();
553 path.moveTo(75, 75);
554 path.lineTo(150, 75);
555 path.lineTo(150, 150);
556 path.lineTo(75, 150);
557 path.lineTo(75, 10);
558 path.moveTo(75, 75);
559 path.close();
560 canvas->drawPath(path, p);
563 path.reset();
564 path.moveTo(75, 75);
565 path.lineTo(150, 75);
566 path.lineTo(150, 150);
567 path.lineTo(10, 150);
568 path.moveTo(75, 75);
569 path.lineTo(75, 75);
570 canvas->drawPath(path, p);
573 path.reset();
574 path.moveTo(150, 75);
575 path.lineTo(150, 150);
576 path.lineTo(75, 150);
577 path.lineTo(75, 100);
578 canvas->drawPath(path, p);
581 path.reset();
582 path.moveTo(150, 100);
583 path.lineTo(150, 100);
584 path.lineTo(150, 150);
585 path.lineTo(75, 150);
586 path.lineTo(75, 100);
587 path.lineTo(75, 75);
588 path.lineTo(150, 75);
589 path.close();
590 canvas->drawPath(path, p);
593 path.reset();
594 path.moveTo(75, 75);
595 path.lineTo(150, 75);
596 path.lineTo(150, 150);
597 path.lineTo(140, 150);
598 path.lineTo(140, 75);
599 path.moveTo(75, 75);
600 path.close();
601 canvas->drawPath(path, p);
604 path.reset();
605 path.moveTo(75, 75);
606 path.lineTo(150, 75);
607 path.lineTo(150, 150);
608 path.lineTo(140, 150);
609 path.lineTo(140, 75);
610 path.moveTo(75, 75);
611 path.close();
612 canvas->drawPath(path, p);