Skip to content

Commit

Permalink
Revert "Enable libtxt as the default text renderer (flutter#4697)" (f…
Browse files Browse the repository at this point in the history
…lutter#4717)

This reverts commit 33b8817.

The libtxt font collection cache is consuming too much memory at startup.
  • Loading branch information
jason-simmons authored Feb 27, 2018
1 parent ae3f7ea commit e133da7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shell/common/shell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void Shell::InitStandalone(fxl::CommandLine command_line,
command_line.HasOption(FlagForSwitch(Switch::EnableSoftwareRendering));

settings.using_blink =
command_line.HasOption(FlagForSwitch(Switch::EnableBlink));
!command_line.HasOption(FlagForSwitch(Switch::EnableTxt));

settings.endless_trace_buffer =
command_line.HasOption(FlagForSwitch(Switch::EndlessTraceBuffer));
Expand Down
6 changes: 3 additions & 3 deletions shell/common/switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ DEF_SWITCH(SkiaDeterministicRendering,
"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.")
DEF_SWITCH(EnableBlink,
"enable-blink",
"Enable Blink as the text shaping library instead of libtxt.")
DEF_SWITCH(EnableTxt,
"enable-txt",
"Enable libtxt as the text shaping library instead of Blink.")
DEF_SWITCH(FLX, "flx", "Specify the FLX path.")
DEF_SWITCH(FlutterAssetsDir,
"flutter-assets-dir",
Expand Down

0 comments on commit e133da7

Please sign in to comment.