Index: gpu/ipc/service/gpu_channel.cc |
diff --git a/gpu/ipc/service/gpu_channel.cc b/gpu/ipc/service/gpu_channel.cc |
index 1d67b33ae2d0022e75a54dbdefcb57551c25c2d9..1fcfa99e5792582bb77f3b2985747b33cfd3a92c 100644 |
--- a/gpu/ipc/service/gpu_channel.cc |
+++ b/gpu/ipc/service/gpu_channel.cc |
@@ -565,6 +565,7 @@ GpuChannel::GpuChannel( |
GpuWatchdogThread* watchdog, |
scoped_refptr<gl::GLShareGroup> share_group, |
scoped_refptr<gles2::MailboxManager> mailbox_manager, |
+ ServiceDiscardableManager* discardable_manager, |
scoped_refptr<PreemptionFlag> preempting_flag, |
scoped_refptr<PreemptionFlag> preempted_flag, |
scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
@@ -583,10 +584,12 @@ GpuChannel::GpuChannel( |
share_group_(share_group), |
mailbox_manager_(mailbox_manager), |
watchdog_(watchdog), |
+ discardable_manager_(std::move(discardable_manager)), |
is_gpu_host_(is_gpu_host), |
weak_factory_(this) { |
DCHECK(gpu_channel_manager); |
DCHECK(client_id); |
+ CHECK(discardable_manager_); |
message_queue_ = new GpuChannelMessageQueue(this, task_runner, io_task_runner, |
preempting_flag, preempted_flag, |