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

Handle SurfaceView in a VirtualDisplay #33599

Merged
merged 25 commits into from
Jun 23, 2022
Merged

Conversation

blasten
Copy link

@blasten blasten commented May 24, 2022

Fixes flutter/flutter#103630
Fixes flutter/flutter#105882

SurfaceViews punch a whole in the window to allow the surface to be displayed.
#31468 caused an issue where platform views that embed a SurfaceView cannot be composed correctly in Flutter. This used to work previously thanks to VirtualDisplay although it wasn't a documented behavior.

This PR brings back the VirtualDisplay for views that can do their own drawing without the Android view. For example, a plugin like flutter-mapbox-gl uses SurfaceView to issue GL commands to this surface directly.

To review this PR, you would need to compare the differences between this patch and https://github.com/flutter/engine/pull/31468/files.

@penhorwood
Copy link

Is this Linux checked being worked on? Seems like a lot of people are waiting on this fix.

@penhorwood
Copy link

I have followed most of the related links to this pull request. Is there anything we can do to help get this completed?

@blasten
Copy link
Author

blasten commented Jun 3, 2022

@penhorwood I was waiting for #33574 to land. This fix needs an integration test, so this issue doesn't reoccur in the future.

@sirmamedical
Copy link

Any progress on releasing this fix?
We are stuck with flutter 2.10.5 and with the compatible plugin versions only. Most of the plugin updates are not possible.

@penhorwood
Copy link

Seems we all lost another week to this issue. Are we still waiting on a integration test?

@pitazzo
Copy link

pitazzo commented Jun 13, 2022

Any news on this? Our team has been blocked for kicking a new release of our product for weeks 🙃

@penhorwood
Copy link

@blasten - Any chance this will get completed soon?

@blasten blasten force-pushed the tx_rework branch 4 times, most recently from 49f51ab to 3401c16 Compare June 15, 2022 23:21
@penhorwood
Copy link

Getting closer. I like the changes you made to the patch. What happens next?

@skia-gold
Copy link

Gold has detected about 1 new digest(s) on patchset 14.
View them at https://flutter-engine-gold.skia.org/cl/github/33599

@blasten blasten force-pushed the tx_rework branch 4 times, most recently from 38dad8f to cca28ef Compare June 18, 2022 05:31
@skia-gold
Copy link

Gold has detected about 21 new digest(s) on patchset 18.
View them at https://flutter-engine-gold.skia.org/cl/github/33599

@suale-dev
Copy link

suale-dev commented Jun 21, 2022

Anyone can tell me about plan to merge this PR?

@skia-gold
Copy link

Gold has detected about 25 new digest(s) on patchset 22.
View them at https://flutter-engine-gold.skia.org/cl/github/33599

@skia-gold
Copy link

Gold has detected about 25 new digest(s) on patchset 23.
View them at https://flutter-engine-gold.skia.org/cl/github/33599

@skia-gold
Copy link

Gold has detected about 1 new digest(s) on patchset 24.
View them at https://flutter-engine-gold.skia.org/cl/github/33599

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

Lgtm

@skia-gold
Copy link

Gold has detected about 22 new digest(s) on patchset 25.
View them at https://flutter-engine-gold.skia.org/cl/github/33599

@blasten blasten changed the title Handle SurfaceView and TextureView in a VirtualDisplay Handle SurfaceView in a VirtualDisplay Jun 23, 2022
@blasten blasten added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Jun 23, 2022
@fluttergithubbot fluttergithubbot merged commit e986f43 into flutter:main Jun 23, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 24, 2022
bparrishMines added a commit that referenced this pull request Jun 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-android waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
10 participants