This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Move platform specific information to PlatformConfiguration
class
#19652
Merged
fluttergithubbot
merged 6 commits into
flutter:master
from
gspencergoog:platform_configuration
Aug 1, 2020
Merged
Move platform specific information to PlatformConfiguration
class
#19652
fluttergithubbot
merged 6 commits into
flutter:master
from
gspencergoog:platform_configuration
Aug 1, 2020
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4ded4dc
to
658f5f9
Compare
1 task
3454662
to
a72edab
Compare
PlatformConfiguration
classPlatformConfiguration
class
stuartmorgan-g
suggested changes
Jul 20, 2020
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'm not really familiar with this part of the engine code, but the separation generally looks good to me.
e57cfdc
to
184275c
Compare
4e76459
to
fd46d45
Compare
stuartmorgan-g
approved these changes
Jul 27, 2020
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
03d137f
to
ad1c965
Compare
Can we land this? |
@chinmaygarde Yes, I was waiting for fixes to the lint errors in another PR (and the tree was all hosed for a while). I'll try and land this today or tomorrow. |
9cbacc2
to
b0b26f3
Compare
b0b26f3
to
2b934c2
Compare
Sorry, still trying to land this. I had to merge conflicts. |
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Aug 3, 2020
zanderso
pushed a commit
to flutter/flutter
that referenced
this pull request
Aug 3, 2020
* 7f5d044 Wait before switching surfaces (flutter/engine#20100) * 5513273 Reland: Avoid a copy in EncodeImage (flutter/engine#20003) * 1efdd95 Roll Dart SDK from bd528bfbd69d to ea6bde577d1c (19 revisions) (flutter/engine#20172) * 3b0e697 Roll Skia from 8cc118dce813 to c3794dd52778 (27 revisions) (flutter/engine#20173) * cb1a374 Roll Fuchsia Mac SDK from T2xc0OuiK... to i0zTcQ8Qb... (flutter/engine#20175) * ed36b1a Roll Skia from c3794dd52778 to 2d01ed94605a (10 revisions) (flutter/engine#20179) * fcc1eaf Fix iOS Keyboard stuck as UIKeyboardTypeNamePhonePad (flutter/engine#20181) * 9c6837c Roll Skia from 2d01ed94605a to 7225788b9070 (6 revisions) (flutter/engine#20183) * 13e993e Fix Typos (flutter/engine#19691) * 98cfd1d Move platform specific information to `PlatformConfiguration` class (flutter/engine#19652) * 22fb58b update nullability of drawAtlas methods and flesh out docs (flutter/engine#20176) * bcc43df Roll Dart SDK from ea6bde577d1c to 033a81d924b9 (23 revisions) (flutter/engine#20186) * cb4bb93 [web] increase number of shards. sync engine web tests same as flutter repo (flutter/engine#20164) * d986b8d Enable linting in several files (flutter/engine#20134) * 7dd092d Enable more linting (flutter/engine#20187) * 3cc86ac Roll Dart SDK from 033a81d924b9 to ad5bcf16f1c8 (9 revisions) (flutter/engine#20191) * 5ca8a2a Roll Dart SDK from ad5bcf16f1c8 to d169af6f7d8f (1 revision) (flutter/engine#20192) * 4de0c04 Roll Dart SDK from d169af6f7d8f to 7e6c55e3aaf5 (1 revision) (flutter/engine#20196) * 908fe01 Fix navigation message relay. (flutter/engine#20193) * f1b3b69 Roll Dart SDK from 7e6c55e3aaf5 to 365525432a70 (2 revisions) (flutter/engine#20197) * 8fbdd3f Fix parameter names * 083282e Fix Implments typo
Pragya007
pushed a commit
to Pragya007/flutter
that referenced
this pull request
Aug 11, 2020
* 7f5d044 Wait before switching surfaces (flutter/engine#20100) * 5513273 Reland: Avoid a copy in EncodeImage (flutter/engine#20003) * 1efdd95 Roll Dart SDK from bd528bfbd69d to ea6bde577d1c (19 revisions) (flutter/engine#20172) * 3b0e697 Roll Skia from 8cc118dce813 to c3794dd52778 (27 revisions) (flutter/engine#20173) * cb1a374 Roll Fuchsia Mac SDK from T2xc0OuiK... to i0zTcQ8Qb... (flutter/engine#20175) * ed36b1a Roll Skia from c3794dd52778 to 2d01ed94605a (10 revisions) (flutter/engine#20179) * fcc1eaf Fix iOS Keyboard stuck as UIKeyboardTypeNamePhonePad (flutter/engine#20181) * 9c6837c Roll Skia from 2d01ed94605a to 7225788b9070 (6 revisions) (flutter/engine#20183) * 13e993e Fix Typos (flutter/engine#19691) * 98cfd1d Move platform specific information to `PlatformConfiguration` class (flutter/engine#19652) * 22fb58b update nullability of drawAtlas methods and flesh out docs (flutter/engine#20176) * bcc43df Roll Dart SDK from ea6bde577d1c to 033a81d924b9 (23 revisions) (flutter/engine#20186) * cb4bb93 [web] increase number of shards. sync engine web tests same as flutter repo (flutter/engine#20164) * d986b8d Enable linting in several files (flutter/engine#20134) * 7dd092d Enable more linting (flutter/engine#20187) * 3cc86ac Roll Dart SDK from 033a81d924b9 to ad5bcf16f1c8 (9 revisions) (flutter/engine#20191) * 5ca8a2a Roll Dart SDK from ad5bcf16f1c8 to d169af6f7d8f (1 revision) (flutter/engine#20192) * 4de0c04 Roll Dart SDK from d169af6f7d8f to 7e6c55e3aaf5 (1 revision) (flutter/engine#20196) * 908fe01 Fix navigation message relay. (flutter/engine#20193) * f1b3b69 Roll Dart SDK from 7e6c55e3aaf5 to 365525432a70 (2 revisions) (flutter/engine#20197) * 8fbdd3f Fix parameter names * 083282e Fix Implments typo
mingwandroid
pushed a commit
to mingwandroid/flutter
that referenced
this pull request
Sep 6, 2020
* 7f5d044 Wait before switching surfaces (flutter/engine#20100) * 5513273 Reland: Avoid a copy in EncodeImage (flutter/engine#20003) * 1efdd95 Roll Dart SDK from bd528bfbd69d to ea6bde577d1c (19 revisions) (flutter/engine#20172) * 3b0e697 Roll Skia from 8cc118dce813 to c3794dd52778 (27 revisions) (flutter/engine#20173) * cb1a374 Roll Fuchsia Mac SDK from T2xc0OuiK... to i0zTcQ8Qb... (flutter/engine#20175) * ed36b1a Roll Skia from c3794dd52778 to 2d01ed94605a (10 revisions) (flutter/engine#20179) * fcc1eaf Fix iOS Keyboard stuck as UIKeyboardTypeNamePhonePad (flutter/engine#20181) * 9c6837c Roll Skia from 2d01ed94605a to 7225788b9070 (6 revisions) (flutter/engine#20183) * 13e993e Fix Typos (flutter/engine#19691) * 98cfd1d Move platform specific information to `PlatformConfiguration` class (flutter/engine#19652) * 22fb58b update nullability of drawAtlas methods and flesh out docs (flutter/engine#20176) * bcc43df Roll Dart SDK from ea6bde577d1c to 033a81d924b9 (23 revisions) (flutter/engine#20186) * cb4bb93 [web] increase number of shards. sync engine web tests same as flutter repo (flutter/engine#20164) * d986b8d Enable linting in several files (flutter/engine#20134) * 7dd092d Enable more linting (flutter/engine#20187) * 3cc86ac Roll Dart SDK from 033a81d924b9 to ad5bcf16f1c8 (9 revisions) (flutter/engine#20191) * 5ca8a2a Roll Dart SDK from ad5bcf16f1c8 to d169af6f7d8f (1 revision) (flutter/engine#20192) * 4de0c04 Roll Dart SDK from d169af6f7d8f to 7e6c55e3aaf5 (1 revision) (flutter/engine#20196) * 908fe01 Fix navigation message relay. (flutter/engine#20193) * f1b3b69 Roll Dart SDK from 7e6c55e3aaf5 to 365525432a70 (2 revisions) (flutter/engine#20197) * 8fbdd3f Fix parameter names * 083282e Fix Implments typo
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
cla: yes
waiting for tree to go green
This PR is approved and tested, but waiting for the tree to be green to land.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This moves most of the logic that is currently in
Window
into a newPlatformConfiguration
class, in preparation for multi-window support.I split the platform specific configuration out of the
Window
class, into a separatePlatformConfiguration
class that keeps the configuration of the platform, and manages a lot of the platform-specific communication thatWindow
used to manage (things likeDispatchPlatformMessage
andUpdateLocales
, etc.), since these things don't really belong in a window, they belong to the platform, and when you have more than one window, keeping them on each window doesn't make sense. ThePlatformConfiguration
class will connect to thePlatformDispatcher
on the Dart side once that class exists.Most of the new
PlatformConfiguration
class consists of methods moved verbatim fromWindow
. I also renamedWindowData
toPlatformData
, since it no longer applies to windows. In the future, I'll be migrating the framework to match, so that there is aPlatformDispatcher
class that takes care of communicating withPlatformConfiguration
. [I didn't call them the same thing, because the engine side is meant to be the source of truth, and the framework side (once it exists) is meant to dispatch messages to and from this source of truth.]Related Issues
Tests