Use software rendering on iOS simulators without needing a flag. (flutter/engine#3465)
This commit is contained in:
@@ -25,7 +25,6 @@ struct Settings {
|
||||
bool enable_dart_profiling = false;
|
||||
bool use_test_fonts = false;
|
||||
bool dart_non_checked_mode = false;
|
||||
bool force_software_rendering = false;
|
||||
std::string aot_snapshot_path;
|
||||
std::string aot_vm_snapshot_data_filename;
|
||||
std::string aot_vm_snapshot_instr_filename;
|
||||
|
||||
@@ -185,9 +185,6 @@ void Shell::InitStandalone(std::string icu_data_path,
|
||||
settings.trace_startup =
|
||||
command_line.HasSwitch(FlagForSwitch(Switch::TraceStartup));
|
||||
|
||||
settings.force_software_rendering =
|
||||
command_line.HasSwitch(FlagForSwitch(Switch::ForceSoftwareRendering));
|
||||
|
||||
settings.aot_snapshot_path =
|
||||
command_line.GetSwitchValueASCII(FlagForSwitch(Switch::AotSnapshotPath));
|
||||
settings.aot_vm_snapshot_data_filename = command_line.GetSwitchValueASCII(
|
||||
|
||||
@@ -93,10 +93,6 @@ DEF_SWITCH(DartNonCheckedMode,
|
||||
"precompiled and checked mode is unsupported. However, this flag "
|
||||
"may be specified if the user wishes to run in the debug product "
|
||||
"mode (i.e. with JIT or DBC) with checked mode off.")
|
||||
DEF_SWITCH(ForceSoftwareRendering,
|
||||
"force-software-rendering",
|
||||
"On platforms where it is supported (only iOS simulator currently), "
|
||||
"the shell will attempt to use the software backend for rendering.")
|
||||
DEF_SWITCHES_END
|
||||
|
||||
void PrintUsage(const std::string& executable_name);
|
||||
|
||||
@@ -33,8 +33,7 @@
|
||||
|
||||
+ (Class)layerClass {
|
||||
#if TARGET_IPHONE_SIMULATOR
|
||||
return blink::Settings::Get().force_software_rendering ? [CALayer class]
|
||||
: [CAEAGLLayer class];
|
||||
return [CALayer class];
|
||||
#else // TARGET_IPHONE_SIMULATOR
|
||||
return [CAEAGLLayer class];
|
||||
#endif // TARGET_IPHONE_SIMULATOR
|
||||
|
||||
Reference in New Issue
Block a user