mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] enable Impeller by default on Android. (flutter/engine#53099)
All plugin migrations have landed. Enable impeller by default on Android.
This commit is contained in:
parent
784cece038
commit
ca435f46c9
@ -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
|
||||
#if FML_OS_IOS || FML_OS_IOS_SIMULATOR || FML_OS_ANDROID
|
||||
bool enable_impeller = true;
|
||||
#else
|
||||
bool enable_impeller = false;
|
||||
|
||||
@ -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_ENABLE_IMPELLER = "--enable-impeller";
|
||||
public static final String ARG_DISABLE_IMPELLER = "--enable-impeller=false";
|
||||
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, false)) {
|
||||
args.add(ARG_ENABLE_IMPELLER);
|
||||
if (!intent.getBooleanExtra(ARG_KEY_ENABLE_IMPELLER, true)) {
|
||||
args.add(ARG_DISABLE_IMPELLER);
|
||||
}
|
||||
if (intent.getBooleanExtra(ARG_KEY_ENABLE_VULKAN_VALIDATION, false)) {
|
||||
args.add(ARG_ENABLE_VULKAN_VALIDATION);
|
||||
|
||||
@ -23,6 +23,8 @@ 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"))) {
|
||||
|
||||
@ -417,7 +417,9 @@ Future<void> _run({
|
||||
if (smokeTestFullPath != null)
|
||||
'-e class $smokeTestFullPath',
|
||||
if (enableImpeller)
|
||||
'-e enable-impeller true',
|
||||
'-e enable-impeller true'
|
||||
else
|
||||
'-e enable-impeller false',
|
||||
if (impellerBackend != null)
|
||||
'-e impeller-backend ${impellerBackend.name}',
|
||||
if (forceSurfaceProducerSurfaceTexture)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user