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

Unified Diff: Source/platform/fonts/FontCache.h

Issue 213223003: Add ability to pass through IDWriteFactory so sandbox can control how it's constructed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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 | « no previous file | Source/platform/fonts/FontCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontCache.h
diff --git a/Source/platform/fonts/FontCache.h b/Source/platform/fonts/FontCache.h
index 84f4e60ebb4dd25a37f38a34080a99227d0bd737..8383a513762444ce2814f6a31b925d983805f4f5 100644
--- a/Source/platform/fonts/FontCache.h
+++ b/Source/platform/fonts/FontCache.h
@@ -45,6 +45,7 @@
#include <windows.h>
#include <objidl.h>
#include <mlang.h>
+struct IDWriteFactory;
#endif
#if OS(ANDROID)
@@ -100,6 +101,7 @@ public:
bool useSubpixelPositioning() const { return s_useSubpixelPositioning; }
SkFontMgr* fontManager() { return m_fontManager.get(); }
static void setUseDirectWrite(bool useDirectWrite) { s_useDirectWrite = useDirectWrite; }
+ static void setDirectWriteFactory(IDWriteFactory* factory) { s_directWriteFactory = factory; }
static void setUseSubpixelPositioning(bool useSubpixelPositioning) { s_useSubpixelPositioning = useSubpixelPositioning; }
#endif
@@ -150,6 +152,7 @@ private:
#if OS(WIN)
OwnPtr<SkFontMgr> m_fontManager;
static bool s_useDirectWrite;
+ static IDWriteFactory* s_directWriteFactory;
static bool s_useSubpixelPositioning;
#endif
« no previous file with comments | « no previous file | Source/platform/fonts/FontCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698