| 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 <dwrite.h> |
| 7 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <wrl/implements.h> |
| 10 #include <wrl/wrappers/corewrappers.h> |
| 11 |
| 8 #include <stddef.h> | 12 #include <stddef.h> |
| 9 #include <stdint.h> | 13 #include <stdint.h> |
| 10 | 14 |
| 11 #include <dwrite.h> | |
| 12 #include <wrl/implements.h> | |
| 13 #include <wrl/wrappers/corewrappers.h> | |
| 14 | |
| 15 #include <limits> | 15 #include <limits> |
| 16 #include <map> | 16 #include <map> |
| 17 #include <string> | 17 #include <string> |
| 18 #include <utility> | 18 #include <utility> |
| 19 #include <vector> | 19 #include <vector> |
| 20 | 20 |
| 21 #include "base/command_line.h" | 21 #include "base/command_line.h" |
| 22 #include "base/debug/alias.h" | 22 #include "base/debug/alias.h" |
| 23 #include "base/debug/crash_logging.h" | 23 #include "base/debug/crash_logging.h" |
| 24 #include "base/files/file_enumerator.h" | 24 #include "base/files/file_enumerator.h" |
| (...skipping 1241 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 |