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

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

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove forward decl/includes Created 5 years, 5 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 733081b4b45e4d555bd60e8fa5665d09b8372211..2bbca8b9d88425921727d68cacc60e1f1856770e 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -68,6 +68,7 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
base::WaitableEvent* shutdown_event,
IPC::SyncChannel* channel,
IPC::AttachmentBroker* broker,
+ gpu::SyncPointManager* sync_point_manager,
GpuMemoryBufferFactory* gpu_memory_buffer_factory);
~GpuChannelManager() override;
@@ -97,7 +98,7 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
GpuChannel* LookupChannel(int32 client_id);
gpu::SyncPointManager* sync_point_manager() {
- return sync_point_manager_.get();
+ return sync_point_manager_;
}
gfx::GLSurface* GetDefaultOffscreenSurface();
@@ -153,7 +154,8 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener,
scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
GpuMemoryManager gpu_memory_manager_;
GpuWatchdog* watchdog_;
- scoped_refptr<gpu::SyncPointManager> sync_point_manager_;
+ // SyncPointManager guaranteed to outlive running MessageLoop.
+ gpu::SyncPointManager* sync_point_manager_;
scoped_ptr<gpu::gles2::ProgramCache> program_cache_;
scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
scoped_refptr<gfx::GLSurface> default_offscreen_surface_;
« 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