Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

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

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
@jonahwilliams jonahwilliams added the cp: beta cherry pick this pull request to beta release candidate branch label Jan 31, 2025
@github-actions github-actions bot added platform-android Android applications specifically engine flutter/engine related. See also e: labels. labels Jan 31, 2025
Copy link
Member

@jtmcdole jtmcdole left a 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;
Copy link
Member

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"?

Copy link
Contributor Author

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)

@jtmcdole
Copy link
Member

I also realize this is a cherrypick, so ignore :)

@christopherfujino christopherfujino added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 5, 2025
@auto-submit auto-submit bot merged commit 1d03bf2 into flutter:flutter-3.29-candidate.0 Feb 5, 2025
159 checks passed
@jonahwilliams jonahwilliams deleted the cp_12 branch February 9, 2025 21:08
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 12, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 6, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 7, 2025
@reidbaker reidbaker mentioned this pull request Apr 4, 2025
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App cp: beta cherry pick this pull request to beta release candidate branch engine flutter/engine related. See also e: labels. platform-android Android applications specifically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants