Index: gpu/ipc/service/gpu_channel.h |
diff --git a/gpu/ipc/service/gpu_channel.h b/gpu/ipc/service/gpu_channel.h |
index bd583b2674eee5e835c66d2ab208dc059bd77cf3..9ca8e8986947d69fb457ffa6f80d878552f40080 100644 |
--- a/gpu/ipc/service/gpu_channel.h |
+++ b/gpu/ipc/service/gpu_channel.h |
@@ -86,6 +86,7 @@ class GPU_EXPORT GpuChannel : public IPC::Listener, public FilteredSender { |
GpuWatchdogThread* watchdog, |
scoped_refptr<gl::GLShareGroup> share_group, |
scoped_refptr<gles2::MailboxManager> mailbox_manager, |
+ scoped_refptr<ServiceDiscardableManager> discardable_manager, |
scoped_refptr<PreemptionFlag> preempting_flag, |
scoped_refptr<PreemptionFlag> preempted_flag, |
scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
@@ -155,6 +156,10 @@ class GPU_EXPORT GpuChannel : public IPC::Listener, public FilteredSender { |
gl::GLShareGroup* share_group() const { return share_group_.get(); } |
+ const scoped_refptr<ServiceDiscardableManager>& discardable_manager() const { |
+ return discardable_manager_; |
+ } |
+ |
GpuCommandBufferStub* LookupCommandBuffer(int32_t route_id); |
void LoseAllContexts(); |
@@ -264,6 +269,8 @@ class GPU_EXPORT GpuChannel : public IPC::Listener, public FilteredSender { |
GpuWatchdogThread* const watchdog_; |
+ scoped_refptr<ServiceDiscardableManager> discardable_manager_; |
+ |
const bool is_gpu_host_; |
// Member variables should appear before the WeakPtrFactory, to ensure that |