Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the virtual display's window translucent #9828

Merged
merged 1 commit into from
Jul 15, 2019

Conversation

amirh
Copy link
Contributor

@amirh amirh commented Jul 15, 2019

By default alpha is not preserved for the VD's contents.
We make the window translucent as a side effect of doing so is preserving alpha.
There should not be extra performance cost for setting the window to be translucent as there is only a single window within the VD.

Fixes flutter/flutter#33756

Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

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

The logic here LGTM. Are you planning on landing tests for this in another repo after this lands?

@amirh
Copy link
Contributor Author

amirh commented Jul 15, 2019

@cyanglaz is working on screenshot tests for the platform views (flutter/flutter#36200 is the first step), we should add a test case for this as well there. This PR will have to land before the tests anyway so a golden can be produced.

Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

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

Got it, LGTM!

@amirh amirh merged commit 74af88b into flutter:master Jul 15, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 16, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Jul 16, 2019
flutter/engine@3f27c57...74af88b

git log 3f27c57..74af88b --no-merges --oneline
74af88b Make the virtual display's window translucent (flutter/engine#9828)
bf91bdb Roll src/third_party/skia 563d044c0e76..9d844d8ce5a2 (10 commits) (flutter/engine#9831)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop
the roller if necessary.
johnsonmh pushed a commit to johnsonmh/flutter that referenced this pull request Jul 30, 2019
flutter/engine@3f27c57...74af88b

git log 3f27c57..74af88b --no-merges --oneline
74af88b Make the virtual display&flutter#39;s window translucent (flutter/engine#9828)
bf91bdb Roll src/third_party/skia 563d044c0e76..9d844d8ce5a2 (10 commits) (flutter/engine#9831)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop
the roller if necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Native Android View NO transparent background (works fine on iOS)
3 participants