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

Unified Diff: gpu/command_buffer/client/gles2_c_lib_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, 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_c_lib_autogen.h
diff --git a/gpu/command_buffer/client/gles2_c_lib_autogen.h b/gpu/command_buffer/client/gles2_c_lib_autogen.h
index 84a57080614384c1eb52de25f102a3af2a66aed2..064aada24354522a8060cb4230be89c73d2268b2 100644
--- a/gpu/command_buffer/client/gles2_c_lib_autogen.h
+++ b/gpu/command_buffer/client/gles2_c_lib_autogen.h
@@ -259,6 +259,15 @@ void GLES2DrawElements(GLenum mode,
const void* indices) {
gles2::GetGLContext()->DrawElements(mode, count, type, indices);
}
+void GLES2DrawRangeElements(GLenum mode,
+ GLuint start,
+ GLuint end,
+ GLsizei count,
+ GLenum type,
+ const void* indices) {
+ gles2::GetGLContext()->DrawRangeElements(mode, start, end, count, type,
+ indices);
+}
void GLES2Enable(GLenum cap) {
gles2::GetGLContext()->Enable(cap);
}
@@ -1563,6 +1572,10 @@ extern const NameToFunc g_gles2_function_table[] = {
reinterpret_cast<GLES2FunctionPointer>(glDrawElements),
},
{
+ "glDrawRangeElements",
+ reinterpret_cast<GLES2FunctionPointer>(glDrawRangeElements),
+ },
+ {
"glEnable",
reinterpret_cast<GLES2FunctionPointer>(glEnable),
},

Powered by Google App Engine
This is Rietveld 408576698