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

Unified Diff: content/common/gpu/gpu_channel_manager.h

Issue 1184523003: attachment broker wip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor comments. Created 5 years, 6 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 | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_manager.h
diff --git a/content/common/gpu/gpu_channel_manager.h b/content/common/gpu/gpu_channel_manager.h
index a15a8adbb784bbb121f0d59643c847675a2a04e1..229642759150fe69579784d105bf0a23456b6ecb 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -43,6 +43,7 @@ class ShaderTranslatorCache;
}
namespace IPC {
+class AttachmentBroker;
struct ChannelHandle;
class SyncChannel;
class MessageFilter;
@@ -66,7 +67,8 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
GpuWatchdog* watchdog,
base::SingleThreadTaskRunner* io_task_runner,
base::WaitableEvent* shutdown_event,
- IPC::SyncChannel* channel);
+ IPC::SyncChannel* channel,
+ IPC::AttachmentBroker* broker);
~GpuChannelManager() override;
// Remove the channel for a particular renderer.
@@ -159,6 +161,8 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
IPC::SyncChannel* channel_;
scoped_refptr<IPC::MessageFilter> filter_;
bool relinquish_resources_pending_;
+ // Must outlive this instance of GpuChannelManager.
+ IPC::AttachmentBroker* attachment_broker_;
// Member variables should appear before the WeakPtrFactory, to ensure
// that any WeakPtrs to Controller are invalidated before its members
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698