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

Unified Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 years, 9 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/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_;
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698