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

Conversation

@uysalere
Copy link
Contributor

@uysalere uysalere commented Jul 14, 2021

This PR is outlines the classes and basis for the upcoming flatland migration. There will be a period where we have gfx and flatland implementations living together, so we need both classes switched at the runtime. I named these classes to reflect the difference.

The first commit is only a refactor and the footprint of the new classes added.

The second commit adds the basic functionality that allows for rendering a single plane flutter app. I avoided adding flatland dependencies on Vulkan classes. We mainly have FlatlandConnection, FlatlandExternalViewProvider and FlatlandPlatformView as the new flatland classes. Engine decides which classes to use based on the incoming ViewProvider call.

Note that there will be functional test added after FakeFlatland implementation lands in the sdk.

Bug: https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=64201

@google-cla google-cla bot added the cla: yes label Jul 14, 2021
@uysalere uysalere marked this pull request as ready for review July 14, 2021 23:48
@uysalere uysalere marked this pull request as draft July 14, 2021 23:58
@google-cla
Copy link

google-cla bot commented Jul 15, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: no and removed cla: yes labels Jul 15, 2021
@uysalere uysalere marked this pull request as ready for review July 15, 2021 00:04
@uysalere uysalere force-pushed the flatland-scaffolding branch from 553ad87 to 58fe6ed Compare July 15, 2021 15:26
@google-cla
Copy link

google-cla bot commented Jul 15, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@uysalere uysalere force-pushed the flatland-scaffolding branch from 58fe6ed to 05b69d7 Compare July 20, 2021 17:03
@google-cla
Copy link

google-cla bot commented Jul 20, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@uysalere uysalere force-pushed the flatland-scaffolding branch from 05b69d7 to ca8973f Compare July 20, 2021 17:05
@google-cla
Copy link

google-cla bot commented Jul 20, 2021

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

1 similar comment
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@uysalere uysalere force-pushed the flatland-scaffolding branch from ca8973f to 82b27c5 Compare July 20, 2021 17:12
@google-cla
Copy link

google-cla bot commented Jul 20, 2021

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added cla: yes and removed cla: no labels Jul 20, 2021
@uysalere uysalere force-pushed the flatland-scaffolding branch from 82b27c5 to 258e080 Compare July 20, 2021 17:18
@google-cla
Copy link

google-cla bot commented Jul 20, 2021

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@uysalere uysalere force-pushed the flatland-scaffolding branch from 258e080 to 4dcaefe Compare July 29, 2021 05:09
@google-cla
Copy link

google-cla bot commented Jul 29, 2021

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@chinmaygarde
Copy link
Member

@uysalere @arbreng Is this PR blocked on anything?

@arbreng
Copy link
Contributor

arbreng commented Aug 5, 2021

Yes, this should be marked as WIP

@uysalere uysalere force-pushed the flatland-scaffolding branch from 4dcaefe to b3fdea7 Compare August 17, 2021 03:19
@google-cla
Copy link

google-cla bot commented Aug 17, 2021

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@uysalere uysalere force-pushed the flatland-scaffolding branch from b3fdea7 to 8456ffc Compare August 17, 2021 03:29
@google-cla
Copy link

google-cla bot commented Aug 17, 2021

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@uysalere uysalere changed the title fuchsia: Add scaffolding for flatland migration fuchsia: Add scaffolding and basic implementation for flatland migration Aug 17, 2021
@uysalere
Copy link
Contributor Author

I uploaded a new version, which is ready for review. Let me know if there is something I missed as this is my first flutter code review.

Copy link
Contributor

@arbreng arbreng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Did you run manual tests in fuchsia.git? workstation? smart_display / internal tests?

There are some subtle changes that might affect production code here and I don't want this to get rolled-back. Unfortunately manual tests is the way to go ATM, let's talk offline about it

@uysalere uysalere force-pushed the flatland-scaffolding branch from 8456ffc to 92b8235 Compare August 18, 2021 18:26
@google-cla
Copy link

google-cla bot commented Aug 18, 2021

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@uysalere uysalere force-pushed the flatland-scaffolding branch from 92b8235 to 8471699 Compare August 18, 2021 18:48
@google-cla
Copy link

google-cla bot commented Aug 18, 2021

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@uysalere
Copy link
Contributor Author

I locally ran flutter-embedder-test, they all pass. Workstation loads as expected.

@arbreng arbreng merged commit d5b410e into flutter:master Aug 18, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 18, 2021
chriscraws pushed a commit to chriscraws/engine that referenced this pull request Aug 23, 2021
…ion (flutter#27423)

* fuchsia: Add scaffolding for flatland migration

* fuchsia: Add ViewProvider based view creation logic and basic present loop
@filmil
Copy link
Contributor

filmil commented Aug 26, 2021

Hi folks. I am seeing crashes that seem to be related to the code added in this pull request.

Please check out https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=83473 when able.

arbreng added a commit to arbreng/flutter_engine that referenced this pull request Sep 21, 2021
arbreng added a commit that referenced this pull request Sep 21, 2021
filmil pushed a commit to filmil/engine that referenced this pull request Apr 21, 2022
…ion (flutter#27423)

* fuchsia: Add scaffolding for flatland migration

* fuchsia: Add ViewProvider based view creation logic and basic present loop
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.

5 participants