This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Commit f48f3b6
Jonah Williams
[Impeller] only use porter duff or vertices.uber for drawVertices. (#52345)
Simplifcation that will allow us to remove the special case position_color.vert and vertices.frag shaders, not done here because drawAtlas also needs to be updated. This also fixes sparkle-party like rendering bugs where we incorrectly relied on a color filter.
The problem with doing advanced blends between the vertices with a color filters was three fold:
1. We would render incorrectly when vertices overlapped.
2. We had to disable MSAA to remove artifacts
3. The sub render pass was slow.
Below is an example of the incorrect rendering caused by overlapping vertices on the sparkle party app.
## Skia (Advanced blend)

## Impeller (ToT)

## Impeller w/ patch

Fixes flutter/flutter#1313451 parent b9b6a91 commit f48f3b6
10 files changed
Lines changed: 94 additions & 535 deletions
File tree
- ci/licenses_golden
- impeller
- aiks
- entity
- contents
- geometry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
933 | 934 | | |
934 | 935 | | |
935 | 936 | | |
936 | | - | |
937 | | - | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
938 | 950 | | |
939 | 951 | | |
940 | 952 | | |
| |||
956 | 968 | | |
957 | 969 | | |
958 | 970 | | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
979 | 988 | | |
| 989 | + | |
| 990 | + | |
980 | 991 | | |
981 | | - | |
982 | | - | |
| 992 | + | |
983 | 993 | | |
| 994 | + | |
984 | 995 | | |
985 | | - | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
986 | 999 | | |
987 | | - | |
988 | 1000 | | |
989 | 1001 | | |
990 | 1002 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
258 | 271 | | |
259 | 272 | | |
260 | 273 | | |
| |||
448 | 461 | | |
449 | 462 | | |
450 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
451 | 468 | | |
452 | 469 | | |
453 | 470 | | |
| |||
567 | 584 | | |
568 | 585 | | |
569 | 586 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | 587 | | |
587 | 588 | | |
588 | 589 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
717 | 721 | | |
718 | 722 | | |
719 | 723 | | |
| |||
1034 | 1038 | | |
1035 | 1039 | | |
1036 | 1040 | | |
| 1041 | + | |
1037 | 1042 | | |
1038 | 1043 | | |
1039 | 1044 | | |
| |||
0 commit comments