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

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

Issue 1823763003: Move more files to gpu/ipc/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Android Build Created 4 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 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 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 void RenderProcessHostImpl::OnRemoveSubscription(unsigned int target) { 1155 void RenderProcessHostImpl::OnRemoveSubscription(unsigned int target) {
1156 DCHECK(subscribe_uniform_enabled_); 1156 DCHECK(subscribe_uniform_enabled_);
1157 subscription_set_.erase(target); 1157 subscription_set_.erase(target);
1158 } 1158 }
1159 1159
1160 void RenderProcessHostImpl::SendUpdateValueState(unsigned int target, 1160 void RenderProcessHostImpl::SendUpdateValueState(unsigned int target,
1161 const gpu::ValueState& state) { 1161 const gpu::ValueState& state) {
1162 DCHECK(subscribe_uniform_enabled_); 1162 DCHECK(subscribe_uniform_enabled_);
1163 if (subscription_set_.find(target) != subscription_set_.end()) { 1163 if (subscription_set_.find(target) != subscription_set_.end()) {
1164 GpuProcessHost::SendOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, 1164 GpuProcessHost::SendOnIO(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED,
1165 CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, 1165 gpu::CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH,
1166 new GpuMsg_UpdateValueState(id_, target, state)); 1166 new GpuMsg_UpdateValueState(id_, target, state));
1167 } else { 1167 } else {
1168 // Store the ValueState locally in case a Valuebuffer subscribes to it later 1168 // Store the ValueState locally in case a Valuebuffer subscribes to it later
1169 pending_valuebuffer_state_->UpdateState(target, state); 1169 pending_valuebuffer_state_->UpdateState(target, state);
1170 } 1170 }
1171 } 1171 }
1172 1172
1173 #if defined(ENABLE_BROWSER_CDMS) 1173 #if defined(ENABLE_BROWSER_CDMS)
1174 scoped_refptr<media::MediaKeys> RenderProcessHostImpl::GetCdm( 1174 scoped_refptr<media::MediaKeys> RenderProcessHostImpl::GetCdm(
1175 int render_frame_id, 1175 int render_frame_id,
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
2815 2815
2816 // Skip widgets in other processes. 2816 // Skip widgets in other processes.
2817 if (rvh->GetProcess()->GetID() != GetID()) 2817 if (rvh->GetProcess()->GetID() != GetID())
2818 continue; 2818 continue;
2819 2819
2820 rvh->OnWebkitPreferencesChanged(); 2820 rvh->OnWebkitPreferencesChanged();
2821 } 2821 }
2822 } 2822 }
2823 2823
2824 } // namespace content 2824 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698