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

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

Issue 1711533002: Decouple browser-specific GPU IPC messages from GPU service IPCs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a couple of missings sends in GpuChildThread Created 4 years, 10 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 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 #include "content/browser/shared_worker/worker_storage_partition.h" 113 #include "content/browser/shared_worker/worker_storage_partition.h"
114 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 114 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
115 #include "content/browser/storage_partition_impl.h" 115 #include "content/browser/storage_partition_impl.h"
116 #include "content/browser/streams/stream_context.h" 116 #include "content/browser/streams/stream_context.h"
117 #include "content/browser/tracing/trace_message_filter.h" 117 #include "content/browser/tracing/trace_message_filter.h"
118 #include "content/browser/webui/web_ui_controller_factory_registry.h" 118 #include "content/browser/webui/web_ui_controller_factory_registry.h"
119 #include "content/common/child_process_host_impl.h" 119 #include "content/common/child_process_host_impl.h"
120 #include "content/common/child_process_messages.h" 120 #include "content/common/child_process_messages.h"
121 #include "content/common/content_switches_internal.h" 121 #include "content/common/content_switches_internal.h"
122 #include "content/common/frame_messages.h" 122 #include "content/common/frame_messages.h"
123 #include "content/common/gpu/gpu_messages.h" 123 #include "content/common/gpu/gpu_browser_messages.h"
124 #include "content/common/in_process_child_thread_params.h" 124 #include "content/common/in_process_child_thread_params.h"
125 #include "content/common/mojo/channel_init.h" 125 #include "content/common/mojo/channel_init.h"
126 #include "content/common/mojo/mojo_messages.h" 126 #include "content/common/mojo/mojo_messages.h"
127 #include "content/common/render_process_messages.h" 127 #include "content/common/render_process_messages.h"
128 #include "content/common/resource_messages.h" 128 #include "content/common/resource_messages.h"
129 #include "content/common/site_isolation_policy.h" 129 #include "content/common/site_isolation_policy.h"
130 #include "content/common/view_messages.h" 130 #include "content/common/view_messages.h"
131 #include "content/public/browser/browser_context.h" 131 #include "content/public/browser/browser_context.h"
132 #include "content/public/browser/content_browser_client.h" 132 #include "content/public/browser/content_browser_client.h"
133 #include "content/public/browser/navigator_connect_context.h" 133 #include "content/public/browser/navigator_connect_context.h"
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 1139
1140 void RenderProcessHostImpl::OnRemoveSubscription(unsigned int target) { 1140 void RenderProcessHostImpl::OnRemoveSubscription(unsigned int target) {
1141 DCHECK(subscribe_uniform_enabled_); 1141 DCHECK(subscribe_uniform_enabled_);
1142 subscription_set_.erase(target); 1142 subscription_set_.erase(target);
1143 } 1143 }
1144 1144
1145 void RenderProcessHostImpl::SendUpdateValueState(unsigned int target, 1145 void RenderProcessHostImpl::SendUpdateValueState(unsigned int target,
1146 const gpu::ValueState& state) { 1146 const gpu::ValueState& state) {
1147 DCHECK(subscribe_uniform_enabled_); 1147 DCHECK(subscribe_uniform_enabled_);
1148 if (subscription_set_.find(target) != subscription_set_.end()) { 1148 if (subscription_set_.find(target) != subscription_set_.end()) {
1149 GpuProcessHost::SendOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, 1149 GpuProcessHost::SendOnIO(
1150 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, 1150 GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
1151 new GpuMsg_UpdateValueState(id_, target, state)); 1151 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH,
1152 new GpuBrowserMsg_UpdateValueState(id_, target, state));
1152 } else { 1153 } else {
1153 // Store the ValueState locally in case a Valuebuffer subscribes to it later 1154 // Store the ValueState locally in case a Valuebuffer subscribes to it later
1154 pending_valuebuffer_state_->UpdateState(target, state); 1155 pending_valuebuffer_state_->UpdateState(target, state);
1155 } 1156 }
1156 } 1157 }
1157 1158
1158 #if defined(ENABLE_BROWSER_CDMS) 1159 #if defined(ENABLE_BROWSER_CDMS)
1159 scoped_refptr<media::MediaKeys> RenderProcessHostImpl::GetCdm( 1160 scoped_refptr<media::MediaKeys> RenderProcessHostImpl::GetCdm(
1160 int render_frame_id, 1161 int render_frame_id,
1161 int cdm_id) const { 1162 int cdm_id) const {
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 void RenderProcessHostImpl::GetAudioOutputControllers( 2790 void RenderProcessHostImpl::GetAudioOutputControllers(
2790 const GetAudioOutputControllersCallback& callback) const { 2791 const GetAudioOutputControllersCallback& callback) const {
2791 audio_renderer_host()->GetOutputControllers(callback); 2792 audio_renderer_host()->GetOutputControllers(callback);
2792 } 2793 }
2793 2794
2794 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2795 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2795 return bluetooth_dispatcher_host_.get(); 2796 return bluetooth_dispatcher_host_.get();
2796 } 2797 }
2797 2798
2798 } // namespace content 2799 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698