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

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

Issue 10510013: GPU: Adding sync points for cross-channel synchronization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: protected destructor Created 8 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
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 9fe1b268cf1ecbdc75f397fb0ca329f19df1a684..187e6f56320dd0c317a53b9892df3fb4e9d02a31 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -32,6 +32,7 @@ class ChildThread;
class GpuChannel;
class GpuWatchdog;
struct GPUCreateCommandBufferConfig;
+class SyncPointManager;
// A GpuChannelManager is a thread responsible for issuing rendering commands
// managing the lifetimes of GPU channels and forwarding IPC requests from the
@@ -78,6 +79,8 @@ class GpuChannelManager : public IPC::Channel::Listener,
GpuChannel* LookupChannel(int32 client_id);
+ SyncPointManager* sync_point_manager() { return sync_point_manager_; }
+
private:
// Message handlers.
void OnEstablishChannel(int client_id, bool share_context);
@@ -106,6 +109,7 @@ class GpuChannelManager : public IPC::Channel::Listener,
scoped_refptr<gfx::GLShareGroup> share_group_;
GpuMemoryManager gpu_memory_manager_;
GpuWatchdog* watchdog_;
+ scoped_refptr<SyncPointManager> sync_point_manager_;
DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
};

Powered by Google App Engine
This is Rietveld 408576698