Index: content/browser/renderer_host/render_process_host_impl.cc |
=================================================================== |
--- content/browser/renderer_host/render_process_host_impl.cc (revision 258275) |
+++ content/browser/renderer_host/render_process_host_impl.cc (working copy) |
@@ -71,6 +71,7 @@ |
#include "content/browser/renderer_host/clipboard_message_filter.h" |
#include "content/browser/renderer_host/database_message_filter.h" |
#include "content/browser/renderer_host/file_utilities_message_filter.h" |
+#include "content/browser/renderer_host/fontmgr_message_filter.h" |
#include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
#include "content/browser/renderer_host/gpu_message_filter.h" |
#include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
@@ -151,6 +152,9 @@ |
#include "base/win/scoped_com_initializer.h" |
#include "content/common/font_cache_dispatcher_win.h" |
#include "content/common/sandbox_win.h" |
+#include "skia/ext/refptr.h" |
+#include "third_party/skia/include/ports/SkRemotableFontMgr.h" |
+#include "third_party/skia/include/ports/SkTypeface_win.h" |
#endif |
#if defined(ENABLE_WEBRTC) |
@@ -765,6 +769,11 @@ |
AddFilter(new TextInputClientMessageFilter(GetID())); |
#elif defined(OS_WIN) |
channel_->AddFilter(new FontCacheDispatcher()); |
+ skia::RefPtr<SkRemotableFontMgr> dw_remotable_fontmgr = |
+ skia::AdoptRef(SkRemotableFontMgr_New_DirectWrite()); |
+ if (dw_remotable_fontmgr) { |
+ AddFilter(new content::FontMgrMessageFilter(dw_remotable_fontmgr)); |
+ } |
#elif defined(OS_ANDROID) |
browser_demuxer_android_ = new BrowserDemuxerAndroid(); |
AddFilter(browser_demuxer_android_); |