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

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

Issue 209163002: Support DirectWrite with sandbox on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add todo 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
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 43929cb59401b5e1b3cdfa1965e80727037fc43d..4b7cbe8c83d17b8480fe2253f68897088efa7477 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -764,7 +764,9 @@ void RenderProcessHostImpl::CreateMessageFilters() {
#if defined(OS_MACOSX)
AddFilter(new TextInputClientMessageFilter(GetID()));
#elif defined(OS_WIN)
- channel_->AddFilter(new FontCacheDispatcher());
+ // The FontCacheDispatcher is required only when we're using GDI rendering.
+ if (!content::ShouldUseDirectWrite())
jam 2014/03/25 22:57:26 nit: no "content::"
scottmg 2014/03/25 23:38:18 Done.
+ channel_->AddFilter(new FontCacheDispatcher());
#elif defined(OS_ANDROID)
browser_demuxer_android_ = new BrowserDemuxerAndroid();
AddFilter(browser_demuxer_android_);
@@ -1223,7 +1225,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kChildCleanExit,
#endif
#if defined(OS_WIN)
- switches::kEnableDirectWrite,
switches::kEnableHighResolutionTime,
switches::kHighDPISupport,
#endif

Powered by Google App Engine
This is Rietveld 408576698