diff options
Diffstat (limited to 'chromium/content/gpu/gpu_child_thread.h')
-rw-r--r-- | chromium/content/gpu/gpu_child_thread.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/content/gpu/gpu_child_thread.h b/chromium/content/gpu/gpu_child_thread.h index ff0c9258cd1..82bb32a67aa 100644 --- a/chromium/content/gpu/gpu_child_thread.h +++ b/chromium/content/gpu/gpu_child_thread.h @@ -56,6 +56,10 @@ class GpuChildThread : public ChildThread { virtual bool Send(IPC::Message* msg) OVERRIDE; virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; + GpuChannelManager* ChannelManager() const { return gpu_channel_manager_.get(); } + + static GpuChildThread* instance() { return instance_; } + private: // Message handlers. void OnInitialize(); @@ -94,6 +98,8 @@ class GpuChildThread : public ChildThread { // Whether the GPU thread is running in the browser process. bool in_browser_process_; + static GpuChildThread* instance_; + DISALLOW_COPY_AND_ASSIGN(GpuChildThread); }; |