diff options
author | ananta <ananta@chromium.org> | 2014-11-17 13:51:45 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-17 21:52:07 +0000 |
commit | e047d110147f0d207aa84b567a1b2f8734294dcc (patch) | |
tree | e8b07d653c17065cc4e3cfc0b614e0c58481e9b7 /content/browser/browser_main_runner.cc | |
parent | ad672f645e82ca677978b097a170c908c614d184 (diff) | |
download | chromium_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.cc | 4 |
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; |