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

Unified Diff: mojo/services/gles2/command_buffer_impl.h

Issue 451753003: Mojo multiple command buffer support and sample (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: mojo/services/gles2/command_buffer_impl.h
diff --git a/mojo/services/gles2/command_buffer_impl.h b/mojo/services/gles2/command_buffer_impl.h
index fc79c5f0d4c2f63d17cecd49ead02fb40b3ce0d0..4dde3a3004bd6613f45e88743e9b2f7d3d86ffe7 100644
--- a/mojo/services/gles2/command_buffer_impl.h
+++ b/mojo/services/gles2/command_buffer_impl.h
@@ -18,10 +18,13 @@ class GpuScheduler;
class GpuControlService;
namespace gles2 {
class GLES2Decoder;
+class MailboxManager;
}
}
namespace gfx {
+class GLContext;
+class GLShareGroup;
class GLSurface;
}
@@ -30,8 +33,14 @@ namespace services {
class CommandBufferImpl : public InterfaceImpl<CommandBuffer> {
public:
+ // Offscreen.
+ CommandBufferImpl(gfx::GLShareGroup* share_group,
+ gpu::gles2::MailboxManager* mailbox_manager);
+ // Onscreen.
CommandBufferImpl(gfx::AcceleratedWidget widget,
- const gfx::Size& size);
+ const gfx::Size& size,
+ gfx::GLShareGroup* share_group,
+ gpu::gles2::MailboxManager* mailbox_manager);
virtual ~CommandBufferImpl();
virtual void Initialize(CommandBufferSyncClientPtr sync_client,
@@ -60,7 +69,10 @@ class CommandBufferImpl : public InterfaceImpl<CommandBuffer> {
scoped_ptr<gpu::CommandBufferService> command_buffer_;
scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;
scoped_ptr<gpu::GpuScheduler> scheduler_;
+ scoped_refptr<gfx::GLContext> context_;
scoped_refptr<gfx::GLSurface> surface_;
+ scoped_refptr<gfx::GLShareGroup> share_group_;
+ scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl);
};

Powered by Google App Engine
This is Rietveld 408576698