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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1432123002: Switch to direct write font proxy and remove the font cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dwfontsplit
Patch Set: Move functions into anon namespace and minor renames. Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 #include "content/browser/android/child_process_launcher_android.h" 180 #include "content/browser/android/child_process_launcher_android.h"
181 #include "content/browser/media/android/browser_demuxer_android.h" 181 #include "content/browser/media/android/browser_demuxer_android.h"
182 #include "content/browser/mojo/service_registrar_android.h" 182 #include "content/browser/mojo/service_registrar_android.h"
183 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h" 183 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h"
184 #include "ipc/ipc_sync_channel.h" 184 #include "ipc/ipc_sync_channel.h"
185 #endif 185 #endif
186 186
187 #if defined(OS_WIN) 187 #if defined(OS_WIN)
188 #include "base/win/scoped_com_initializer.h" 188 #include "base/win/scoped_com_initializer.h"
189 #include "base/win/windows_version.h" 189 #include "base/win/windows_version.h"
190 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h"
190 #include "content/common/font_cache_dispatcher_win.h" 191 #include "content/common/font_cache_dispatcher_win.h"
191 #include "content/common/sandbox_win.h" 192 #include "content/common/sandbox_win.h"
192 #include "sandbox/win/src/sandbox_policy.h" 193 #include "sandbox/win/src/sandbox_policy.h"
193 #include "ui/gfx/win/dpi.h" 194 #include "ui/gfx/win/dpi.h"
194 #endif 195 #endif
195 196
196 #if defined(OS_MACOSX) && !defined(OS_IOS) 197 #if defined(OS_MACOSX) && !defined(OS_IOS)
197 #include "content/browser/bootstrap_sandbox_manager_mac.h" 198 #include "content/browser/bootstrap_sandbox_manager_mac.h"
198 #include "content/browser/browser_io_surface_manager_mac.h" 199 #include "content/browser/browser_io_surface_manager_mac.h"
199 #include "content/browser/mach_broker_mac.h" 200 #include "content/browser/mach_broker_mac.h"
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 storage_partition_impl_->GetFileSystemContext(), 929 storage_partition_impl_->GetFileSystemContext(),
929 ChromeBlobStorageContext::GetFor(browser_context), 930 ChromeBlobStorageContext::GetFor(browser_context),
930 StreamContext::GetFor(browser_context))); 931 StreamContext::GetFor(browser_context)));
931 AddFilter(new FileUtilitiesMessageFilter(GetID())); 932 AddFilter(new FileUtilitiesMessageFilter(GetID()));
932 AddFilter(new MimeRegistryMessageFilter()); 933 AddFilter(new MimeRegistryMessageFilter());
933 AddFilter( 934 AddFilter(
934 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); 935 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker()));
935 #if defined(OS_MACOSX) 936 #if defined(OS_MACOSX)
936 AddFilter(new TextInputClientMessageFilter(GetID())); 937 AddFilter(new TextInputClientMessageFilter(GetID()));
937 #elif defined(OS_WIN) 938 #elif defined(OS_WIN)
939 AddFilter(new DWriteFontProxyMessageFilter());
940
938 // The FontCacheDispatcher is required only when we're using GDI rendering. 941 // The FontCacheDispatcher is required only when we're using GDI rendering.
939 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache 942 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache
940 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This 943 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This
941 // should eventually be if (!ShouldUseDirectWrite()) guarded. 944 // should eventually be if (!ShouldUseDirectWrite()) guarded.
942 channel_->AddFilter(new FontCacheDispatcher()); 945 channel_->AddFilter(new FontCacheDispatcher());
943 #elif defined(OS_ANDROID) 946 #elif defined(OS_ANDROID)
944 browser_demuxer_android_ = new BrowserDemuxerAndroid(); 947 browser_demuxer_android_ = new BrowserDemuxerAndroid();
945 AddFilter(browser_demuxer_android_.get()); 948 AddFilter(browser_demuxer_android_.get());
946 #endif 949 #endif
947 #if defined(ENABLE_BROWSER_CDMS) 950 #if defined(ENABLE_BROWSER_CDMS)
(...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after
2656 void RenderProcessHostImpl::GetAudioOutputControllers( 2659 void RenderProcessHostImpl::GetAudioOutputControllers(
2657 const GetAudioOutputControllersCallback& callback) const { 2660 const GetAudioOutputControllersCallback& callback) const {
2658 audio_renderer_host()->GetOutputControllers(callback); 2661 audio_renderer_host()->GetOutputControllers(callback);
2659 } 2662 }
2660 2663
2661 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2664 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2662 return bluetooth_dispatcher_host_.get(); 2665 return bluetooth_dispatcher_host_.get();
2663 } 2666 }
2664 2667
2665 } // namespace content 2668 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698