This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
testing/scenario_app/ios/Scenarios/Scenarios Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 14
14
#include < string>
15
15
#include < vector>
16
16
17
+ #include " flutter/fml/build_config.h"
17
18
#include " flutter/fml/closure.h"
18
19
#include " flutter/fml/mapping.h"
19
20
#include " flutter/fml/time/time_point.h"
@@ -210,7 +211,11 @@ struct Settings {
210
211
211
212
// Enable the Impeller renderer on supported platforms. Ignored if Impeller is
212
213
// not supported on the platform.
214
+ #if FML_OS_IOS || FML_OS_IOS_SIMULATOR
215
+ bool enable_impeller = true ;
216
+ #else
213
217
bool enable_impeller = false ;
218
+ #endif
214
219
215
220
// Data set by platform-specific embedders for use in font initialization.
216
221
uint32_t font_initialization_data = 0 ;
Original file line number Diff line number Diff line change @@ -443,8 +443,12 @@ Settings SettingsFromCommandLine(const fml::CommandLine& command_line) {
443
443
settings.use_asset_fonts =
444
444
!command_line.HasOption (FlagForSwitch (Switch::DisableAssetFonts));
445
445
446
- settings.enable_impeller =
447
- command_line.HasOption (FlagForSwitch (Switch::EnableImpeller));
446
+ std::string enable_impeller_value;
447
+ if (command_line.GetOptionValue (FlagForSwitch (Switch::EnableImpeller),
448
+ &enable_impeller_value)) {
449
+ settings.enable_impeller =
450
+ enable_impeller_value.empty () || " true" == enable_impeller_value;
451
+ }
448
452
449
453
settings.enable_embedder_api =
450
454
command_line.HasOption (FlagForSwitch (Switch::EnableEmbedderAPI));
Original file line number Diff line number Diff line change 41
41
<string >UIInterfaceOrientationLandscapeLeft </string >
42
42
<string >UIInterfaceOrientationLandscapeRight </string >
43
43
</array >
44
+ <key >FLTEnableImpeller </key >
45
+ <false />
44
46
</dict >
45
47
</plist >
You can’t perform that action at this time.
0 commit comments