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

Conversation

@chinmaygarde
Copy link
Member

@chinmaygarde chinmaygarde commented Jul 26, 2024

Developers can control the backend in the following ways:

  • Do nothing: Impeller with Vulkan is used where Vulkan is available with a fallback to Skia with OpenGL.
  • In AndroidManifest.xml, specify io.flutter.embedding.android.EnableImpeller as false: Skia with OpenGL is used.
  • On the command line, specify --no-enable-impeller: Skia with OpenGL is used.

Manifest options will take priority command line options when there is a conflict. This matches iOS behavior per flutter/flutter#124049 (closed as WAI).

Fixes flutter/flutter#149360

Developers can control the backend in the following ways:

Do nothing: Impeller with Vulkan is used where Vulkan is available with a fallback to Skia with OpenGL.
In `AndroidManifest.xml`, specify `io.flutter.embedding.android.EnableImpeller` as `false`: Skia with OpenGL is used.
On the command line, specify `--no-enable-impeller`: Skia with OpenGL is used.

Manifest options will take priority command line options when there is a conflict. This matches iOS behavior per flutter/flutter#124049 (closed as WAI).

Fixes flutter/flutter#149360
@flutter-dashboard

This comment was marked as outdated.

@chinmaygarde
Copy link
Member Author

Android is a bit different from iOS in that it doesn't work with a flutter::Settings struct. Instead, it talks to the engine via "command line" args. The implementation is basically just, if you don't have an opinion, say nothing via the command line args.

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

#53099 changed a few more files, I think you'll need to make sure scenario app is running as expected

@zanderso
Copy link
Member

Did a pass for TODOs, but I'm sure I didn't find everything. Only thing I found with a quick search was flutter/flutter#132712.

@chinmaygarde chinmaygarde added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 29, 2024
@auto-submit auto-submit bot merged commit 2cf3986 into flutter:main Jul 29, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 29, 2024
@chinmaygarde chinmaygarde deleted the impeller-on-by-default branch July 29, 2024 05:43
chinmaygarde added a commit to flutter/flutter that referenced this pull request Jul 29, 2024
reidbaker added a commit that referenced this pull request Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-android platform-ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Impeller] Android: Impeller opt-out via the command-line and manifest options must work.

3 participants