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

Unified Diff: content/common/gpu/gpu_channel.h

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/gpu_channel.h
===================================================================
--- content/common/gpu/gpu_channel.h (revision 132263)
+++ content/common/gpu/gpu_channel.h (working copy)
@@ -62,14 +62,11 @@
int TakeRendererFileDescriptor();
#endif // defined(OS_POSIX)
- base::ProcessHandle renderer_process() const {
- return renderer_process_;
- }
+ base::ProcessId renderer_pid() const { return channel_->peer_pid(); }
// IPC::Channel::Listener implementation:
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
virtual void OnChannelError() OVERRIDE;
- virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
// IPC::Message::Sender implementation:
virtual bool Send(IPC::Message* msg) OVERRIDE;
@@ -119,7 +116,6 @@
void ScheduleDelayedWork(GpuCommandBufferStub *stub, int64 delay);
// Message handlers.
- void OnInitialize(base::ProcessHandle renderer_process);
void OnCreateOffscreenCommandBuffer(
const gfx::Size& size,
const GPUCreateCommandBufferConfig& init_params,
@@ -149,12 +145,6 @@
// Uniquely identifies the channel within this GPU process.
std::string channel_id_;
- // Handle to the renderer process that is on the other side of the channel.
- base::ProcessHandle renderer_process_;
-
- // The process id of the renderer process.
- base::ProcessId renderer_pid_;
-
// Used to implement message routing functionality to CommandBuffer objects
MessageRouter router_;
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698