Skip to content

Conversation

@mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Oct 21, 2025

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 fail. To fix this, we should start using SkPathBuilder instead.

Remaining work:

  • Figure out the deletion/disposal of SkPaths generated from .snapshot() calls.
  • LazyPath should be restructured to better accommodate a world of immutable paths and path builders (coming in a future PR).

@github-actions github-actions bot added engine flutter/engine related. See also e: labels. platform-web Web applications specifically labels Oct 21, 2025
@mdebbar mdebbar marked this pull request as ready for review October 23, 2025 14:43
Copy link
Contributor

@eyebrowsoffire eyebrowsoffire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 24, 2025
@auto-submit auto-submit bot added this pull request to the merge queue Oct 24, 2025
Merged via the queue into flutter:master with commit 3759033 Oct 24, 2025
187 checks passed
@flutter-dashboard flutter-dashboard bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Oct 24, 2025
@mdebbar mdebbar deleted the ck_path_builder branch October 24, 2025 20:49
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 26, 2025
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Oct 27, 2025
flutter/flutter@cb18290...4c91098

2025-10-26 [email protected] Roll ICU from ff35c4f9df23 to f27805b7d7d8 (1 revision) (flutter/flutter#177558)
2025-10-26 [email protected] Roll Skia from b85c7ae19092 to de52b3a7585a (1 revision) (flutter/flutter#177550)
2025-10-25 [email protected] Make sure that a DropdownMenu doesn't crash in 0x0 environment (flutter/flutter#174809)
2025-10-25 [email protected] Fix DropdownMenu filtering is broken (flutter/flutter#177450)
2025-10-25 [email protected] Roll Skia from f352da2d607f to b85c7ae19092 (1 revision) (flutter/flutter#177539)
2025-10-25 [email protected] Roll Skia from e91d238ce638 to f352da2d607f (4 revisions) (flutter/flutter#177525)
2025-10-24 [email protected] Add more docs to TextBaseline (flutter/flutter#177507)
2025-10-24 [email protected] Bump Templates To Correct Versions (flutter/flutter#177416)
2025-10-24 [email protected] [web] Use SkPathBuilder because SkPath is becoming immutable (flutter/flutter#177343)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
reidbaker pushed a commit to AbdeMohlbi/flutter that referenced this pull request Dec 10, 2025
…#177343)

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](flutter#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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine flutter/engine related. See also e: labels. platform-web Web applications specifically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants