summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_main_runner.cc
diff options
context:
space:
mode:
authorananta <ananta@chromium.org>2014-11-17 13:51:45 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-17 21:52:07 +0000
commite047d110147f0d207aa84b567a1b2f8734294dcc (patch)
treee8b07d653c17065cc4e3cfc0b614e0c58481e9b7 /content/browser/browser_main_runner.cc
parentad672f645e82ca677978b097a170c908c614d184 (diff)
downloadchromium_src-e047d110147f0d207aa84b567a1b2f8734294dcc.zip
chromium_src-e047d110147f0d207aa84b567a1b2f8734294dcc.tar.gz
chromium_src-e047d110147f0d207aa84b567a1b2f8734294dcc.tar.bz2
Enable DirectWrite for font metrics and font rendering in Chrome UI on Windows by default.
We have a switch --disable-directwrite-for-ui to switch back to GDI. BUG=389649 Review URL: https://codereview.chromium.org/726893005 Cr-Commit-Position: refs/heads/master@{#304487}
Diffstat (limited to 'content/browser/browser_main_runner.cc')
-rw-r--r--content/browser/browser_main_runner.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/browser_main_runner.cc b/content/browser/browser_main_runner.cc
index 39a8706..67263fe 100644
--- a/content/browser/browser_main_runner.cc
+++ b/content/browser/browser_main_runner.cc
@@ -119,8 +119,8 @@ void InstallSha256LegacyHooks() {
void MaybeEnableDirectWriteFontRendering() {
if (gfx::win::ShouldUseDirectWrite() &&
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableDirectWriteForUI) &&
+ !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableDirectWriteForUI) &&
!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableHarfBuzzRenderText)) {
typedef decltype(DWriteCreateFactory)* DWriteCreateFactoryProc;