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

Unified Diff: Source/web/win/WebFontRendering.cpp

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 | « Source/platform/fonts/win/FontCacheSkiaWin.cpp ('k') | public/web/win/WebFontRendering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/win/WebFontRendering.cpp
diff --git a/Source/web/win/WebFontRendering.cpp b/Source/web/win/WebFontRendering.cpp
index a171a4127b564b35b6a4348544c99eb5432171ad..6af08c6e9befd478dc346c67aea49c79265947f3 100644
--- a/Source/web/win/WebFontRendering.cpp
+++ b/Source/web/win/WebFontRendering.cpp
@@ -16,6 +16,12 @@ void WebFontRendering::setUseDirectWrite(bool useDirectWrite)
}
// static
+void WebFontRendering::setDirectWriteFactory(IDWriteFactory* factory)
+{
+ WebCore::FontCache::setDirectWriteFactory(factory);
+}
+
+// static
void WebFontRendering::setUseSubpixelPositioning(bool useSubpixelPositioning)
{
WebCore::FontCache::setUseSubpixelPositioning(useSubpixelPositioning);
« no previous file with comments | « Source/platform/fonts/win/FontCacheSkiaWin.cpp ('k') | public/web/win/WebFontRendering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698