| Index: gpu/command_buffer/client/gles2_implementation.h
|
| diff --git a/gpu/command_buffer/client/gles2_implementation.h b/gpu/command_buffer/client/gles2_implementation.h
|
| index a633dd6ab18b6446ff438351bf098c24c996747f..e8b367c4e04018797e5af11b90d8d59ec70584c3 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation.h
|
| +++ b/gpu/command_buffer/client/gles2_implementation.h
|
| @@ -18,6 +18,8 @@
|
| #include "../client/client_context_state.h"
|
| #include "../client/gles2_cmd_helper.h"
|
| #include "../client/gles2_interface.h"
|
| +#include "../client/gpu_memory_buffer_tracker.h"
|
| +#include "../client/image_factory.h"
|
| #include "../client/query_tracker.h"
|
| #include "../client/ref_counted.h"
|
| #include "../client/ring_buffer.h"
|
| @@ -102,6 +104,7 @@ class TransferBufferInterface;
|
|
|
| namespace gles2 {
|
|
|
| +class ImageFactory;
|
| class VertexArrayObjectManager;
|
|
|
| // This class emulates GLES2 over command buffers. It can be used by a client
|
| @@ -174,7 +177,8 @@ class GLES2_IMPL_EXPORT GLES2Implementation : public GLES2Interface {
|
| ShareGroup* share_group,
|
| TransferBufferInterface* transfer_buffer,
|
| bool share_resources,
|
| - bool bind_generates_resource);
|
| + bool bind_generates_resource,
|
| + ImageFactory* image_factory);
|
|
|
| virtual ~GLES2Implementation();
|
|
|
| @@ -496,6 +500,14 @@ class GLES2_IMPL_EXPORT GLES2Implementation : public GLES2Interface {
|
| GLenum target, GLintptr offset, GLsizeiptr size, const void* data,
|
| ScopedTransferBufferPtr* buffer);
|
|
|
| + GLuint CreateImageCHROMIUMHelper(
|
| + GLsizei width, GLsizei height, GLenum internalformat);
|
| + void DestroyImageCHROMIUMHelper(GLuint image_id);
|
| + void* MapImageCHROMIUMHelper(GLuint image_id, GLenum access);
|
| + void UnmapImageCHROMIUMHelper(GLuint image_id);
|
| + void GetImageParameterivCHROMIUMHelper(
|
| + GLuint image_id, GLenum pname, GLint* params);
|
| +
|
| // Helper for GetVertexAttrib
|
| bool GetVertexAttribHelper(GLuint index, GLenum pname, uint32* param);
|
|
|
| @@ -654,10 +666,14 @@ class GLES2_IMPL_EXPORT GLES2Implementation : public GLES2Interface {
|
|
|
| scoped_ptr<BufferTracker> buffer_tracker_;
|
|
|
| + scoped_ptr<GpuMemoryBufferTracker> gpu_memory_buffer_tracker_;
|
| +
|
| ErrorMessageCallback* error_message_callback_;
|
|
|
| scoped_ptr<std::string> current_trace_name_;
|
|
|
| + ImageFactory* image_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(GLES2Implementation);
|
| };
|
|
|
|
|