Commit bf801b4
committed
perf: fix painting regression and cleanup
Regressor: 9145d36
I thought it was good to use item.measure() but it does a lot more than sum
widths, so it caused a performance regression. Luckily drawText is more simple
than it used to be: it only paints one color.
The tx changes surrounding b.text must be left over from when drawText handled
multiple color changes; it no longer does that and those lines don't do
anything. So anther regressor may be d2f6b5e
since that added some glyph summing outside of drawText.1 parent cc5ad59 commit bf801b4
1 file changed
Lines changed: 19 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
| |||
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
97 | 108 | | |
98 | 109 | | |
99 | 110 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
108 | 116 | | |
109 | | - | |
110 | | - | |
111 | 117 | | |
112 | | - | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
0 commit comments