mirror of
https://github.com/flutter/flutter.git
synced 2026-01-20 04:31:52 +08:00
Skia is working on making `SkPath` immutable: https://skia-review.googlesource.com/c/skia/+/1075478 In Flutter Web's CanvasKit renderer, we use `SkPath` as a mutable object, which made the [Skia roll](https://github.com/flutter/flutter/pull/177184) fail. To fix this, we should start using `SkPathBuilder` instead. Remaining work: - [x] Figure out the deletion/disposal of `SkPath`s generated from `.snapshot()` calls. - [ ] `LazyPath` should be restructured to better accommodate a world of immutable paths and path builders (coming in a future PR).