OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/child/dwrite_font_proxy/dwrite_font_proxy_init_win.h" | 5 #include "content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.h" |
6 | 6 |
7 #include <dwrite.h> | 7 #include <dwrite.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/debug/alias.h" | 11 #include "base/debug/alias.h" |
12 #include "base/win/iat_patch_function.h" | 12 #include "base/win/iat_patch_function.h" |
13 #include "base/win/windows_version.h" | 13 #include "base/win/windows_version.h" |
14 #include "content/child/dwrite_font_proxy/dwrite_font_proxy_win.h" | 14 #include "content/child/dwrite_font_proxy/dwrite_font_proxy_win.h" |
15 #include "content/common/font_warmup_win.h" | 15 #include "content/child/font_warmup_win.h" |
16 #include "skia/ext/fontmgr_default_win.h" | 16 #include "skia/ext/fontmgr_default_win.h" |
17 #include "third_party/WebKit/public/web/win/WebFontRendering.h" | 17 #include "third_party/WebKit/public/web/win/WebFontRendering.h" |
18 #include "third_party/skia/include/ports/SkTypeface_win.h" | 18 #include "third_party/skia/include/ports/SkTypeface_win.h" |
19 | 19 |
20 namespace mswr = Microsoft::WRL; | 20 namespace mswr = Microsoft::WRL; |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void UninitializeDWriteFontProxy() { | 109 void UninitializeDWriteFontProxy() { |
110 if (g_font_collection) | 110 if (g_font_collection) |
111 g_font_collection->Unregister(); | 111 g_font_collection->Unregister(); |
112 } | 112 } |
113 | 113 |
114 void SetDWriteFontProxySenderForTesting(IPC::Sender* sender) { | 114 void SetDWriteFontProxySenderForTesting(IPC::Sender* sender) { |
115 g_sender_override = sender; | 115 g_sender_override = sender; |
116 } | 116 } |
117 | 117 |
118 } // namespace content | 118 } // namespace content |
OLD | NEW |