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

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

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/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 bd583b2674eee5e835c66d2ab208dc059bd77cf3..9ca8e8986947d69fb457ffa6f80d878552f40080 100644
--- a/gpu/ipc/service/gpu_channel.h
+++ b/gpu/ipc/service/gpu_channel.h
@@ -86,6 +86,7 @@ class GPU_EXPORT GpuChannel : public IPC::Listener, public FilteredSender {
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,
@@ -155,6 +156,10 @@ class GPU_EXPORT GpuChannel : public IPC::Listener, public FilteredSender {
gl::GLShareGroup* share_group() const { return share_group_.get(); }
+ const scoped_refptr<ServiceDiscardableManager>& discardable_manager() const {
+ return discardable_manager_;
+ }
+
GpuCommandBufferStub* LookupCommandBuffer(int32_t route_id);
void LoseAllContexts();
@@ -264,6 +269,8 @@ class GPU_EXPORT GpuChannel : public IPC::Listener, public FilteredSender {
GpuWatchdogThread* const watchdog_;
+ scoped_refptr<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