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

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

Issue 1210703002: content: Make sure all CreateGpuMemoryBuffer messages are handled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid use of g_thread_safe_sender 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 | « no previous file | 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 05092402d1fba0eb7e00fcdd9544444c2295a769..733081b4b45e4d555bd60e8fa5665d09b8372211 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -29,7 +29,6 @@ class WaitableEvent;
namespace gfx {
class GLShareGroup;
-struct GpuMemoryBufferHandle;
}
namespace gpu {
@@ -46,7 +45,6 @@ namespace IPC {
class AttachmentBroker;
struct ChannelHandle;
class SyncChannel;
-class MessageFilter;
}
struct GPUCreateCommandBufferConfig;
@@ -69,7 +67,8 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
base::SingleThreadTaskRunner* io_task_runner,
base::WaitableEvent* shutdown_event,
IPC::SyncChannel* channel,
- IPC::AttachmentBroker* broker);
+ IPC::AttachmentBroker* broker,
+ GpuMemoryBufferFactory* gpu_memory_buffer_factory);
~GpuChannelManager() override;
// Remove the channel for a particular renderer.
@@ -104,7 +103,7 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
gfx::GLSurface* GetDefaultOffscreenSurface();
GpuMemoryBufferFactory* gpu_memory_buffer_factory() {
- return gpu_memory_buffer_factory_.get();
+ return gpu_memory_buffer_factory_;
}
private:
@@ -158,9 +157,8 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
scoped_ptr<gpu::gles2::ProgramCache> program_cache_;
scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
scoped_refptr<gfx::GLSurface> default_offscreen_surface_;
- scoped_ptr<GpuMemoryBufferFactory> gpu_memory_buffer_factory_;
+ GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
IPC::SyncChannel* channel_;
- scoped_refptr<IPC::MessageFilter> filter_;
bool relinquish_resources_pending_;
// Must outlive this instance of GpuChannelManager.
IPC::AttachmentBroker* attachment_broker_;
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698