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

Unified 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: More codereview fixes. Jumped the gun on previous patchset. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/gfx/win/direct_write.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/win/direct_write.h
diff --git a/ui/gfx/win/direct_write.h b/ui/gfx/win/direct_write.h
index f16e45c31410c09891f9f7b6e5359f9a8863c7b2..1fa268d87d22c3fb1023c2d6d189e145f97976bc 100644
--- a/ui/gfx/win/direct_write.h
+++ b/ui/gfx/win/direct_write.h
@@ -5,6 +5,8 @@
#ifndef UI_GFX_WIN_DIRECT_WRITE_H_
#define UI_GFX_WIN_DIRECT_WRITE_H_
+#include <dwrite.h>
+
#include "ui/gfx/gfx_export.h"
namespace gfx {
@@ -18,6 +20,9 @@ GFX_EXPORT void MaybeInitializeDirectWrite();
// Returns true if we are using DirectWrite for font metrics and rendering.
GFX_EXPORT bool IsDirectWriteEnabled();
+// Returns the direct write factory, if using direct write, or null otherwise.
+GFX_EXPORT void GetDWriteFactory(IDWriteFactory** factory);
+
} // namespace win
} // namespace gfx
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/gfx/win/direct_write.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698