Skip to content

Commit

Permalink
Respect Switch::SkiaDeterministicRendering in all runtime modes (flut…
Browse files Browse the repository at this point in the history
  • Loading branch information
tvolkert authored Feb 21, 2018
1 parent 4cafde3 commit ead227f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions shell/common/shell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,8 @@ void Shell::InitStandalone(fxl::CommandLine command_line,

fml::icu::InitializeICU(icu_data_path);

#if FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG
if (!command_line.HasOption(FlagForSwitch(Switch::SkiaDeterministicRendering))) {
if (!command_line.HasOption(FlagForSwitch(Switch::SkiaDeterministicRendering)))
SkGraphics::Init();
}
#else
SkGraphics::Init();
#endif

blink::Settings settings;
settings.application_library_path = application_library_path;
Expand Down
4 changes: 1 addition & 3 deletions shell/common/switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ DEF_SWITCH(SkiaDeterministicRendering,
"skia-deterministic-rendering",
"Skips the call to SkGraphics::Init(), thus avoiding swapping out"
"some Skia function pointers based on available CPU features. This"
"is used to obtain 100% deterministic behavior in Skia rendering."
"This flag is ignored when the runtime mode is anything other than"
"debug.")
"is used to obtain 100% deterministic behavior in Skia rendering.")
DEF_SWITCH(EnableTxt,
"enable-txt",
"Enable libtxt as the text shaping library instead of Blink.")
Expand Down

0 comments on commit ead227f

Please sign in to comment.