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

Unified Diff: ppapi/shared_impl/ppb_opengles2_shared.cc

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
Index: ppapi/shared_impl/ppb_opengles2_shared.cc
diff --git a/ppapi/shared_impl/ppb_opengles2_shared.cc b/ppapi/shared_impl/ppb_opengles2_shared.cc
index 66af5d2fc2fdbcaa1f578590e96127e682bbea97..df82c0b4d34e19055c36c9d0c28b1e9e43fa7f9c 100644
--- a/ppapi/shared_impl/ppb_opengles2_shared.cc
+++ b/ppapi/shared_impl/ppb_opengles2_shared.cc
@@ -1564,6 +1564,13 @@ void VertexAttribDivisorANGLE(PP_Resource context_id,
}
}
+void DrawBuffersEXT(PP_Resource context_id, GLsizei count, const GLenum* bufs) {
+ Enter3D enter(context_id, true);
+ if (enter.succeeded()) {
+ ToGles2Impl(&enter)->DrawBuffersEXT(count, bufs);
+ }
+}
+
} // namespace
const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() {
static const struct PPB_OpenGLES2 ppb_opengles2 = {
@@ -1678,4 +1685,10 @@ const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() {
&EndQueryEXT, &GetQueryivEXT, &GetQueryObjectuivEXT};
return &ppb_opengles2;
}
+const PPB_OpenGLES2DrawBuffers_Dev*
+PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { // NOLINT
+ static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = {
+ &DrawBuffersEXT};
+ return &ppb_opengles2;
+}
} // namespace ppapi

Powered by Google App Engine
This is Rietveld 408576698