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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/shared_impl/ppb_opengles2_shared.h ('k') | ppapi/thunk/interfaces_legacy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 1559
1560 void VertexAttribDivisorANGLE(PP_Resource context_id, 1560 void VertexAttribDivisorANGLE(PP_Resource context_id,
1561 GLuint index, 1561 GLuint index,
1562 GLuint divisor) { 1562 GLuint divisor) {
1563 Enter3D enter(context_id, true); 1563 Enter3D enter(context_id, true);
1564 if (enter.succeeded()) { 1564 if (enter.succeeded()) {
1565 ToGles2Impl(&enter)->VertexAttribDivisorANGLE(index, divisor); 1565 ToGles2Impl(&enter)->VertexAttribDivisorANGLE(index, divisor);
1566 } 1566 }
1567 } 1567 }
1568 1568
1569 void DrawBuffersEXT(PP_Resource context_id, GLsizei count, const GLenum* bufs) {
1570 Enter3D enter(context_id, true);
1571 if (enter.succeeded()) {
1572 ToGles2Impl(&enter)->DrawBuffersEXT(count, bufs);
1573 }
1574 }
1575
1569 } // namespace 1576 } // namespace
1570 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { 1577 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() {
1571 static const struct PPB_OpenGLES2 ppb_opengles2 = { 1578 static const struct PPB_OpenGLES2 ppb_opengles2 = {
1572 &ActiveTexture, &AttachShader, 1579 &ActiveTexture, &AttachShader,
1573 &BindAttribLocation, &BindBuffer, 1580 &BindAttribLocation, &BindBuffer,
1574 &BindFramebuffer, &BindRenderbuffer, 1581 &BindFramebuffer, &BindRenderbuffer,
1575 &BindTexture, &BlendColor, 1582 &BindTexture, &BlendColor,
1576 &BlendEquation, &BlendEquationSeparate, 1583 &BlendEquation, &BlendEquationSeparate,
1577 &BlendFunc, &BlendFuncSeparate, 1584 &BlendFunc, &BlendFuncSeparate,
1578 &BufferData, &BufferSubData, 1585 &BufferData, &BufferSubData,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 &MapBufferSubDataCHROMIUM, &UnmapBufferSubDataCHROMIUM, 1680 &MapBufferSubDataCHROMIUM, &UnmapBufferSubDataCHROMIUM,
1674 &MapTexSubImage2DCHROMIUM, &UnmapTexSubImage2DCHROMIUM}; 1681 &MapTexSubImage2DCHROMIUM, &UnmapTexSubImage2DCHROMIUM};
1675 return &ppb_opengles2; 1682 return &ppb_opengles2;
1676 } 1683 }
1677 const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() { 1684 const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() {
1678 static const struct PPB_OpenGLES2Query ppb_opengles2 = { 1685 static const struct PPB_OpenGLES2Query ppb_opengles2 = {
1679 &GenQueriesEXT, &DeleteQueriesEXT, &IsQueryEXT, &BeginQueryEXT, 1686 &GenQueriesEXT, &DeleteQueriesEXT, &IsQueryEXT, &BeginQueryEXT,
1680 &EndQueryEXT, &GetQueryivEXT, &GetQueryObjectuivEXT}; 1687 &EndQueryEXT, &GetQueryivEXT, &GetQueryObjectuivEXT};
1681 return &ppb_opengles2; 1688 return &ppb_opengles2;
1682 } 1689 }
1690 const PPB_OpenGLES2DrawBuffers_Dev*
1691 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { // NOLINT
1692 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = {
1693 &DrawBuffersEXT};
1694 return &ppb_opengles2;
1695 }
1683 } // namespace ppapi 1696 } // namespace ppapi
OLDNEW
« 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