OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 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 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1566 } | 1566 } |
1567 } | 1567 } |
1568 | 1568 |
1569 void DrawBuffersEXT(PP_Resource context_id, GLsizei count, const GLenum* bufs) { | 1569 void DrawBuffersEXT(PP_Resource context_id, GLsizei count, const GLenum* bufs) { |
1570 Enter3D enter(context_id, true); | 1570 Enter3D enter(context_id, true); |
1571 if (enter.succeeded()) { | 1571 if (enter.succeeded()) { |
1572 ToGles2Impl(&enter)->DrawBuffersEXT(count, bufs); | 1572 ToGles2Impl(&enter)->DrawBuffersEXT(count, bufs); |
1573 } | 1573 } |
1574 } | 1574 } |
1575 | 1575 |
| 1576 void LoadIdentity(PP_Resource context_id) { |
| 1577 Enter3D enter(context_id, true); |
| 1578 if (enter.succeeded()) { |
| 1579 ToGles2Impl(&enter)->LoadIdentity(); |
| 1580 } |
| 1581 } |
| 1582 |
1576 } // namespace | 1583 } // namespace |
1577 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { | 1584 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { |
1578 static const struct PPB_OpenGLES2 ppb_opengles2 = { | 1585 static const struct PPB_OpenGLES2 ppb_opengles2 = { |
1579 &ActiveTexture, &AttachShader, | 1586 &ActiveTexture, &AttachShader, |
1580 &BindAttribLocation, &BindBuffer, | 1587 &BindAttribLocation, &BindBuffer, |
1581 &BindFramebuffer, &BindRenderbuffer, | 1588 &BindFramebuffer, &BindRenderbuffer, |
1582 &BindTexture, &BlendColor, | 1589 &BindTexture, &BlendColor, |
1583 &BlendEquation, &BlendEquationSeparate, | 1590 &BlendEquation, &BlendEquationSeparate, |
1584 &BlendFunc, &BlendFuncSeparate, | 1591 &BlendFunc, &BlendFuncSeparate, |
1585 &BufferData, &BufferSubData, | 1592 &BufferData, &BufferSubData, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1639 &Uniform3fv, &Uniform3i, | 1646 &Uniform3fv, &Uniform3i, |
1640 &Uniform3iv, &Uniform4f, | 1647 &Uniform3iv, &Uniform4f, |
1641 &Uniform4fv, &Uniform4i, | 1648 &Uniform4fv, &Uniform4i, |
1642 &Uniform4iv, &UniformMatrix2fv, | 1649 &Uniform4iv, &UniformMatrix2fv, |
1643 &UniformMatrix3fv, &UniformMatrix4fv, | 1650 &UniformMatrix3fv, &UniformMatrix4fv, |
1644 &UseProgram, &ValidateProgram, | 1651 &UseProgram, &ValidateProgram, |
1645 &VertexAttrib1f, &VertexAttrib1fv, | 1652 &VertexAttrib1f, &VertexAttrib1fv, |
1646 &VertexAttrib2f, &VertexAttrib2fv, | 1653 &VertexAttrib2f, &VertexAttrib2fv, |
1647 &VertexAttrib3f, &VertexAttrib3fv, | 1654 &VertexAttrib3f, &VertexAttrib3fv, |
1648 &VertexAttrib4f, &VertexAttrib4fv, | 1655 &VertexAttrib4f, &VertexAttrib4fv, |
1649 &VertexAttribPointer, &Viewport}; | 1656 &VertexAttribPointer, &Viewport, |
| 1657 &LoadIdentity}; |
1650 return &ppb_opengles2; | 1658 return &ppb_opengles2; |
1651 } | 1659 } |
1652 const PPB_OpenGLES2InstancedArrays* | 1660 const PPB_OpenGLES2InstancedArrays* |
1653 PPB_OpenGLES2_Shared::GetInstancedArraysInterface() { | 1661 PPB_OpenGLES2_Shared::GetInstancedArraysInterface() { |
1654 static const struct PPB_OpenGLES2InstancedArrays ppb_opengles2 = { | 1662 static const struct PPB_OpenGLES2InstancedArrays ppb_opengles2 = { |
1655 &DrawArraysInstancedANGLE, &DrawElementsInstancedANGLE, | 1663 &DrawArraysInstancedANGLE, &DrawElementsInstancedANGLE, |
1656 &VertexAttribDivisorANGLE}; | 1664 &VertexAttribDivisorANGLE}; |
1657 return &ppb_opengles2; | 1665 return &ppb_opengles2; |
1658 } | 1666 } |
1659 const PPB_OpenGLES2FramebufferBlit* | 1667 const PPB_OpenGLES2FramebufferBlit* |
(...skipping 27 matching lines...) Expand all Loading... |
1687 &EndQueryEXT, &GetQueryivEXT, &GetQueryObjectuivEXT}; | 1695 &EndQueryEXT, &GetQueryivEXT, &GetQueryObjectuivEXT}; |
1688 return &ppb_opengles2; | 1696 return &ppb_opengles2; |
1689 } | 1697 } |
1690 const PPB_OpenGLES2DrawBuffers_Dev* | 1698 const PPB_OpenGLES2DrawBuffers_Dev* |
1691 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { | 1699 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { |
1692 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = { | 1700 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = { |
1693 &DrawBuffersEXT}; | 1701 &DrawBuffersEXT}; |
1694 return &ppb_opengles2; | 1702 return &ppb_opengles2; |
1695 } | 1703 } |
1696 } // namespace ppapi | 1704 } // namespace ppapi |
OLD | NEW |