From d2efc934dfc2600cc9ee2b59f3a46205927919bb Mon Sep 17 00:00:00 2001 From: "auto-submit[bot]" <98614782+auto-submit[bot]@users.noreply.github.com> Date: Thu, 30 May 2024 18:10:25 +0000 Subject: [PATCH] Reverts "Disable Impeller when the manifest explicitly disables it (#53108)" (flutter/engine#53124) Reverts: flutter/engine#53108 Initiated by: jonahwilliams Reason for reverting: Probably --no-enable-impeller isn't working Original PR Author: jiahaog Reviewed By: {jonahwilliams} This change reverts the following previous change: After https://github.com/flutter/engine/pull/53099, impeller is always enabled, even if the manifest disables it using `io.flutter.embedding.android.EnableImpeller`. This PR causes it to respect the manifest value if it is explicitly disabled. Fixes b/343603270 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- .../io/flutter/embedding/engine/loader/FlutterLoader.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/loader/FlutterLoader.java b/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/loader/FlutterLoader.java index c720f37b767..b540c20e14c 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/loader/FlutterLoader.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/embedding/engine/loader/FlutterLoader.java @@ -340,10 +340,8 @@ public class FlutterLoader { shellArgs.add("--prefetched-default-font-manager"); if (metaData != null) { - if (metaData.getBoolean(ENABLE_IMPELLER_META_DATA_KEY, true)) { + if (metaData.getBoolean(ENABLE_IMPELLER_META_DATA_KEY, false)) { shellArgs.add("--enable-impeller"); - } else { - shellArgs.add("--enable-impeller=false"); } if (metaData.getBoolean(ENABLE_VULKAN_VALIDATION_META_DATA_KEY, false)) { shellArgs.add("--enable-vulkan-validation");