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

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

Issue 2818993002: GL Implementation for GPU Discardable
Patch Set: rebase Created 3 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
« no previous file with comments | « gpu/ipc/service/gpu_channel.h ('k') | gpu/ipc/service/gpu_channel_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1a83dc9a6e4e17c8160210d2dcb8500652702a8f 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,
+ scoped_refptr<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,
« no previous file with comments | « gpu/ipc/service/gpu_channel.h ('k') | gpu/ipc/service/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698