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

Unified Diff: content/common/gpu/client/gpu_channel_host.cc

Issue 10081018: Revert 132218 - Convert plugin and GPU process to brokered handle duplication. (Closed) Base URL: svn://svn.chromium.org/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 132251)
+++ content/common/gpu/client/gpu_channel_host.cc (working copy)
@@ -93,10 +93,10 @@
}
GpuChannelHost::GpuChannelHost(
- GpuChannelHostFactory* factory, int gpu_host_id, int client_id)
+ GpuChannelHostFactory* factory, int gpu_process_id, int client_id)
: factory_(factory),
+ gpu_process_id_(gpu_process_id),
client_id_(client_id),
- gpu_host_id_(gpu_host_id),
state_(kUnconnected) {
}
@@ -104,7 +104,8 @@
}
void GpuChannelHost::Connect(
- const IPC::ChannelHandle& channel_handle) {
+ const IPC::ChannelHandle& channel_handle,
+ base::ProcessHandle client_process_for_gpu) {
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.
@@ -129,6 +130,10 @@
// 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) {
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.h ('k') | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698