Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Aug 8, 2023

  • Warn on webOnlyInitializePlatform and replace all usages with ui_web.bootstrapEngine.
  • Remove unused webOnlyPaintedBy parameter.
  • ui.window.debugOverrideDevicePixelRatio => ui_web.debugOverrideDevicePixelRatio
  • ui.window.webOnlyDebugPhysicalSizeOverride => ui.window.debugPhysicalSizeOverride (an extension method in dart:ui_web.
  • webOnlyInstantiateImageCodecFromUrl => ui_web.createImageCodecFromUrl.
  • WebOnlyImageCodecChunkCallback => ui_web.ImageCodecChunkCallback.
  • _webOnlyDidWarnAboutPerformanceOverlay => _didWarnAboutPerformanceOverlay.
  • Remove unnecessary usage of futurize.

Part of flutter/flutter#126831

@github-actions github-actions bot added the platform-web Code specifically for the web engine label Aug 8, 2023
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

}
}

/// Overrides the value of [ui.FlutterView.devicePixelRatio] in tests.
Copy link
Contributor

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)

Copy link
Contributor

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. 😞

@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 22, 2023
@auto-submit auto-submit bot merged commit 06e1ed2 into flutter:main Aug 22, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 22, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Aug 22, 2023
…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
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Aug 29, 2023
This is the last batch of web-only API migration.

Depends on flutter/engine#44516

Fixes #52899
Fixes #126831
gaaclarke pushed a commit to gaaclarke/engine that referenced this pull request Aug 30, 2023
- 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
@mdebbar mdebbar deleted the rest_web_only branch May 9, 2024 16:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants