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