This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 4 files changed +9
-5
lines changed
shell/platform/android/io/flutter/embedding/engine
android/app/src/androidTest/java/dev/flutter
4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ struct Settings {
223
223
224
224
// Enable the Impeller renderer on supported platforms. Ignored if Impeller is
225
225
// not supported on the platform.
226
- #if FML_OS_IOS || FML_OS_IOS_SIMULATOR
226
+ #if FML_OS_IOS || FML_OS_IOS_SIMULATOR || FML_OS_ANDROID
227
227
bool enable_impeller = true ;
228
228
#else
229
229
bool enable_impeller = false ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public class FlutterShellArgs {
45
45
public static final String ARG_KEY_TRACE_TO_FILE = "trace-to-file" ;
46
46
public static final String ARG_TRACE_TO_FILE = "--trace-to-file" ;
47
47
public static final String ARG_KEY_ENABLE_IMPELLER = "enable-impeller" ;
48
- public static final String ARG_ENABLE_IMPELLER = "--enable-impeller" ;
48
+ public static final String ARG_DISABLE_IMPELLER = "--enable-impeller=false " ;
49
49
public static final String ARG_KEY_ENABLE_VULKAN_VALIDATION = "enable-vulkan-validation" ;
50
50
public static final String ARG_ENABLE_VULKAN_VALIDATION = "--enable-vulkan-validation" ;
51
51
public static final String ARG_KEY_DUMP_SHADER_SKP_ON_SHADER_COMPILATION =
@@ -123,8 +123,8 @@ public static FlutterShellArgs fromIntent(@NonNull Intent intent) {
123
123
if (intent .hasExtra (ARG_KEY_TRACE_TO_FILE )) {
124
124
args .add (ARG_TRACE_TO_FILE + "=" + intent .getStringExtra (ARG_KEY_TRACE_TO_FILE ));
125
125
}
126
- if (intent .getBooleanExtra (ARG_KEY_ENABLE_IMPELLER , false )) {
127
- args .add (ARG_ENABLE_IMPELLER );
126
+ if (! intent .getBooleanExtra (ARG_KEY_ENABLE_IMPELLER , true )) {
127
+ args .add (ARG_DISABLE_IMPELLER );
128
128
}
129
129
if (intent .getBooleanExtra (ARG_KEY_ENABLE_VULKAN_VALIDATION , false )) {
130
130
args .add (ARG_ENABLE_VULKAN_VALIDATION );
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ public void onCreate(@Nullable Bundle arguments) {
23
23
"--enable-impeller=true" ,
24
24
"--impeller-backend=" + arguments .getString ("impeller-backend" , "vulkan" )
25
25
};
26
+ } else {
27
+ engineArguments = new String []{"--enable-impeller=false" };
26
28
}
27
29
FlutterRenderer .debugDisableSurfaceClear = true ;
28
30
if ("true" .equals (arguments .getString ("force-surface-producer-surface-texture" ))) {
Original file line number Diff line number Diff line change @@ -417,7 +417,9 @@ Future<void> _run({
417
417
if (smokeTestFullPath != null )
418
418
'-e class $smokeTestFullPath ' ,
419
419
if (enableImpeller)
420
- '-e enable-impeller true' ,
420
+ '-e enable-impeller true'
421
+ else
422
+ '-e enable-impeller false' ,
421
423
if (impellerBackend != null )
422
424
'-e impeller-backend ${impellerBackend .name }' ,
423
425
if (forceSurfaceProducerSurfaceTexture)
You can’t perform that action at this time.
0 commit comments