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

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

Issue 2814583002: Service/ClientDiscardableManager (Closed)
Patch Set: rebase 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
« 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 87d50e6b3eee45d020d02d1e97bd1fc1157243bf..0c5e08692085b1a40c3613e0949b0e75f1d308af 100644
--- a/gpu/ipc/service/gpu_channel.cc
+++ b/gpu/ipc/service/gpu_channel.cc
@@ -758,6 +758,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,
@@ -777,10 +778,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_);
+ DCHECK(discardable_manager_);
if (!scheduler_) {
message_queue_ = new GpuChannelMessageQueue(
« 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