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

Unified Diff: gpu/ipc/service/gpu_channel.cc

Issue 2814583002: Service/ClientDiscardableManager (Closed)
Patch Set: Feedback Created 3 years, 7 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: 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,

Powered by Google App Engine
This is Rietveld 408576698