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
[Windows] Make the view own its EGL surface #50421
Merged
auto-submit
merged 1 commit into
flutter:main
from
loic-sharma:windows_surface_ownership_3
Feb 12, 2024
Merged
[Windows] Make the view own its EGL surface #50421
auto-submit
merged 1 commit into
flutter:main
from
loic-sharma:windows_surface_ownership_3
Feb 12, 2024
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
loic-sharma
commented
Feb 7, 2024
| void FlutterWindowsView::DestroyRenderSurface() { | ||
| if (!engine_) { | ||
| return; | ||
| bool FlutterWindowsView::ResizeRenderSurface(size_t width, size_t height) { |
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.
This was moved from egl::Manager::ResizeWindowSurface
loic-sharma
commented
Feb 7, 2024
9aa358d to
1c6acf3
Compare
yaakovschectman
approved these changes
Feb 7, 2024
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
|
Can we land this? |
|
This change is a bit gnarly so I'd also like a review from @cbracken if possible. I'll land this soon! |
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Feb 12, 2024
auto-submit bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Feb 12, 2024
…143322) flutter/engine@1c3ecee...a190775 2024-02-12 [email protected] [Windows] Make the view own its EGL surface (flutter/engine#50421) 2024-02-12 [email protected] Roll Dart SDK from 5c9e79e66364 to dca13675e65e (1 revision) (flutter/engine#50559) 2024-02-12 [email protected] [fuchsia] Update Inspect library usage (flutter/engine#50467) 2024-02-12 [email protected] Initializes RBE in the build config runner (flutter/engine#50543) 2024-02-12 [email protected] Rename [ViewFocusDirection.backwards] to [ViewFocusDirection.backward] (flutter/engine#50533) 2024-02-12 [email protected] Refactor NDK helpers some more, add methods for SurfaceControl/Transaction, tests (flutter/engine#50540) 2024-02-12 [email protected] [Impeller] deleted the old blur (flutter/engine#50470) 2024-02-12 [email protected] Update codec defines for Skia (flutter/engine#50554) 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://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
auto-submit bot
added a commit
to flutter/flutter
that referenced
this pull request
Feb 12, 2024
…isions) (#143322)" (#143338) Reverts #143322 Initiated by: zanderso Reason for reverting: The tree is red. Original PR Author: engine-flutter-autoroll Reviewed By: {fluttergithubbot} This change reverts the following previous change: Original Description: flutter/engine@1c3ecee...a190775 2024-02-12 [email protected] [Windows] Make the view own its EGL surface (flutter/engine#50421) 2024-02-12 [email protected] Roll Dart SDK from 5c9e79e66364 to dca13675e65e (1 revision) (flutter/engine#50559) 2024-02-12 [email protected] [fuchsia] Update Inspect library usage (flutter/engine#50467) 2024-02-12 [email protected] Initializes RBE in the build config runner (flutter/engine#50543) 2024-02-12 [email protected] Rename [ViewFocusDirection.backwards] to [ViewFocusDirection.backward] (flutter/engine#50533) 2024-02-12 [email protected] Refactor NDK helpers some more, add methods for SurfaceControl/Transaction, tests (flutter/engine#50540) 2024-02-12 [email protected] [Impeller] deleted the old blur (flutter/engine#50470) 2024-02-12 [email protected] Update codec defines for Skia (flutter/engine#50554) 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://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Feb 13, 2024
auto-submit bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Feb 13, 2024
…sions) (#143380) Manual roll Flutter Engine from 1c3ecee77350 to 920874bf2c1a (34 revisions) Manual roll requested by [email protected] Cannot build log URL because revision "920874bf2c1a" is invalid: Luci builds of "Linux Fuchsia FEMU" for 920874bf2c1a9ba2e9b7260b79ede8f1e26ea4f0 was FAILURE 2024-02-13 [email protected] Do not use AChoreographer on 32 bit devices (flutter/engine#50586) 2024-02-13 [email protected] Move libpng to //flutter/third_party/libpng (flutter/engine#50571) 2024-02-13 [email protected] Roll Skia from b150107d536d to aaed347b2dbb (2 revisions) (flutter/engine#50595) 2024-02-13 [email protected] Roll Dart SDK from 8d3a8d85c883 to 105312b80125 (2 revisions) (flutter/engine#50593) 2024-02-13 [email protected] Roll Skia from d503bc9c6e46 to b150107d536d (1 revision) (flutter/engine#50591) 2024-02-13 [email protected] Roll Skia from a1d9b83034ac to d503bc9c6e46 (3 revisions) (flutter/engine#50587) 2024-02-13 [email protected] [Impeller] cleaned up and removed golden test exceptions (flutter/engine#50572) 2024-02-13 [email protected] Roll Skia from 17d00f9241b3 to a1d9b83034ac (2 revisions) (flutter/engine#50582) 2024-02-13 [email protected] Roll Fuchsia Linux SDK from RVHAIKU50ogkiV-Lj... to l6mWjvlO1xJg5ZFKK... (flutter/engine#50579) 2024-02-13 [email protected] Roll Dart SDK from 94f7dec34cef to 8d3a8d85c883 (1 revision) (flutter/engine#50577) 2024-02-13 [email protected] Add Impeller runtime options to Android `scenario_app` (flutter/engine#50487) 2024-02-13 [email protected] Roll Skia from c464143dfaab to 17d00f9241b3 (1 revision) (flutter/engine#50576) 2024-02-13 [email protected] Roll Skia from ecf2f622d0b3 to c464143dfaab (2 revisions) (flutter/engine#50574) 2024-02-12 [email protected] [Impeller] CommandPoolVK recycles command buffers too. (flutter/engine#50468) 2024-02-12 [email protected] Make `dart:ui#Paint` `final` to allow changes/disallow implementing. (flutter/engine#50557) 2024-02-12 [email protected] Replace usage of an integer for GdkModifierType (flutter/engine#50481) 2024-02-12 [email protected] Remove FlKeyEvent.dispose_origin and use GdkEvent type for origin (flutter/engine#50483) 2024-02-12 [email protected] Move Linux impeller_unittests to linux_unopt (flutter/engine#50558) 2024-02-12 [email protected] [Impeller] Don't suppress outdated validation error. (flutter/engine#50568) 2024-02-12 [email protected] [Impeller] Remove references to moved impeller/image from README. (flutter/engine#50513) 2024-02-12 [email protected] Roll Dart SDK from dca13675e65e to 94f7dec34cef (1 revision) (flutter/engine#50567) 2024-02-12 [email protected] Roll Skia from f88eeb658358 to ecf2f622d0b3 (1 revision) (flutter/engine#50566) 2024-02-12 [email protected] Roll Skia from 867c1e8390e2 to f88eeb658358 (5 revisions) (flutter/engine#50564) 2024-02-12 [email protected] Roll vulkan-deps to 014f44e134a1de387791bffacc32ff9d8db71176 (flutter/engine#50515) 2024-02-12 [email protected] Roll Skia from 4081496b7693 to 867c1e8390e2 (20 revisions) (flutter/engine#50562) 2024-02-12 [email protected] [Impeller] force render pass construction on all backends to ensure image layout is transitioned/render pass state setup. (flutter/engine#50539) 2024-02-12 [email protected] [Windows] Make the view own its EGL surface (flutter/engine#50421) 2024-02-12 [email protected] Roll Dart SDK from 5c9e79e66364 to dca13675e65e (1 revision) (flutter/engine#50559) 2024-02-12 [email protected] [fuchsia] Update Inspect library usage (flutter/engine#50467) 2024-02-12 [email protected] Initializes RBE in the build config runner (flutter/engine#50543) 2024-02-12 [email protected] Rename [ViewFocusDirection.backwards] to [ViewFocusDirection.backward] (flutter/engine#50533) 2024-02-12 [email protected] Refactor NDK helpers some more, add methods for SurfaceControl/Transaction, tests (flutter/engine#50540) 2024-02-12 [email protected] [Impeller] deleted the old blur (flutter/engine#50470) 2024-02-12 [email protected] Update codec defines for Skia (flutter/engine#50554) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from RVHAIKU50ogk to l6mWjvlO1xJg 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],[email protected] on the revert to ensure that a human is aware of the problem. ...
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
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.
This makes the view own its EGL surface. This will allow us to support multiple EGL surfaces once the engine supports having multiple views.
Some notable changes:
FlutterWindowsView. Previously some resizing logic was in theegl::Manager, however, the view has to handle resizing failures so this unifies the logic in one place.OnEmptyFrameGeneratedandOnFrameGeneratednow returnfalse(aka "don't present") if the surface is invalid. This simplifies the compositor as it no longer needs to check for invalid surfacesViewModifiertesting helper to allow overriding a view's surface. This isn't strictly necessary, tests can setup a surface by mocking several EGL methods and callingFlutterWindowsView::CreateRenderSurface(). However, this is verbose & heavily tied to implementation details. TheViewModifieravoids this boilerplate.CompositorOpenGL's initialization now makes the render context current without any render surfaces. Previously it also made the view's surface current, which was unnecessary.Part of flutter/flutter#137267
Part of flutter/flutter#142845
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.