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

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

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/in_process_command_buffer.cc ('k') | gpu/ipc/service/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel.h
diff --git a/gpu/ipc/service/gpu_channel.h b/gpu/ipc/service/gpu_channel.h
index c608a3c1834e90c38f8a1bb7f8d38af856065e16..0c47dd180899da34ced39e85138306987c709987 100644
--- a/gpu/ipc/service/gpu_channel.h
+++ b/gpu/ipc/service/gpu_channel.h
@@ -87,6 +87,7 @@ class GPU_EXPORT GpuChannel : public IPC::Listener, public FilteredSender {
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,
@@ -154,6 +155,10 @@ class GPU_EXPORT GpuChannel : public IPC::Listener, public FilteredSender {
gl::GLShareGroup* share_group() const { return share_group_.get(); }
+ ServiceDiscardableManager* discardable_manager() const {
+ return discardable_manager_;
+ }
+
GpuCommandBufferStub* LookupCommandBuffer(int32_t route_id);
void LoseAllContexts();
@@ -272,6 +277,8 @@ class GPU_EXPORT GpuChannel : public IPC::Listener, public FilteredSender {
GpuWatchdogThread* const watchdog_;
+ ServiceDiscardableManager* discardable_manager_;
+
const bool is_gpu_host_;
// Member variables should appear before the WeakPtrFactory, to ensure that
« no previous file with comments | « gpu/ipc/in_process_command_buffer.cc ('k') | gpu/ipc/service/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698