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

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

Issue 182213003: Add new PPB_OPENGLES2_DRAWBUFFERS_DEV_INTERFACE_1_0 pepper interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 a310114b9f5f0df88d82444f0a05f2360db00f4f..e5872b506c00bca24a6fba434ea047a0e3adb5a9 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_OpenGLES2DrawBuffers_Dev*
+ g_gles2_draw_buffers_interface = NULL;
// TODO(alokp): Make sure PP_TLS works on all supported platforms.
static PP_TLS PP_Resource g_current_context = 0;
@@ -73,6 +75,10 @@ GLboolean GL_APIENTRY glInitializePPAPI(
g_gles2_query_interface =
get_browser_interface(PPB_OPENGLES2_QUERY_INTERFACE);
}
+ if (!g_gles2_draw_buffers_interface) {
+ g_gles2_draw_buffers_interface =
+ get_browser_interface(PPB_OPENGLES2_DRAWBUFFERS_DEV_INTERFACE);
+ }
return g_gles2_interface ? GL_TRUE : GL_FALSE;
}
@@ -122,3 +128,8 @@ const struct PPB_OpenGLES2Query* GL_APIENTRY
glGetQueryInterfacePPAPI(void) {
return g_gles2_query_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