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

Unified Diff: chrome/browser/gpu_process_host.h

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 | « no previous file | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gpu_process_host.h
===================================================================
--- chrome/browser/gpu_process_host.h (revision 42644)
+++ chrome/browser/gpu_process_host.h (working copy)
@@ -13,6 +13,7 @@
#include "chrome/browser/child_process_launcher.h"
#include "chrome/common/gpu_native_window_handle.h"
#include "chrome/common/message_router.h"
+#include "gfx/native_widget_types.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_channel_proxy.h"
@@ -50,26 +51,20 @@
// Tells the GPU process to create a new channel for communication with a
// renderer. Will asynchronously send message to object with given routing id
// on completion.
- void EstablishGpuChannel(int renderer_id, int routing_id);
+ void EstablishGpuChannel(int renderer_id);
private:
friend struct DefaultSingletonTraits<GpuProcessHost>;
// Used to queue pending channel requests.
struct ChannelRequest {
- ChannelRequest(int renderer_id,
- int routing_id) :
- renderer_id(renderer_id),
- routing_id(routing_id) {}
+ explicit ChannelRequest(int renderer_id) : renderer_id(renderer_id) {}
// Used to identify the renderer. The ID is used instead of a pointer to
// the RenderProcessHost in case it is destroyed while the request is
// pending.
// TODO(apatrick): investigate whether these IDs are used for future
// render processes.
int renderer_id;
-
- // Routing ID of object to receive reply message.
- int routing_id;
};
GpuProcessHost();
@@ -81,7 +76,6 @@
void OnChannelEstablished(const IPC::ChannelHandle& channel_handle);
void ReplyToRenderer(int renderer_id,
- int routing_id,
const IPC::ChannelHandle& channel);
// These are the channel requests that we have already sent to
« no previous file with comments | « no previous file | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698