-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[CP][Impeller] Disable Vulkan on Emulators. (#162454) #162536
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
[CP][Impeller] Disable Vulkan on Emulators. (#162454) #162536
Conversation
Forces known android emulators to use OpenGLES. This is a very conservative check that could be expanded over time if need be. For testing emulators can still use the debug flags. Fixes flutter#160442 Fixes flutter#160439 Fixes flutter#155973
jtmcdole
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.
LGTM
|
|
||
| // static | ||
| bool FlutterMain::IsDeviceEmulator(std::string_view product_model) { | ||
| return std::string(product_model).find("gphone") != std::string::npos; |
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.
Is there ever a case this could also just be "emulator"?
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.
probably, but I decided to play it conservative since all my emulators said gphone. (We only have to worry about very new emulators as old ones have no vulkan support regardless of API level)
|
I also realize this is a cherrypick, so ignore :) |
1d03bf2
into
flutter:flutter-3.29-candidate.0
Forces known android emulators to use OpenGLES. This is a very conservative check that could be expanded over time if need be. For testing emulators can still use the debug flags.
Fixes #160442
Fixes #160439
Fixes #155973