-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] Move remaining web-only APIs to dart:ui_web
#44516
Conversation
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.
LGTM
| } | ||
| } | ||
|
|
||
| /// Overrides the value of [ui.FlutterView.devicePixelRatio] in tests. |
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.
Just to clarify here... the framework uses this for testing? If not, and this is only used in the engine, I think we can just remove the API completely. If it is used in the framework... blech. I wish we could just actually control this with the test harness rather than having a special magic debug API.
That being said, if the framework is using this, I'm fine with just moving forward this way.
(Ditto for debugPhysicalSizeOverride above)
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.
I went and looked it up and answered my own question... yes the framework uses it for testing in its test bootstrap. 😞
…133078) flutter/engine@28b8bd5...b190f90 2023-08-22 [email protected] Roll Skia from 50814d9ca5bb to 9f4b81aac175 (1 revision) (flutter/engine#44969) 2023-08-22 [email protected] [web] Move remaining web-only APIs to `dart:ui_web` (flutter/engine#44516) 2023-08-22 [email protected] Revert "Split DisplayListBuilder into DlCanvas optimizer and DlOp recorder classes" (flutter/engine#44968) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This is the last batch of web-only API migration. Depends on flutter/engine#44516 Fixes #52899 Fixes #126831
- Warn on `webOnlyInitializePlatform` and replace all usages with `ui_web.bootstrapEngine`. - Remove unused `webOnlyPaintedBy` parameter. - `webOnlyDebugPhysicalSizeOverride` => `ui_web.debugPhysicalSizeOverride`. - `webOnlyInstantiateImageCodecFromUrl` => `ui_web.createImageCodecFromUrl`. - `WebOnlyImageCodecChunkCallback` => `ui_web.ImageCodecChunkCallback`. - `_webOnlyDidWarnAboutPerformanceOverlay` => `_didWarnAboutPerformanceOverlay`. - Remove unnecessary usage of `futurize`. Part of flutter/flutter#126831
webOnlyInitializePlatformand replace all usages withui_web.bootstrapEngine.webOnlyPaintedByparameter.ui.window.debugOverrideDevicePixelRatio=>ui_web.debugOverrideDevicePixelRatioui.window.webOnlyDebugPhysicalSizeOverride=>ui.window.debugPhysicalSizeOverride(an extension method indart:ui_web.webOnlyInstantiateImageCodecFromUrl=>ui_web.createImageCodecFromUrl.WebOnlyImageCodecChunkCallback=>ui_web.ImageCodecChunkCallback._webOnlyDidWarnAboutPerformanceOverlay=>_didWarnAboutPerformanceOverlay.futurize.Part of flutter/flutter#126831