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

Unified Diff: content/common/font_warmup_win.cc

Issue 1591883002: Add plumbing in blink to allow overriding the default font collection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More smartpointer refactoring Created 4 years, 11 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
Index: content/common/font_warmup_win.cc
diff --git a/content/common/font_warmup_win.cc b/content/common/font_warmup_win.cc
index 2968218c231a88281bdca074aa94eafc8bb30dbe..fe1c0a0dd192a0f1f4c843265a59a0eea9aba132 100644
--- a/content/common/font_warmup_win.cc
+++ b/content/common/font_warmup_win.cc
@@ -482,8 +482,8 @@ SkFontMgr* GetPreSandboxWarmupFontMgr() {
PatchDWriteFactory(factory);
- blink::WebFontRendering::setDirectWriteFactory(factory);
g_warmup_fontmgr = SkFontMgr_New_DirectWrite(factory);
+ blink::WebFontRendering::setSkiaFontManager(g_warmup_fontmgr);
}
return g_warmup_fontmgr;
}

Powered by Google App Engine
This is Rietveld 408576698