-
Notifications
You must be signed in to change notification settings - Fork 6k
Remove GFX branches from Flutter engine #44401
Conversation
arbreng
left a comment
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.
Please rename all of the "flatland_" files by dropping the "flatland_" prefix
Flatland is the only implementation of these interfaces now, and the name will not be meaningful to other contributors in this repository who have to change these files. Names like "platform_view" and "external_view_embedder" will however. Dropping the prefix removes cognitive overhead for Flutter contributors.
For "platform_view", "flatland_platform_view.cc" should be collapsed back into "platform_view.cc" and the various callbacks removed. They add complexity and overhead which is no longer necessary.
I would greatly prefer these changes be made as part of this PR, but an immediate follow-up is acceptable if you don't want to bloat the line count. However, punting on the work is not acceptable to me at this time.
I've removed the
I've also added the I'm sending an early unpolished version to CI before I head out for the day; if you have any suggestions for rearranging code blocks (e.g. with FlatlandPlatformView and PlatformView being merged together), or anything like that, please weigh in as these are still flexible. Thanks for the review! |
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.
Most excellent!
Just looks like some small license issues to clean up, then we can land it.
…132149) flutter/engine@22bd35a...dd03fae 2023-08-08 [email protected] Remove GFX branches from Flutter engine (flutter/engine#44401) 2023-08-08 [email protected] Use the Clang unreachable code warning flag in the engine tree (flutter/engine#44458) 2023-08-08 [email protected] Roll Skia from 66ba512c613c to 30c0319e7e42 (3 revisions) (flutter/engine#44500) 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
This change removes - GFX source files removed from the BUILD in #44401 - Extraneous unused Scenic includes in the same directory (`//shell/platform/fuchsia/flutter/`) - All remaining uses of the Scenic library from the Fuchsia SDK - All remaining uses of fuchsia.ui.scenic.*
This change does the following: - Refactors `engine.cc`/`.h` and `component_v2.cc`/`.h` to remove GFX ctors and callbacks. - Removes `gfx_external_view_embedder`, `gfx_platform_view`, `gfx_session_connection`, their tests, and any supporting testing infrastructure (e.g. `fake_session`) from the build. This change does not delete the source files themselves in order to keep the change size smaller (as all these file deletions together are about another ~8K lines worth of deletions.) A separate follow up change will delete these files. Related bug: fxbug.dev/64206
This change removes - GFX source files removed from the BUILD in flutter#44401 - Extraneous unused Scenic includes in the same directory (`//shell/platform/fuchsia/flutter/`) - All remaining uses of the Scenic library from the Fuchsia SDK - All remaining uses of fuchsia.ui.scenic.*
This change does the following:
engine.cc/.handcomponent_v2.cc/.hto remove GFX ctors and callbacks.gfx_external_view_embedder,gfx_platform_view,gfx_session_connection, their tests, and any supporting testing infrastructure (e.g.fake_session) from the build. This change does not delete the source files themselves in order to keep the change size smaller (as all these file deletions together are about another ~8K lines worth of deletions.) A separate follow up change will delete these files.Related bug: fxbug.dev/64206
Pre-launch Checklist
///).