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

Unified Diff: chrome/browser/gpu_process_host.cc

Issue 1136006: Calling OpenGL from the renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gpu_process_host.h ('k') | chrome/browser/renderer_host/browser_render_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gpu_process_host.cc
===================================================================
--- chrome/browser/gpu_process_host.cc (revision 42644)
+++ chrome/browser/gpu_process_host.cc (working copy)
@@ -126,13 +126,11 @@
router_.RemoveRoute(routing_id);
}
-void GpuProcessHost::EstablishGpuChannel(
- int renderer_id,
- int routing_id) {
+void GpuProcessHost::EstablishGpuChannel(int renderer_id) {
if (Send(new GpuMsg_EstablishChannel(renderer_id)))
- sent_requests_.push(ChannelRequest(renderer_id, routing_id));
+ sent_requests_.push(ChannelRequest(renderer_id));
else
- ReplyToRenderer(renderer_id, routing_id, IPC::ChannelHandle());
+ ReplyToRenderer(renderer_id, IPC::ChannelHandle());
}
void GpuProcessHost::OnControlMessageReceived(const IPC::Message& message) {
@@ -146,21 +144,19 @@
const IPC::ChannelHandle& channel_handle) {
const ChannelRequest& request = sent_requests_.front();
- ReplyToRenderer(request.renderer_id, request.routing_id, channel_handle);
+ ReplyToRenderer(request.renderer_id, channel_handle);
sent_requests_.pop();
}
void GpuProcessHost::ReplyToRenderer(
int renderer_id,
- int routing_id,
const IPC::ChannelHandle& channel) {
// Check whether the renderer process is still around.
RenderProcessHost* process_host = RenderProcessHost::FromID(renderer_id);
if (!process_host)
return;
- CHECK(process_host->Send(new ViewMsg_GpuChannelEstablished(routing_id,
- channel)));
+ CHECK(process_host->Send(new ViewMsg_GpuChannelEstablished(channel)));
}
void GpuProcessHost::PropagateBrowserCommandLineToGpu(
« no previous file with comments | « chrome/browser/gpu_process_host.h ('k') | chrome/browser/renderer_host/browser_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698