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

Unified Diff: content/common/gpu/client/gpu_channel_host.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/common/gpu/client/gpu_channel_host.cc
===================================================================
--- content/common/gpu/client/gpu_channel_host.cc (revision 131361)
+++ content/common/gpu/client/gpu_channel_host.cc (working copy)
@@ -93,9 +93,8 @@
}
GpuChannelHost::GpuChannelHost(
- GpuChannelHostFactory* factory, int gpu_process_id, int client_id)
+ GpuChannelHostFactory* factory, int client_id)
: factory_(factory),
- gpu_process_id_(gpu_process_id),
client_id_(client_id),
state_(kUnconnected) {
}
@@ -104,8 +103,7 @@
}
void GpuChannelHost::Connect(
- const IPC::ChannelHandle& channel_handle,
- base::ProcessHandle client_process_for_gpu) {
+ const IPC::ChannelHandle& channel_handle) {
DCHECK(factory_->IsMainThread());
// Open a channel to the GPU process. We pass NULL as the main listener here
// since we need to filter everything to route it to the right thread.
@@ -130,10 +128,6 @@
// and receives the hello message from the GPU process. The messages get
// cached.
state_ = kConnected;
-
- // Notify the GPU process of our process handle. This gives it the ability
- // to map client handles into the GPU process.
- Send(new GpuChannelMsg_Initialize(client_process_for_gpu));
}
void GpuChannelHost::set_gpu_info(const content::GPUInfo& gpu_info) {

Powered by Google App Engine
This is Rietveld 408576698