Reverts "[Impeller] enable Impeller by default on Android. (#53099)" (flutter/engine#53125)

Reverts: flutter/engine#53099
Initiated by: jonahwilliams
Reason for reverting: manifest opt out doens't work.
Original PR Author: jonahwilliams

Reviewed By: {bdero, zanderso, chinmaygarde}

This change reverts the following previous change:
All plugin migrations have landed. Enable impeller by default on Android.
This commit is contained in:
auto-submit[bot]
2024-05-30 18:15:47 +00:00
committed by GitHub
parent d2efc934df
commit bc569c90b0
4 changed files with 5 additions and 9 deletions

View File

@@ -223,7 +223,7 @@ struct Settings {
// Enable the Impeller renderer on supported platforms. Ignored if Impeller is
// not supported on the platform.
#if FML_OS_IOS || FML_OS_IOS_SIMULATOR || FML_OS_ANDROID
#if FML_OS_IOS || FML_OS_IOS_SIMULATOR
bool enable_impeller = true;
#else
bool enable_impeller = false;

View File

@@ -45,7 +45,7 @@ public class FlutterShellArgs {
public static final String ARG_KEY_TRACE_TO_FILE = "trace-to-file";
public static final String ARG_TRACE_TO_FILE = "--trace-to-file";
public static final String ARG_KEY_ENABLE_IMPELLER = "enable-impeller";
public static final String ARG_DISABLE_IMPELLER = "--enable-impeller=false";
public static final String ARG_ENABLE_IMPELLER = "--enable-impeller";
public static final String ARG_KEY_ENABLE_VULKAN_VALIDATION = "enable-vulkan-validation";
public static final String ARG_ENABLE_VULKAN_VALIDATION = "--enable-vulkan-validation";
public static final String ARG_KEY_DUMP_SHADER_SKP_ON_SHADER_COMPILATION =
@@ -123,8 +123,8 @@ public class FlutterShellArgs {
if (intent.hasExtra(ARG_KEY_TRACE_TO_FILE)) {
args.add(ARG_TRACE_TO_FILE + "=" + intent.getStringExtra(ARG_KEY_TRACE_TO_FILE));
}
if (!intent.getBooleanExtra(ARG_KEY_ENABLE_IMPELLER, true)) {
args.add(ARG_DISABLE_IMPELLER);
if (intent.getBooleanExtra(ARG_KEY_ENABLE_IMPELLER, false)) {
args.add(ARG_ENABLE_IMPELLER);
}
if (intent.getBooleanExtra(ARG_KEY_ENABLE_VULKAN_VALIDATION, false)) {
args.add(ARG_ENABLE_VULKAN_VALIDATION);

View File

@@ -23,8 +23,6 @@ public class TestRunner extends AndroidJUnitRunner {
"--enable-impeller=true",
"--impeller-backend=" + arguments.getString("impeller-backend", "vulkan")
};
} else {
engineArguments = new String[]{"--enable-impeller=false"};
}
FlutterRenderer.debugDisableSurfaceClear = true;
if ("true".equals(arguments.getString("force-surface-producer-surface-texture"))) {

View File

@@ -417,9 +417,7 @@ Future<void> _run({
if (smokeTestFullPath != null)
'-e class $smokeTestFullPath',
if (enableImpeller)
'-e enable-impeller true'
else
'-e enable-impeller false',
'-e enable-impeller true',
if (impellerBackend != null)
'-e impeller-backend ${impellerBackend.name}',
if (forceSurfaceProducerSurfaceTexture)