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

Unified Diff: gpu/command_buffer/service/context_group.h

Issue 10106015: Allow textures to be moved from one GL context group to another. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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: gpu/command_buffer/service/context_group.h
===================================================================
--- gpu/command_buffer/service/context_group.h (revision 134729)
+++ gpu/command_buffer/service/context_group.h (working copy)
@@ -22,9 +22,10 @@
namespace gles2 {
+class BufferManager;
class GLES2Decoder;
-class BufferManager;
class FramebufferManager;
+class MailboxManager;
class RenderbufferManager;
class ProgramManager;
class ShaderManager;
@@ -37,7 +38,8 @@
public:
typedef scoped_refptr<ContextGroup> Ref;
- explicit ContextGroup(bool bind_generates_resource);
+ explicit ContextGroup(MailboxManager* mailbox_manager,
+ bool bind_generates_resource);
~ContextGroup();
// This should only be called by GLES2Decoder. This must be paired with a
@@ -49,6 +51,10 @@
// It should only be called by GLES2Decoder.
void Destroy(bool have_context);
+ MailboxManager* mailbox_manager() const {
+ return mailbox_manager_.get();
+ }
+
bool bind_generates_resource() {
return bind_generates_resource_;
}
@@ -117,6 +123,8 @@
bool QueryGLFeature(GLenum pname, GLint min_required, GLint* v);
bool QueryGLFeatureU(GLenum pname, GLint min_required, uint32* v);
+ scoped_refptr<MailboxManager> mailbox_manager_;
+
// Whether or not this context is initialized.
int num_contexts_;
bool enforce_gl_minimums_;
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698