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

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

Issue 210243004: Usage of DirectWrite now determined browser-side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: include 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 55396e4d398eb57c11aad7d4e10f49146fd2f9fa..6f79d0b352a3e7eb8ded447302e8e8f4e102d774 100644
--- a/Source/platform/fonts/FontCache.h
+++ b/Source/platform/fonts/FontCache.h
@@ -93,8 +93,10 @@ public:
#endif
#if OS(WIN)
- bool useSubpixelPositioning() const { return m_useSubpixelPositioning; }
+ bool useSubpixelPositioning() const { return s_useSubpixelPositioning; }
SkFontMgr* fontManager() { return m_fontManager.get(); }
+ static void setUseDirectWrite(bool useDirectWrite) { s_useDirectWrite = useDirectWrite; }
+ static void setUseSubpixelPositioning(bool useSubpixelPositioning) { s_useSubpixelPositioning = useSubpixelPositioning; }
#endif
#if ENABLE(OPENTYPE_VERTICAL)
@@ -143,7 +145,8 @@ private:
#if OS(WIN)
OwnPtr<SkFontMgr> m_fontManager;
- bool m_useSubpixelPositioning;
+ static bool s_useDirectWrite;
+ static bool s_useSubpixelPositioning;
#endif
#if OS(MACOSX) || OS(ANDROID)
« 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