This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Commit e28f875
authored
[DisplayList] Optimize ClipRRect and ClipPath to ClipOval when appropriate (#54088)
Fixes: flutter/flutter#151850
Re-adding an optimization originally included in #53642 that detects when ClipRRect and ClipPath operations are actually ovals and redirects them to the ClipOval path during recording to save space and reduce the need for dispatchers to do the same detections and optimizations.1 parent 0844c0a commit e28f875
File tree
3 files changed
+16
-22
lines changed- display_list
- testing
3 files changed
+16
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4863 | 4863 | | |
4864 | 4864 | | |
4865 | 4865 | | |
4866 | | - | |
4867 | | - | |
4868 | 4866 | | |
4869 | 4867 | | |
4870 | 4868 | | |
| |||
4873 | 4871 | | |
4874 | 4872 | | |
4875 | 4873 | | |
4876 | | - | |
4877 | | - | |
4878 | | - | |
| 4874 | + | |
| 4875 | + | |
4879 | 4876 | | |
4880 | 4877 | | |
4881 | 4878 | | |
| |||
5088 | 5085 | | |
5089 | 5086 | | |
5090 | 5087 | | |
5091 | | - | |
5092 | | - | |
5093 | | - | |
| 5088 | + | |
5094 | 5089 | | |
5095 | 5090 | | |
5096 | 5091 | | |
| |||
5132 | 5127 | | |
5133 | 5128 | | |
5134 | 5129 | | |
5135 | | - | |
5136 | | - | |
5137 | | - | |
| 5130 | + | |
5138 | 5131 | | |
5139 | 5132 | | |
5140 | 5133 | | |
| |||
5273 | 5266 | | |
5274 | 5267 | | |
5275 | 5268 | | |
5276 | | - | |
5277 | | - | |
5278 | | - | |
| 5269 | + | |
5279 | 5270 | | |
5280 | 5271 | | |
5281 | 5272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
1009 | 1013 | | |
1010 | 1014 | | |
1011 | 1015 | | |
| |||
1043 | 1047 | | |
1044 | 1048 | | |
1045 | 1049 | | |
1046 | | - | |
| 1050 | + | |
1047 | 1051 | | |
1048 | 1052 | | |
1049 | | - | |
1050 | 1053 | | |
1051 | | - | |
1052 | | - | |
| 1054 | + | |
1053 | 1055 | | |
1054 | 1056 | | |
| 1057 | + | |
1055 | 1058 | | |
1056 | | - | |
| 1059 | + | |
1057 | 1060 | | |
1058 | 1061 | | |
1059 | 1062 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | | - | |
| 506 | + | |
| 507 | + | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| |||
0 commit comments