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

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

Issue 1703163002: Remove dependency on GURL from content/common/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary include from gpu_command_buffer_stub Created 4 years, 10 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
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 dbda9b4f5ac762d1df8c2b743075f16d6e742d0a..28b62b87978a6e61c42ba77309526e78881d3e60 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -58,6 +58,7 @@ struct GPUCreateCommandBufferConfig;
struct GpuMsg_EstablishChannel_Params;
namespace content {
+class GpuChannelManagerDelegate;
class GpuChannel;
class GpuMemoryBufferFactory;
class GpuWatchdog;
@@ -68,7 +69,8 @@ class GpuWatchdog;
class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
public IPC::Sender {
public:
- GpuChannelManager(IPC::SyncChannel* channel,
+ GpuChannelManager(GpuChannelManagerDelegate* delegate,
+ IPC::SyncChannel* channel,
GpuWatchdog* watchdog,
base::SingleThreadTaskRunner* task_runner,
base::SingleThreadTaskRunner* io_task_runner,
@@ -77,6 +79,9 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
GpuMemoryBufferFactory* gpu_memory_buffer_factory);
~GpuChannelManager() override;
+ GpuChannelManagerDelegate* delegate() { return delegate_; }
+ const GpuChannelManagerDelegate* delegate() const { return delegate_; }
+
// Remove the channel for a particular renderer.
void RemoveChannel(int client_id);
@@ -171,6 +176,8 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
#endif
void OnLoseAllContexts();
+ GpuChannelManagerDelegate* const delegate_;
+
// Used to send and receive IPC messages from the browser process.
IPC::SyncChannel* const channel_;
IPC::MessageRouter router_;
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698