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

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

Issue 10441140: Make context groups share a TextureBufferManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index 7b9118f7007f7802f5ca930c9e9baa2600fbcb5a..bf7630892c7237102bcb36f674c3c614e8bba9fd 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -19,6 +19,7 @@
namespace gpu {
class IdAllocatorInterface;
+class TransferBufferManagerInterface;
namespace gles2 {
@@ -38,8 +39,9 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
public:
typedef scoped_refptr<ContextGroup> Ref;
- explicit ContextGroup(MailboxManager* mailbox_manager,
- bool bind_generates_resource);
+ ContextGroup(
+ MailboxManager* mailbox_manager,
+ bool bind_generates_resource);
// This should only be called by GLES2Decoder. This must be paired with a
// call to destroy if it succeeds.
@@ -114,6 +116,10 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
return shader_manager_.get();
}
+ TransferBufferManagerInterface* transfer_buffer_manager() const {
+ return transfer_buffer_manager_.get();
+ }
+
IdAllocatorInterface* GetIdAllocator(unsigned namespace_id);
private:
@@ -126,6 +132,7 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
bool QueryGLFeatureU(GLenum pname, GLint min_required, uint32* v);
scoped_refptr<MailboxManager> mailbox_manager_;
+ scoped_ptr<TransferBufferManagerInterface> transfer_buffer_manager_;
// Whether or not this context is initialized.
int num_contexts_;

Powered by Google App Engine
This is Rietveld 408576698