Commit c87d3a7
authored
Micro Optimizations for SkiaBackedCanvas (#2543)
optimizing some functions SkiaBackedCanvas that were creating Paint()
objects needlessly (mimicking android functions basically). There is
still room for removing unnecessary allocations. See comments below
## Testing
(Optional) Describe how you tested your changes (provide a snippet
or/and steps)
(Optional) This should be tested by QA
## Release Notes
N/A1 parent 84b79f0 commit c87d3a7
File tree
1 file changed
+18
-24
lines changed- compose/ui/ui-graphics/src/skikoMain/kotlin/androidx/compose/ui/graphics
1 file changed
+18
-24
lines changedcompose/ui/ui-graphics/src/skikoMain/kotlin/androidx/compose/ui/graphics/SkiaBackedCanvas.skiko.kt
Lines changed: 18 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 220 | + | |
225 | 221 | | |
226 | 222 | | |
227 | 223 | | |
| |||
263 | 259 | | |
264 | 260 | | |
265 | 261 | | |
| 262 | + | |
266 | 263 | | |
267 | 264 | | |
268 | 265 | | |
269 | 266 | | |
270 | | - | |
| 267 | + | |
271 | 268 | | |
272 | 269 | | |
273 | 270 | | |
| |||
286 | 283 | | |
287 | 284 | | |
288 | 285 | | |
289 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
290 | 289 | | |
291 | 290 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
| 291 | + | |
| 292 | + | |
299 | 293 | | |
300 | 294 | | |
301 | 295 | | |
| |||
316 | 310 | | |
317 | 311 | | |
318 | 312 | | |
319 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
320 | 316 | | |
321 | 317 | | |
322 | | - | |
| 318 | + | |
| 319 | + | |
323 | 320 | | |
324 | 321 | | |
325 | 322 | | |
| |||
341 | 338 | | |
342 | 339 | | |
343 | 340 | | |
344 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
345 | 344 | | |
346 | 345 | | |
347 | 346 | | |
348 | 347 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
| 348 | + | |
| 349 | + | |
356 | 350 | | |
357 | 351 | | |
358 | 352 | | |
| |||
0 commit comments