Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Unified Diff: shell/desktop/mojo_main.cc

Issue 978673002: Remove some unused ui/gfx code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/desktop/mojo_main.cc
diff --git a/shell/desktop/mojo_main.cc b/shell/desktop/mojo_main.cc
index b5d7e62aed90926d67dc632952fa791553027c21..b45f3761d1382ad18469795b087168d93ccfb840 100644
--- a/shell/desktop/mojo_main.cc
+++ b/shell/desktop/mojo_main.cc
@@ -18,11 +18,6 @@
namespace {
-#if defined(OS_LINUX)
-// Copied from ui/gfx/switches.cc to avoid a dependency on //ui/gfx
-const char kEnableHarfBuzzRenderText[] = "enable-harfbuzz-rendertext";
-#endif
-
void Usage() {
std::cerr << "Launch Mojo applications.\n";
std::cerr
@@ -81,14 +76,6 @@ int main(int argc, char** argv) {
return 0;
}
-#if defined(OS_LINUX)
- // We use gfx::RenderText from multiple threads concurrently and the pango
- // backend (currently the default on linux) is not close to threadsafe.
- // Force use of the harfbuzz backend for now.
- base::CommandLine::ForCurrentProcess()->AppendSwitch(
- kEnableHarfBuzzRenderText);
-#endif
-
// We want the shell::Context to outlive the MessageLoop so that pipes are
// all gracefully closed / error-out before we try to shut the Context down.
mojo::shell::Context shell_context;
« no previous file with comments | « no previous file | ui/gfx/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698