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 #ifndef UI_GFX_WIN_DIRECT_WRITE_H_ | 5 #ifndef UI_GFX_WIN_DIRECT_WRITE_H_ |
6 #define UI_GFX_WIN_DIRECT_WRITE_H_ | 6 #define UI_GFX_WIN_DIRECT_WRITE_H_ |
7 | 7 |
| 8 #include <dwrite.h> |
| 9 |
8 #include "ui/gfx/gfx_export.h" | 10 #include "ui/gfx/gfx_export.h" |
9 | 11 |
10 namespace gfx { | 12 namespace gfx { |
11 namespace win { | 13 namespace win { |
12 | 14 |
13 // Returns whether DirectWrite font rendering should be used. | 15 // Returns whether DirectWrite font rendering should be used. |
14 GFX_EXPORT bool ShouldUseDirectWrite(); | 16 GFX_EXPORT bool ShouldUseDirectWrite(); |
15 | 17 |
16 GFX_EXPORT void MaybeInitializeDirectWrite(); | 18 GFX_EXPORT void MaybeInitializeDirectWrite(); |
17 | 19 |
18 // Returns true if we are using DirectWrite for font metrics and rendering. | 20 // Returns true if we are using DirectWrite for font metrics and rendering. |
19 GFX_EXPORT bool IsDirectWriteEnabled(); | 21 GFX_EXPORT bool IsDirectWriteEnabled(); |
20 | 22 |
| 23 // Returns the direct write factory, if using direct write, or null otherwise. |
| 24 GFX_EXPORT void GetDWriteFactory(IDWriteFactory** factory); |
| 25 |
21 } // namespace win | 26 } // namespace win |
22 } // namespace gfx | 27 } // namespace gfx |
23 | 28 |
24 #endif // UI_GFX_WIN_DIRECT_WRITE_H_ | 29 #endif // UI_GFX_WIN_DIRECT_WRITE_H_ |
OLD | NEW |