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

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

Issue 954183006: Add glDrawRangeElements to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_cmd_helper_autogen.h
diff --git a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
index 4c1ad05620d57207372d337794c450e72a681651..f9c4e0f4f44c425d6bcf48205285e7709ea3f238 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -550,6 +550,19 @@ void DrawElements(GLenum mode,
}
}
+void DrawRangeElements(GLenum mode,
+ GLuint start,
+ GLuint end,
+ GLsizei count,
+ GLenum type,
+ GLuint index_offset) {
+ gles2::cmds::DrawRangeElements* c =
+ GetCmdSpace<gles2::cmds::DrawRangeElements>();
+ if (c) {
+ c->Init(mode, start, end, count, type, index_offset);
+ }
+}
+
void Enable(GLenum cap) {
gles2::cmds::Enable* c = GetCmdSpace<gles2::cmds::Enable>();
if (c) {

Powered by Google App Engine
This is Rietveld 408576698