Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: ui/gfx/win/direct_write.h

Issue 1378353006: Implementation of dwrite font proxy and removal of dwrite font cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename locals to match style guide Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698