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

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

Issue 9958034: Convert plugin and GPU process to brokered handle duplication. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/gpu_message_filter.cc
===================================================================
--- content/browser/renderer_host/gpu_message_filter.cc (revision 132263)
+++ content/browser/renderer_host/gpu_message_filter.cc (working copy)
@@ -173,31 +173,11 @@
void GpuMessageFilter::EstablishChannelCallback(
IPC::Message* reply,
const IPC::ChannelHandle& channel,
- base::ProcessHandle gpu_process_for_browser,
const content::GPUInfo& gpu_info) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- base::ProcessHandle renderer_process_for_gpu;
- if (gpu_process_for_browser != 0) {
-#if defined(OS_WIN)
- // Create a process handle that the renderer process can give to the GPU
- // process to give it access to its handles.
- DuplicateHandle(base::GetCurrentProcessHandle(),
- peer_handle(),
- gpu_process_for_browser,
- &renderer_process_for_gpu,
- PROCESS_DUP_HANDLE,
- FALSE,
- 0);
-#else
- renderer_process_for_gpu = peer_handle();
-#endif
- } else {
- renderer_process_for_gpu = 0;
- }
-
GpuHostMsg_EstablishGpuChannel::WriteReplyParams(
- reply, render_process_id_, channel, renderer_process_for_gpu, gpu_info);
+ reply, render_process_id_, channel, gpu_info);
Send(reply);
}
« no previous file with comments | « content/browser/renderer_host/gpu_message_filter.h ('k') | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698