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

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: Rebase 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
« no previous file with comments | « ppapi/lib/gl/gles2/gl2ext_ppapi.c ('k') | ppapi/proxy/interface_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..faefb0958e0f416c19e650ab1f5f6c0172ec07e9 100644
--- a/ppapi/lib/gl/gles2/gles2.c
+++ b/ppapi/lib/gl/gles2/gles2.c
@@ -967,6 +967,35 @@ glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) {
ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params);
}
+void GL_APIENTRY glGenVertexArraysOES(GLsizei n, GLuint* arrays) {
+ const struct PPB_OpenGLES2VertexArrayObject* ext =
+ glGetVertexArrayObjectInterfacePPAPI();
+ if (ext)
+ ext->GenVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays);
+}
+
+void GL_APIENTRY glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
+ const struct PPB_OpenGLES2VertexArrayObject* ext =
+ glGetVertexArrayObjectInterfacePPAPI();
+ if (ext)
+ ext->DeleteVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays);
+}
+
+GLboolean GL_APIENTRY glIsVertexArrayOES(GLuint array) {
+ const struct PPB_OpenGLES2VertexArrayObject* ext =
+ glGetVertexArrayObjectInterfacePPAPI();
+ if (ext)
+ return ext->IsVertexArrayOES(glGetCurrentContextPPAPI(), array);
+ return 0;
+}
+
+void GL_APIENTRY glBindVertexArrayOES(GLuint array) {
+ const struct PPB_OpenGLES2VertexArrayObject* ext =
+ glGetVertexArrayObjectInterfacePPAPI();
+ if (ext)
+ ext->BindVertexArrayOES(glGetCurrentContextPPAPI(), array);
+}
+
GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) {
const struct PPB_OpenGLES2ChromiumEnableFeature* ext =
glGetChromiumEnableFeatureInterfacePPAPI();
« no previous file with comments | « ppapi/lib/gl/gles2/gl2ext_ppapi.c ('k') | ppapi/proxy/interface_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698