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

[WIP] Add concept of screens to engine #19425

Closed
wants to merge 8 commits into from

Conversation

gspencergoog
Copy link
Contributor

@gspencergoog gspencergoog commented Jun 30, 2020

Description

Implements the concept of a "screen" in the engine, in preparation for multi-window support. This splits out a number of changes from the huge PR that also changes the Dart framework code to understand screens and windows. This PR just introduces screens at the engine level, and doesn't touch the dart code.

In addition, this PR creates a ScreenMetrics class to hold the metrics of specific screens separately from the ViewportMetrics. To manage the screen metrics, a Screen class is also added.

[This PR currently contains all of the changes in https://github.com//pull/19652 as well (it's rebased on top of it), but I'll resolve those changes before submitting.]

Related Issues

Tests

  • Added tests for the PlatformConfiguration class.

Breaking Change

  • No, no existing tests failed, so this is not a breaking change.

@gspencergoog gspencergoog added the Work in progress (WIP) Not ready (yet) for review! label Jun 30, 2020
@gspencergoog gspencergoog changed the title Screens [WIP] Add concep of screens to engine Jun 30, 2020
@gspencergoog gspencergoog changed the title [WIP] Add concep of screens to engine [WIP] Add concept of screens to engine Jun 30, 2020
@gspencergoog gspencergoog force-pushed the screens branch 5 times, most recently from 7dd25d7 to e615ee5 Compare July 1, 2020 21:56
@gspencergoog gspencergoog force-pushed the screens branch 7 times, most recently from 162d795 to 0a4fc9f Compare July 7, 2020 02:23
@gspencergoog gspencergoog force-pushed the screens branch 10 times, most recently from 736c894 to dcb5537 Compare July 10, 2020 21:13
@gspencergoog
Copy link
Contributor Author

I'm closing this for now because it's not yet clear how to make this useful for all platforms, since some don't report window positions (UWP), and the models for displays are different between platforms.

Basically, it needs some more design work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants