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
31 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 29, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jul 29, 2024
…152464)

flutter/engine@7f7ad74...2cf3986

2024-07-29 [email protected] [Impeller] Enable on-by-default on Android. (flutter/engine#54156)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@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
TytaniumDev pushed a commit to TytaniumDev/flutter that referenced this pull request Aug 7, 2024
…lutter#152464)

flutter/engine@7f7ad74...2cf3986

2024-07-29 [email protected] [Impeller] Enable on-by-default on Android. (flutter/engine#54156)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Buchimi pushed a commit to Buchimi/flutter that referenced this pull request Sep 2, 2024
…lutter#152464)

flutter/engine@7f7ad74...2cf3986

2024-07-29 [email protected] [Impeller] Enable on-by-default on Android. (flutter/engine#54156)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
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