Index: gpu/command_buffer/tests/gl_manager.h |
=================================================================== |
--- gpu/command_buffer/tests/gl_manager.h (revision 133771) |
+++ gpu/command_buffer/tests/gl_manager.h (working copy) |
@@ -25,6 +25,7 @@ |
namespace gles2 { |
+class MailboxManager; |
class GLES2Decoder; |
class GLES2CmdHelper; |
class GLES2Implementation; |
@@ -33,7 +34,8 @@ |
class GLManager { |
public: |
- GLManager(); |
+ GLManager(gles2::MailboxManager* mailbox_manager, |
+ gfx::GLShareGroup* share_group); |
~GLManager(); |
void Initialize(const gfx::Size& size); |
@@ -41,10 +43,19 @@ |
void MakeCurrent(); |
+ gles2::MailboxManager* mailbox_manager() const { |
+ return mailbox_manager_.get(); |
+ } |
+ |
+ gfx::GLShareGroup* share_group() const { |
+ return share_group_.get(); |
+ } |
+ |
private: |
void PumpCommands(); |
bool GetBufferChanged(int32 transfer_buffer_id); |
+ scoped_refptr<gles2::MailboxManager> mailbox_manager_; |
scoped_refptr<gfx::GLShareGroup> share_group_; |
scoped_ptr<CommandBufferService> command_buffer_; |
scoped_ptr<gles2::GLES2Decoder> decoder_; |