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

Side by Side Diff: content/common/dwrite_font_platform_win.cc

Issue 1557513002: Add logic to switch to DirectWrite font proxy via field trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extraneous namespace qualification Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/dwrite_font_platform_win.h" 5 #include "content/public/common/dwrite_font_platform_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 DCHECK(!g_shared_font_cache.IsValid()); 1266 DCHECK(!g_shared_font_cache.IsValid());
1267 g_shared_font_cache.Set(mapping); 1267 g_shared_font_cache.Set(mapping);
1268 1268
1269 return true; 1269 return true;
1270 } 1270 }
1271 1271
1272 bool BuildFontCache(const base::FilePath& file) { 1272 bool BuildFontCache(const base::FilePath& file) {
1273 return BuildFontCacheInternal(file.value().c_str()); 1273 return BuildFontCacheInternal(file.value().c_str());
1274 } 1274 }
1275 1275
1276 bool ShouldUseDirectWriteFontProxyFieldTrial() {
1277 return base::StartsWith(
1278 base::FieldTrialList::FindFullName("DirectWriteFontProxy"),
1279 "UseDirectWriteFontProxy", base::CompareCase::SENSITIVE);
1280 }
1281
1276 } // namespace content 1282 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/font_warmup_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698