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 16, 2023

This PR moves the source of truth fordevicePixelRatio to the EngineFlutterDisplay singleton.

Main things that this PR is trying to do:

  • EngineFlutterDisplay is a singleton that represents information about the display.
    • The devicePixelRatio can be overriden in tests.
    • The browserDevicePixelRatio gets the value directly from the browser and can't be overriden.
  • Remove EngineSingletonFlutterWindow and incorporate it into EngineFlutterWindow.

Part of flutter/flutter#134443

@github-actions github-actions bot added the platform-web Code specifically for the web engine label Aug 16, 2023
@mdebbar mdebbar marked this pull request as ready for review August 22, 2023 21:14
@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 29, 2023
@auto-submit auto-submit bot merged commit ee71dba into flutter:main Aug 29, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 29, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Aug 29, 2023
gaaclarke pushed a commit to gaaclarke/engine that referenced this pull request Aug 30, 2023
This PR moves the source of truth for`devicePixelRatio` to the `EngineFlutterDisplay` singleton.

Main things that this PR is trying to do:
- `EngineFlutterDisplay` is a singleton that represents information about the display.
  - The `devicePixelRatio` can be overriden in tests.
  - The `browserDevicePixelRatio` gets the value directly from the browser and can't be overriden.
- Remove `EngineSingletonFlutterWindow` and incorporate it into `EngineFlutterWindow`.
@mdebbar mdebbar deleted the dpr_multi_view branch December 11, 2023 21:02
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