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

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
« no previous file with comments | « ppapi/shared_impl/ppb_opengles2_shared.h ('k') | ppapi/thunk/interfaces_legacy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6d291c456c9c1f883e5b16fc64d447e6a828ffde..aa335df3a734cb3f8011a4f1f1e097a9d7d49240 100644
--- a/ppapi/shared_impl/ppb_opengles2_shared.cc
+++ b/ppapi/shared_impl/ppb_opengles2_shared.cc
@@ -1566,6 +1566,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 = {
@@ -1680,4 +1687,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
« no previous file with comments | « ppapi/shared_impl/ppb_opengles2_shared.h ('k') | ppapi/thunk/interfaces_legacy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698