| 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 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } // namespace | 1576 } // namespace |
| 1577 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { | 1577 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { |
| 1578 static const struct PPB_OpenGLES2 ppb_opengles2 = { | 1578 static const struct PPB_OpenGLES2 ppb_opengles2 = { |
| 1579 &ActiveTexture, &AttachShader, | 1579 &ActiveTexture, |
| 1580 &BindAttribLocation, &BindBuffer, | 1580 &AttachShader, |
| 1581 &BindFramebuffer, &BindRenderbuffer, | 1581 &BindAttribLocation, |
| 1582 &BindTexture, &BlendColor, | 1582 &BindBuffer, |
| 1583 &BlendEquation, &BlendEquationSeparate, | 1583 &BindFramebuffer, |
| 1584 &BlendFunc, &BlendFuncSeparate, | 1584 &BindRenderbuffer, |
| 1585 &BufferData, &BufferSubData, | 1585 &BindTexture, |
| 1586 &CheckFramebufferStatus, &Clear, | 1586 &BlendColor, |
| 1587 &ClearColor, &ClearDepthf, | 1587 &BlendEquation, |
| 1588 &ClearStencil, &ColorMask, | 1588 &BlendEquationSeparate, |
| 1589 &CompileShader, &CompressedTexImage2D, | 1589 &BlendFunc, |
| 1590 &CompressedTexSubImage2D, &CopyTexImage2D, | 1590 &BlendFuncSeparate, |
| 1591 &CopyTexSubImage2D, &CreateProgram, | 1591 &BufferData, |
| 1592 &CreateShader, &CullFace, | 1592 &BufferSubData, |
| 1593 &DeleteBuffers, &DeleteFramebuffers, | 1593 &CheckFramebufferStatus, |
| 1594 &DeleteProgram, &DeleteRenderbuffers, | 1594 &Clear, |
| 1595 &DeleteShader, &DeleteTextures, | 1595 &ClearColor, |
| 1596 &DepthFunc, &DepthMask, | 1596 &ClearDepthf, |
| 1597 &DepthRangef, &DetachShader, | 1597 &ClearStencil, |
| 1598 &Disable, &DisableVertexAttribArray, | 1598 &ColorMask, |
| 1599 &DrawArrays, &DrawElements, | 1599 &CompileShader, |
| 1600 &Enable, &EnableVertexAttribArray, | 1600 &CompressedTexImage2D, |
| 1601 &Finish, &Flush, | 1601 &CompressedTexSubImage2D, |
| 1602 &FramebufferRenderbuffer, &FramebufferTexture2D, | 1602 &CopyTexImage2D, |
| 1603 &FrontFace, &GenBuffers, | 1603 &CopyTexSubImage2D, |
| 1604 &GenerateMipmap, &GenFramebuffers, | 1604 &CreateProgram, |
| 1605 &GenRenderbuffers, &GenTextures, | 1605 &CreateShader, |
| 1606 &GetActiveAttrib, &GetActiveUniform, | 1606 &CullFace, |
| 1607 &GetAttachedShaders, &GetAttribLocation, | 1607 &DeleteBuffers, |
| 1608 &GetBooleanv, &GetBufferParameteriv, | 1608 &DeleteFramebuffers, |
| 1609 &GetError, &GetFloatv, | 1609 &DeleteProgram, |
| 1610 &GetFramebufferAttachmentParameteriv, &GetIntegerv, | 1610 &DeleteRenderbuffers, |
| 1611 &GetProgramiv, &GetProgramInfoLog, | 1611 &DeleteShader, |
| 1612 &GetRenderbufferParameteriv, &GetShaderiv, | 1612 &DeleteTextures, |
| 1613 &GetShaderInfoLog, &GetShaderPrecisionFormat, | 1613 &DepthFunc, |
| 1614 &GetShaderSource, &GetString, | 1614 &DepthMask, |
| 1615 &GetTexParameterfv, &GetTexParameteriv, | 1615 &DepthRangef, |
| 1616 &GetUniformfv, &GetUniformiv, | 1616 &DetachShader, |
| 1617 &GetUniformLocation, &GetVertexAttribfv, | 1617 &Disable, |
| 1618 &GetVertexAttribiv, &GetVertexAttribPointerv, | 1618 &DisableVertexAttribArray, |
| 1619 &Hint, &IsBuffer, | 1619 &DrawArrays, |
| 1620 &IsEnabled, &IsFramebuffer, | 1620 &DrawElements, |
| 1621 &IsProgram, &IsRenderbuffer, | 1621 &Enable, |
| 1622 &IsShader, &IsTexture, | 1622 &EnableVertexAttribArray, |
| 1623 &LineWidth, &LinkProgram, | 1623 &Finish, |
| 1624 &PixelStorei, &PolygonOffset, | 1624 &Flush, |
| 1625 &ReadPixels, &ReleaseShaderCompiler, | 1625 &FramebufferRenderbuffer, |
| 1626 &RenderbufferStorage, &SampleCoverage, | 1626 &FramebufferTexture2D, |
| 1627 &Scissor, &ShaderBinary, | 1627 &FrontFace, |
| 1628 &ShaderSource, &StencilFunc, | 1628 &GenBuffers, |
| 1629 &StencilFuncSeparate, &StencilMask, | 1629 &GenerateMipmap, |
| 1630 &StencilMaskSeparate, &StencilOp, | 1630 &GenFramebuffers, |
| 1631 &StencilOpSeparate, &TexImage2D, | 1631 &GenRenderbuffers, |
| 1632 &TexParameterf, &TexParameterfv, | 1632 &GenTextures, |
| 1633 &TexParameteri, &TexParameteriv, | 1633 &GetActiveAttrib, |
| 1634 &TexSubImage2D, &Uniform1f, | 1634 &GetActiveUniform, |
| 1635 &Uniform1fv, &Uniform1i, | 1635 &GetAttachedShaders, |
| 1636 &Uniform1iv, &Uniform2f, | 1636 &GetAttribLocation, |
| 1637 &Uniform2fv, &Uniform2i, | 1637 &GetBooleanv, |
| 1638 &Uniform2iv, &Uniform3f, | 1638 &GetBufferParameteriv, |
| 1639 &Uniform3fv, &Uniform3i, | 1639 &GetError, |
| 1640 &Uniform3iv, &Uniform4f, | 1640 &GetFloatv, |
| 1641 &Uniform4fv, &Uniform4i, | 1641 &GetFramebufferAttachmentParameteriv, |
| 1642 &Uniform4iv, &UniformMatrix2fv, | 1642 &GetIntegerv, |
| 1643 &UniformMatrix3fv, &UniformMatrix4fv, | 1643 &GetProgramiv, |
| 1644 &UseProgram, &ValidateProgram, | 1644 &GetProgramInfoLog, |
| 1645 &VertexAttrib1f, &VertexAttrib1fv, | 1645 &GetRenderbufferParameteriv, |
| 1646 &VertexAttrib2f, &VertexAttrib2fv, | 1646 &GetShaderiv, |
| 1647 &VertexAttrib3f, &VertexAttrib3fv, | 1647 &GetShaderInfoLog, |
| 1648 &VertexAttrib4f, &VertexAttrib4fv, | 1648 &GetShaderPrecisionFormat, |
| 1649 &VertexAttribPointer, &Viewport}; | 1649 &GetShaderSource, |
| 1650 &GetString, |
| 1651 &GetTexParameterfv, |
| 1652 &GetTexParameteriv, |
| 1653 &GetUniformfv, |
| 1654 &GetUniformiv, |
| 1655 &GetUniformLocation, |
| 1656 &GetVertexAttribfv, |
| 1657 &GetVertexAttribiv, |
| 1658 &GetVertexAttribPointerv, |
| 1659 &Hint, |
| 1660 &IsBuffer, |
| 1661 &IsEnabled, |
| 1662 &IsFramebuffer, |
| 1663 &IsProgram, |
| 1664 &IsRenderbuffer, |
| 1665 &IsShader, |
| 1666 &IsTexture, |
| 1667 &LineWidth, |
| 1668 &LinkProgram, |
| 1669 &PixelStorei, |
| 1670 &PolygonOffset, |
| 1671 &ReadPixels, |
| 1672 &ReleaseShaderCompiler, |
| 1673 &RenderbufferStorage, |
| 1674 &SampleCoverage, |
| 1675 &Scissor, |
| 1676 &ShaderBinary, |
| 1677 &ShaderSource, |
| 1678 &StencilFunc, |
| 1679 &StencilFuncSeparate, |
| 1680 &StencilMask, |
| 1681 &StencilMaskSeparate, |
| 1682 &StencilOp, |
| 1683 &StencilOpSeparate, |
| 1684 &TexImage2D, |
| 1685 &TexParameterf, |
| 1686 &TexParameterfv, |
| 1687 &TexParameteri, |
| 1688 &TexParameteriv, |
| 1689 &TexSubImage2D, |
| 1690 &Uniform1f, |
| 1691 &Uniform1fv, |
| 1692 &Uniform1i, |
| 1693 &Uniform1iv, |
| 1694 &Uniform2f, |
| 1695 &Uniform2fv, |
| 1696 &Uniform2i, |
| 1697 &Uniform2iv, |
| 1698 &Uniform3f, |
| 1699 &Uniform3fv, |
| 1700 &Uniform3i, |
| 1701 &Uniform3iv, |
| 1702 &Uniform4f, |
| 1703 &Uniform4fv, |
| 1704 &Uniform4i, |
| 1705 &Uniform4iv, |
| 1706 &UniformMatrix2fv, |
| 1707 &UniformMatrix3fv, |
| 1708 &UniformMatrix4fv, |
| 1709 &UseProgram, |
| 1710 &ValidateProgram, |
| 1711 &VertexAttrib1f, |
| 1712 &VertexAttrib1fv, |
| 1713 &VertexAttrib2f, |
| 1714 &VertexAttrib2fv, |
| 1715 &VertexAttrib3f, |
| 1716 &VertexAttrib3fv, |
| 1717 &VertexAttrib4f, |
| 1718 &VertexAttrib4fv, |
| 1719 &VertexAttribPointer, |
| 1720 &Viewport}; |
| 1650 return &ppb_opengles2; | 1721 return &ppb_opengles2; |
| 1651 } | 1722 } |
| 1652 const PPB_OpenGLES2InstancedArrays* | 1723 const PPB_OpenGLES2InstancedArrays* |
| 1653 PPB_OpenGLES2_Shared::GetInstancedArraysInterface() { | 1724 PPB_OpenGLES2_Shared::GetInstancedArraysInterface() { |
| 1654 static const struct PPB_OpenGLES2InstancedArrays ppb_opengles2 = { | 1725 static const struct PPB_OpenGLES2InstancedArrays ppb_opengles2 = { |
| 1655 &DrawArraysInstancedANGLE, &DrawElementsInstancedANGLE, | 1726 &DrawArraysInstancedANGLE, |
| 1727 &DrawElementsInstancedANGLE, |
| 1656 &VertexAttribDivisorANGLE}; | 1728 &VertexAttribDivisorANGLE}; |
| 1657 return &ppb_opengles2; | 1729 return &ppb_opengles2; |
| 1658 } | 1730 } |
| 1659 const PPB_OpenGLES2FramebufferBlit* | 1731 const PPB_OpenGLES2FramebufferBlit* |
| 1660 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface() { | 1732 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface() { |
| 1661 static const struct PPB_OpenGLES2FramebufferBlit ppb_opengles2 = { | 1733 static const struct PPB_OpenGLES2FramebufferBlit ppb_opengles2 = { |
| 1662 &BlitFramebufferEXT}; | 1734 &BlitFramebufferEXT}; |
| 1663 return &ppb_opengles2; | 1735 return &ppb_opengles2; |
| 1664 } | 1736 } |
| 1665 const PPB_OpenGLES2FramebufferMultisample* | 1737 const PPB_OpenGLES2FramebufferMultisample* |
| 1666 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface() { | 1738 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface() { |
| 1667 static const struct PPB_OpenGLES2FramebufferMultisample ppb_opengles2 = { | 1739 static const struct PPB_OpenGLES2FramebufferMultisample ppb_opengles2 = { |
| 1668 &RenderbufferStorageMultisampleEXT}; | 1740 &RenderbufferStorageMultisampleEXT}; |
| 1669 return &ppb_opengles2; | 1741 return &ppb_opengles2; |
| 1670 } | 1742 } |
| 1671 const PPB_OpenGLES2ChromiumEnableFeature* | 1743 const PPB_OpenGLES2ChromiumEnableFeature* |
| 1672 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface() { | 1744 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface() { |
| 1673 static const struct PPB_OpenGLES2ChromiumEnableFeature ppb_opengles2 = { | 1745 static const struct PPB_OpenGLES2ChromiumEnableFeature ppb_opengles2 = { |
| 1674 &EnableFeatureCHROMIUM}; | 1746 &EnableFeatureCHROMIUM}; |
| 1675 return &ppb_opengles2; | 1747 return &ppb_opengles2; |
| 1676 } | 1748 } |
| 1677 const PPB_OpenGLES2ChromiumMapSub* | 1749 const PPB_OpenGLES2ChromiumMapSub* |
| 1678 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface() { | 1750 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface() { |
| 1679 static const struct PPB_OpenGLES2ChromiumMapSub ppb_opengles2 = { | 1751 static const struct PPB_OpenGLES2ChromiumMapSub ppb_opengles2 = { |
| 1680 &MapBufferSubDataCHROMIUM, &UnmapBufferSubDataCHROMIUM, | 1752 &MapBufferSubDataCHROMIUM, |
| 1681 &MapTexSubImage2DCHROMIUM, &UnmapTexSubImage2DCHROMIUM}; | 1753 &UnmapBufferSubDataCHROMIUM, |
| 1754 &MapTexSubImage2DCHROMIUM, |
| 1755 &UnmapTexSubImage2DCHROMIUM}; |
| 1682 return &ppb_opengles2; | 1756 return &ppb_opengles2; |
| 1683 } | 1757 } |
| 1684 const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() { | 1758 const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() { |
| 1685 static const struct PPB_OpenGLES2Query ppb_opengles2 = { | 1759 static const struct PPB_OpenGLES2Query ppb_opengles2 = { |
| 1686 &GenQueriesEXT, &DeleteQueriesEXT, &IsQueryEXT, &BeginQueryEXT, | 1760 &GenQueriesEXT, |
| 1687 &EndQueryEXT, &GetQueryivEXT, &GetQueryObjectuivEXT}; | 1761 &DeleteQueriesEXT, |
| 1762 &IsQueryEXT, |
| 1763 &BeginQueryEXT, |
| 1764 &EndQueryEXT, |
| 1765 &GetQueryivEXT, |
| 1766 &GetQueryObjectuivEXT}; |
| 1688 return &ppb_opengles2; | 1767 return &ppb_opengles2; |
| 1689 } | 1768 } |
| 1690 const PPB_OpenGLES2DrawBuffers_Dev* | 1769 const PPB_OpenGLES2DrawBuffers_Dev* |
| 1691 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { | 1770 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { |
| 1692 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = { | 1771 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = { |
| 1693 &DrawBuffersEXT}; | 1772 &DrawBuffersEXT}; |
| 1694 return &ppb_opengles2; | 1773 return &ppb_opengles2; |
| 1695 } | 1774 } |
| 1696 } // namespace ppapi | 1775 } // namespace ppapi |
| OLD | NEW |