Chromium Code Reviews| 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 |