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

Unified Diff: chrome/renderer/gpu_channel_host.cc

Issue 6557006: Moved creation of GPU transfer buffers into the browser process.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/gpu_channel_host.cc
===================================================================
--- chrome/renderer/gpu_channel_host.cc (revision 75655)
+++ chrome/renderer/gpu_channel_host.cc (working copy)
@@ -17,7 +17,9 @@
GpuChannelHost::~GpuChannelHost() {
}
-void GpuChannelHost::Connect(const IPC::ChannelHandle& channel_handle) {
+void GpuChannelHost::Connect(
+ const IPC::ChannelHandle& channel_handle,
+ base::ProcessHandle gpu_renderer_process) {
// Open a channel to the GPU process.
channel_.reset(new IPC::SyncChannel(
channel_handle, IPC::Channel::MODE_CLIENT, this,
@@ -28,6 +30,10 @@
// and receives the hello message from the GPU process. The messages get
// cached.
state_ = kConnected;
+
+ // Notify the GPU process of out process handle. This gives it the ability
Ken Russell (switch to Gerrit) 2011/02/24 19:48:47 out -> our
+ // to map renderer handles into the GPU process.
+ Send(new GpuChannelMsg_Initialize(gpu_renderer_process));
}
void GpuChannelHost::set_gpu_info(const GPUInfo& gpu_info) {

Powered by Google App Engine
This is Rietveld 408576698