-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] Download CanvasKit chromium when possible #39827
Conversation
ditman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question about the "chromium" mode. Do we want it?
|
Also there's a failing test that is probably passing |
Nah. It's a real For some reason |
|
It turns out, the value is |
ditman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go chromium mode! (small change required in the switch though!)
|
🚀 |
|
@eyebrowsoffire it looks like I need your approval too (to override your previous "Request Changes" review). |
eyebrowsoffire
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
|
Let's goooo! |
On Chromium-based browsers, try downloading the Chromium variant of CanvasKit. If not available, fallback to the normal variant.
This PR also introduce a new runtime config to control the filename of the
canvaskit.jsfile. This allows users to force the Chromium of variant of CanvasKit by settingcanvasKitJsFileName: "chromium/canvaskit.js"or force the non-Chromium one by doingcanvasKitJsFileName: "canvaskit.js"(could be useful in tests as well).This is still disabled so it should have no effect yet. Once all the pieces are ready, we need to set
useClientICUto the correct value based on the browser we are running on.Part of flutter/flutter#118801