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

Unified Diff: ppapi/lib/gl/gles2/gles2.c

Issue 397183002: Add PPAPI interface for OpenGL ES 2.0 Vertex Array Objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: ppapi/lib/gl/gles2/gles2.c
diff --git a/ppapi/lib/gl/gles2/gles2.c b/ppapi/lib/gl/gles2/gles2.c
index 60922cd722cfc4335f0e8882297ef2b76c5bed8c..ca0e513a8db204add278fe021ce5069ff2a29e42 100644
--- a/ppapi/lib/gl/gles2/gles2.c
+++ b/ppapi/lib/gl/gles2/gles2.c
@@ -967,6 +967,31 @@ glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) {
ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params);
}
+void GL_APIENTRY glGenVertexArraysOES(GLsizei n, GLuint* arrays) {
+ const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI();
+ if (ext)
+ ext->GenVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays);
+}
+
+void GL_APIENTRY glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
+ const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI();
+ if (ext)
+ ext->DeleteVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays);
+}
+
+GLboolean GL_APIENTRY glIsVertexArrayOES(GLuint array) {
+ const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI();
+ if (ext)
+ return ext->IsVertexArrayOES(glGetCurrentContextPPAPI(), array);
+ return 0;
+}
+
+void GL_APIENTRY glBindVertexArrayOES(GLuint array) {
+ const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI();
+ if (ext)
+ ext->BindVertexArrayOES(glGetCurrentContextPPAPI(), array);
+}
+
GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) {
const struct PPB_OpenGLES2ChromiumEnableFeature* ext =
glGetChromiumEnableFeatureInterfacePPAPI();

Powered by Google App Engine
This is Rietveld 408576698