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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 132113015: IPC interface for font management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Match final interface and cleanup usage. 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
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_);

Powered by Google App Engine
This is Rietveld 408576698