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 1ffdf9100e8928204e1091bddab47163b9347c7e..39b587021a320cc22c05072265561eee72bec689 100644 |
--- a/gpu/command_buffer/client/gles2_implementation.h |
+++ b/gpu/command_buffer/client/gles2_implementation.h |
@@ -560,6 +560,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation |
// Helpers for query functions. |
bool GetHelper(GLenum pname, GLint* params); |
+ GLuint GetBoundBufferHelper(GLenum target); |
bool GetBooleanvHelper(GLenum pname, GLboolean* params); |
bool GetBufferParameterivHelper(GLenum target, GLenum pname, GLint* params); |
bool GetFloatvHelper(GLenum pname, GLfloat* params); |
@@ -659,6 +660,13 @@ class GLES2_IMPL_EXPORT GLES2Implementation |
void FailGLError(GLenum /* error */) { } |
#endif |
+ void RemoveMappedBufferRangeByTarget(GLenum target); |
+ void RemoveMappedBufferRangeById(GLuint buffer); |
+ void ClearMappedBufferRangeMap(); |
+ |
+ void DrawElementsImpl(GLenum mode, GLsizei count, GLenum type, |
+ const void* indices, const char* func_name); |
+ |
GLES2Util util_; |
GLES2CmdHelper* helper_; |
TransferBufferInterface* transfer_buffer_; |
@@ -767,6 +775,10 @@ class GLES2_IMPL_EXPORT GLES2Implementation |
typedef std::map<const void*, MappedBuffer> MappedBufferMap; |
MappedBufferMap mapped_buffers_; |
+ // TODO(zmo): Consolidate |mapped_buffers_| and |mapped_buffer_range_map_|. |
+ typedef base::hash_map<GLuint, MappedBuffer> MappedBufferRangeMap; |
+ MappedBufferRangeMap mapped_buffer_range_map_; |
+ |
typedef std::map<const void*, MappedTexture> MappedTextureMap; |
MappedTextureMap mapped_textures_; |