OLD | NEW |
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 Loading... |
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 |
OLD | NEW |