Commit eb145ff
authored
Update CanRenderTiledTexture unit tests (#173553)
The current version relies on a Skia quirk where leading moveTos defeat
the simple shape detection in SkPath::addPath().
Skia is updating its behavior to make shape detection more robust, and
that breaks the assertion EXPECT_FALSE(path.IsOval(nullptr)).
To address, construct an equivalent circle using four conic verbs, which
will not be identified as a simple shape. This
preserves all related assertions in the unit test.
This unblocks some Skia shape detection improvements.1 parent cb4dfc0 commit eb145ff
1 file changed
Lines changed: 10 additions & 13 deletions
Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | 159 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
173 | 170 | | |
174 | 171 | | |
175 | 172 | | |
| |||
0 commit comments