This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414#include < string>
1515#include < vector>
1616
17+ #include " flutter/fml/build_config.h"
1718#include " flutter/fml/closure.h"
1819#include " flutter/fml/mapping.h"
1920#include " flutter/fml/time/time_point.h"
@@ -210,7 +211,11 @@ struct Settings {
210211
211212 // Enable the Impeller renderer on supported platforms. Ignored if Impeller is
212213 // not supported on the platform.
214+ #if FML_OS_IOS || FML_OS_IOS_SIMULATOR
215+ bool enable_impeller = true ;
216+ #else
213217 bool enable_impeller = false ;
218+ #endif
214219
215220 // Data set by platform-specific embedders for use in font initialization.
216221 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) {
443443 settings.use_asset_fonts =
444444 !command_line.HasOption (FlagForSwitch (Switch::DisableAssetFonts));
445445
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+ }
448452
449453 settings.enable_embedder_api =
450454 command_line.HasOption (FlagForSwitch (Switch::EnableEmbedderAPI));
You can’t perform that action at this time.
0 commit comments