Commit 77ae0ef
Reverts "Update all uses of mutable SkPath methods to use SkPathBuilder (flutter#177738)" (flutter#178125)
<!-- start_original_pr_link -->
Reverts: flutter#177738
<!-- end_original_pr_link -->
<!-- start_initiating_author -->
Initiated by: chingjun
<!-- end_initiating_author -->
<!-- start_revert_reason -->
Reason for reverting: Broke internal tests. Some shapes are not drawn.
<!-- end_revert_reason -->
<!-- start_original_pr_author -->
Original PR Author: kjlubick
<!-- end_original_pr_author -->
<!-- start_reviewers -->
Reviewed By: {jason-simmons}
<!-- end_reviewers -->
<!-- start_revert_body -->
This change reverts the following previous change:
Skia is removing the APIs that allow changing an SkPath. This updates
those callsites to use SkPathBuilder where appropriate.
## Pre-launch Checklist
- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [ ] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [ ] All existing and new tests are passing.
If you need help, consider asking for advice on the #hackers-new channel
on [Discord].
**Note**: The Flutter team is currently trialing the use of [Gemini Code
Assist for
GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code).
Comments from the `gemini-code-assist` bot should not be taken as
authoritative feedback from the Flutter team. If you find its comments
useful you can update your code accordingly, but if you are unsure or
disagree with the feedback, please feel free to wait for a Flutter team
member's review for guidance on which automated comments should be
addressed.
<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
<!-- end_revert_body -->
Co-authored-by: auto-submit[bot] <[email protected]>1 parent e319e2d commit 77ae0ef
File tree
18 files changed
+269
-305
lines changed- engine/src/flutter
- display_list/geometry
- impeller/toolkit/interop
- lib
- ui/painting
- web_ui/skwasm
- skia
- third_party/canvaskit
- tools/path_ops
- dart/lib
18 files changed
+269
-305
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| |||
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
260 | | - | |
| 262 | + | |
261 | 263 | | |
262 | | - | |
| 264 | + | |
263 | 265 | | |
264 | 266 | | |
265 | 267 | | |
| |||
Lines changed: 9 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 77 | + | |
85 | 78 | | |
86 | 79 | | |
87 | 80 | | |
88 | 81 | | |
89 | 82 | | |
90 | 83 | | |
91 | | - | |
| 84 | + | |
92 | 85 | | |
93 | 86 | | |
94 | 87 | | |
| |||
146 | 139 | | |
147 | 140 | | |
148 | 141 | | |
149 | | - | |
| 142 | + | |
150 | 143 | | |
151 | 144 | | |
152 | 145 | | |
153 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
154 | 149 | | |
155 | 150 | | |
156 | 151 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
Lines changed: 69 additions & 73 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
393 | 392 | | |
394 | 393 | | |
395 | 394 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
408 | 403 | | |
409 | 404 | | |
410 | 405 | | |
| |||
433 | 428 | | |
434 | 429 | | |
435 | 430 | | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
440 | 436 | | |
441 | 437 | | |
442 | | - | |
| 438 | + | |
443 | 439 | | |
444 | 440 | | |
445 | 441 | | |
446 | | - | |
447 | | - | |
448 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
449 | 445 | | |
450 | | - | |
| 446 | + | |
451 | 447 | | |
452 | 448 | | |
453 | 449 | | |
| |||
511 | 507 | | |
512 | 508 | | |
513 | 509 | | |
514 | | - | |
| 510 | + | |
515 | 511 | | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
521 | 517 | | |
522 | 518 | | |
523 | | - | |
| 519 | + | |
524 | 520 | | |
525 | 521 | | |
526 | 522 | | |
| |||
562 | 558 | | |
563 | 559 | | |
564 | 560 | | |
565 | | - | |
566 | | - | |
567 | | - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
568 | 564 | | |
569 | | - | |
| 565 | + | |
570 | 566 | | |
571 | 567 | | |
572 | 568 | | |
| |||
666 | 662 | | |
667 | 663 | | |
668 | 664 | | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
673 | 669 | | |
674 | | - | |
| 670 | + | |
675 | 671 | | |
676 | 672 | | |
677 | 673 | | |
| |||
700 | 696 | | |
701 | 697 | | |
702 | 698 | | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
707 | 703 | | |
708 | 704 | | |
709 | | - | |
| 705 | + | |
710 | 706 | | |
711 | 707 | | |
712 | 708 | | |
| |||
742 | 738 | | |
743 | 739 | | |
744 | 740 | | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
752 | 748 | | |
753 | | - | |
754 | | - | |
755 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
756 | 752 | | |
757 | | - | |
| 753 | + | |
758 | 754 | | |
759 | 755 | | |
760 | 756 | | |
| |||
793 | 789 | | |
794 | 790 | | |
795 | 791 | | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
800 | 796 | | |
801 | | - | |
802 | | - | |
| 797 | + | |
| 798 | + | |
803 | 799 | | |
804 | | - | |
| 800 | + | |
805 | 801 | | |
806 | 802 | | |
807 | 803 | | |
| |||
821 | 817 | | |
822 | 818 | | |
823 | 819 | | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
828 | 825 | | |
829 | 826 | | |
830 | | - | |
831 | | - | |
| 827 | + | |
832 | 828 | | |
833 | 829 | | |
834 | 830 | | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
839 | 836 | | |
840 | 837 | | |
841 | | - | |
842 | | - | |
| 838 | + | |
843 | 839 | | |
844 | 840 | | |
845 | 841 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | | - | |
| 9 | + | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | | - | |
| 18 | + | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
0 commit comments