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

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

Issue 9619017: Fix context sharing between channels to be order-independent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/browser/renderer_host/gpu_message_filter.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 01b8b7c2ab4ae32de6e0543d8c52d6ddbc0926a0..9fe1b268cf1ecbdc75f397fb0ca329f19df1a684 100644
--- a/content/common/gpu/gpu_channel_manager.h
+++ b/content/common/gpu/gpu_channel_manager.h
@@ -20,6 +20,10 @@ namespace base {
class WaitableEvent;
}
+namespace gfx {
+class GLShareGroup;
+}
+
namespace IPC {
struct ChannelHandle;
}
@@ -76,7 +80,7 @@ class GpuChannelManager : public IPC::Channel::Listener,
private:
// Message handlers.
- void OnEstablishChannel(int client_id, int share_client_id);
+ void OnEstablishChannel(int client_id, bool share_context);
void OnCloseChannel(const IPC::ChannelHandle& channel_handle);
void OnVisibilityChanged(
int32 render_view_id, int32 client_id, bool visible);
@@ -99,6 +103,7 @@ class GpuChannelManager : public IPC::Channel::Listener,
// process.
typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap;
GpuChannelMap gpu_channels_;
+ scoped_refptr<gfx::GLShareGroup> share_group_;
GpuMemoryManager gpu_memory_manager_;
GpuWatchdog* watchdog_;
« no previous file with comments | « content/browser/renderer_host/gpu_message_filter.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698