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 <dwrite.h> |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 #include <wrl/implements.h> | 12 #include <wrl/implements.h> |
13 #include <wrl/wrappers/corewrappers.h> | 13 #include <wrl/wrappers/corewrappers.h> |
14 | 14 |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/debug/alias.h" | 16 #include "base/debug/alias.h" |
17 #include "base/debug/crash_logging.h" | 17 #include "base/debug/crash_logging.h" |
18 #include "base/files/file_enumerator.h" | 18 #include "base/files/file_enumerator.h" |
19 #include "base/files/file_path.h" | 19 #include "base/files/file_path.h" |
20 #include "base/files/file_util.h" | 20 #include "base/files/file_util.h" |
21 #include "base/files/memory_mapped_file.h" | 21 #include "base/files/memory_mapped_file.h" |
22 #include "base/memory/scoped_ptr.h" | 22 #include "base/memory/scoped_ptr.h" |
23 #include "base/memory/scoped_vector.h" | |
24 #include "base/memory/shared_memory.h" | 23 #include "base/memory/shared_memory.h" |
25 #include "base/metrics/histogram.h" | 24 #include "base/metrics/histogram.h" |
26 #include "base/path_service.h" | 25 #include "base/path_service.h" |
27 #include "base/process/process_handle.h" | 26 #include "base/process/process_handle.h" |
28 #include "base/stl_util.h" | 27 #include "base/stl_util.h" |
29 #include "base/strings/string_number_conversions.h" | 28 #include "base/strings/string_number_conversions.h" |
30 #include "base/strings/utf_string_conversions.h" | 29 #include "base/strings/utf_string_conversions.h" |
31 #include "base/synchronization/lock.h" | 30 #include "base/synchronization/lock.h" |
32 #include "base/time/time.h" | 31 #include "base/time/time.h" |
33 #include "base/win/registry.h" | 32 #include "base/win/registry.h" |
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 g_shared_font_cache.Set(mapping); | 1233 g_shared_font_cache.Set(mapping); |
1235 | 1234 |
1236 return true; | 1235 return true; |
1237 } | 1236 } |
1238 | 1237 |
1239 bool BuildFontCache(const base::FilePath& file) { | 1238 bool BuildFontCache(const base::FilePath& file) { |
1240 return BuildFontCacheInternal(file.value().c_str()); | 1239 return BuildFontCacheInternal(file.value().c_str()); |
1241 } | 1240 } |
1242 | 1241 |
1243 } // namespace content | 1242 } // namespace content |
OLD | NEW |