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

Unified Diff: ui/gl/gl_bindings_autogen_mock.cc

Issue 1822643002: [Command buffer] Enable primitive restart for WebGL 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix coding style and update webgl2_conformance_expectations.py Created 4 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
« no previous file with comments | « ui/gl/gl_bindings_autogen_mock.h ('k') | ui/gl/gl_mock_autogen_gl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_bindings_autogen_mock.cc
diff --git a/ui/gl/gl_bindings_autogen_mock.cc b/ui/gl/gl_bindings_autogen_mock.cc
index 2bb8516fc30b305ac55ade13da1b9b274627fd9f..d813760c01dd37f7d22b946741a7d3ba06d191b3 100644
--- a/ui/gl/gl_bindings_autogen_mock.cc
+++ b/ui/gl/gl_bindings_autogen_mock.cc
@@ -1986,6 +1986,12 @@ void GL_BINDING_CALL MockGLInterface::Mock_glPopGroupMarkerEXT(void) {
interface_->PopGroupMarkerEXT();
}
+void GL_BINDING_CALL
+MockGLInterface::Mock_glPrimitiveRestartIndex(GLuint index) {
+ MakeFunctionUnique("glPrimitiveRestartIndex");
+ interface_->PrimitiveRestartIndex(index);
+}
+
void GL_BINDING_CALL MockGLInterface::Mock_glProgramBinary(GLuint program,
GLenum binaryFormat,
const GLvoid* binary,
@@ -3442,6 +3448,8 @@ void* GL_BINDING_CALL MockGLInterface::GetGLProcAddress(const char* name) {
return reinterpret_cast<void*>(Mock_glPolygonOffset);
if (strcmp(name, "glPopGroupMarkerEXT") == 0)
return reinterpret_cast<void*>(Mock_glPopGroupMarkerEXT);
+ if (strcmp(name, "glPrimitiveRestartIndex") == 0)
+ return reinterpret_cast<void*>(Mock_glPrimitiveRestartIndex);
if (strcmp(name, "glProgramBinary") == 0)
return reinterpret_cast<void*>(Mock_glProgramBinary);
if (strcmp(name, "glProgramBinaryOES") == 0)
« no previous file with comments | « ui/gl/gl_bindings_autogen_mock.h ('k') | ui/gl/gl_mock_autogen_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698