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

Unified Diff: ppapi/lib/gl/gles2/gl2ext_ppapi.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.h ('k') | ppapi/lib/gl/gles2/gles2.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/lib/gl/gles2/gl2ext_ppapi.c
diff --git a/ppapi/lib/gl/gles2/gl2ext_ppapi.c b/ppapi/lib/gl/gles2/gl2ext_ppapi.c
index e5872b506c00bca24a6fba434ea047a0e3adb5a9..c37f41a15e32c3b8bc48ee2a1a4d95896625d5ed 100644
--- a/ppapi/lib/gl/gles2/gl2ext_ppapi.c
+++ b/ppapi/lib/gl/gles2/gl2ext_ppapi.c
@@ -38,6 +38,8 @@ static const struct PPB_OpenGLES2ChromiumMapSub*
g_gles2_chromium_map_sub_interface = NULL;
static const struct PPB_OpenGLES2Query*
g_gles2_query_interface = NULL;
+static const struct PPB_OpenGLES2VertexArrayObject*
+ g_gles2_vertex_array_object_interface = NULL;
static const struct PPB_OpenGLES2DrawBuffers_Dev*
g_gles2_draw_buffers_interface = NULL;
@@ -75,6 +77,10 @@ GLboolean GL_APIENTRY glInitializePPAPI(
g_gles2_query_interface =
get_browser_interface(PPB_OPENGLES2_QUERY_INTERFACE);
}
+ if (!g_gles2_vertex_array_object_interface) {
+ g_gles2_vertex_array_object_interface =
+ get_browser_interface(PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE);
+ }
if (!g_gles2_draw_buffers_interface) {
g_gles2_draw_buffers_interface =
get_browser_interface(PPB_OPENGLES2_DRAWBUFFERS_DEV_INTERFACE);
@@ -129,6 +135,11 @@ const struct PPB_OpenGLES2Query* GL_APIENTRY
return g_gles2_query_interface;
}
+const struct PPB_OpenGLES2VertexArrayObject* GL_APIENTRY
+ glGetVertexArrayObjectInterfacePPAPI(void) {
+ return g_gles2_vertex_array_object_interface;
+}
+
const struct PPB_OpenGLES2DrawBuffers_Dev* GL_APIENTRY
glGetDrawBuffersInterfacePPAPI(void) {
return g_gles2_draw_buffers_interface;
« no previous file with comments | « ppapi/lib/gl/gles2/gl2ext_ppapi.h ('k') | ppapi/lib/gl/gles2/gles2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698