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 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1601 void DrawBuffersEXT(PP_Resource context_id, GLsizei count, const GLenum* bufs) { | 1601 void DrawBuffersEXT(PP_Resource context_id, GLsizei count, const GLenum* bufs) { |
1602 Enter3D enter(context_id, true); | 1602 Enter3D enter(context_id, true); |
1603 if (enter.succeeded()) { | 1603 if (enter.succeeded()) { |
1604 ToGles2Impl(&enter)->DrawBuffersEXT(count, bufs); | 1604 ToGles2Impl(&enter)->DrawBuffersEXT(count, bufs); |
1605 } | 1605 } |
1606 } | 1606 } |
1607 | 1607 |
1608 } // namespace | 1608 } // namespace |
1609 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { | 1609 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { |
1610 static const struct PPB_OpenGLES2 ppb_opengles2 = { | 1610 static const struct PPB_OpenGLES2 ppb_opengles2 = { |
1611 &ActiveTexture, &AttachShader, | 1611 &ActiveTexture, |
dmichael (off chromium)
2014/09/29 15:25:23
This was an intentional change to the formatter, I
| |
1612 &BindAttribLocation, &BindBuffer, | 1612 &AttachShader, |
1613 &BindFramebuffer, &BindRenderbuffer, | 1613 &BindAttribLocation, |
1614 &BindTexture, &BlendColor, | 1614 &BindBuffer, |
1615 &BlendEquation, &BlendEquationSeparate, | 1615 &BindFramebuffer, |
1616 &BlendFunc, &BlendFuncSeparate, | 1616 &BindRenderbuffer, |
1617 &BufferData, &BufferSubData, | 1617 &BindTexture, |
1618 &CheckFramebufferStatus, &Clear, | 1618 &BlendColor, |
1619 &ClearColor, &ClearDepthf, | 1619 &BlendEquation, |
1620 &ClearStencil, &ColorMask, | 1620 &BlendEquationSeparate, |
1621 &CompileShader, &CompressedTexImage2D, | 1621 &BlendFunc, |
1622 &CompressedTexSubImage2D, &CopyTexImage2D, | 1622 &BlendFuncSeparate, |
1623 &CopyTexSubImage2D, &CreateProgram, | 1623 &BufferData, |
1624 &CreateShader, &CullFace, | 1624 &BufferSubData, |
1625 &DeleteBuffers, &DeleteFramebuffers, | 1625 &CheckFramebufferStatus, |
1626 &DeleteProgram, &DeleteRenderbuffers, | 1626 &Clear, |
1627 &DeleteShader, &DeleteTextures, | 1627 &ClearColor, |
1628 &DepthFunc, &DepthMask, | 1628 &ClearDepthf, |
1629 &DepthRangef, &DetachShader, | 1629 &ClearStencil, |
1630 &Disable, &DisableVertexAttribArray, | 1630 &ColorMask, |
1631 &DrawArrays, &DrawElements, | 1631 &CompileShader, |
1632 &Enable, &EnableVertexAttribArray, | 1632 &CompressedTexImage2D, |
1633 &Finish, &Flush, | 1633 &CompressedTexSubImage2D, |
1634 &FramebufferRenderbuffer, &FramebufferTexture2D, | 1634 &CopyTexImage2D, |
1635 &FrontFace, &GenBuffers, | 1635 &CopyTexSubImage2D, |
1636 &GenerateMipmap, &GenFramebuffers, | 1636 &CreateProgram, |
1637 &GenRenderbuffers, &GenTextures, | 1637 &CreateShader, |
1638 &GetActiveAttrib, &GetActiveUniform, | 1638 &CullFace, |
1639 &GetAttachedShaders, &GetAttribLocation, | 1639 &DeleteBuffers, |
1640 &GetBooleanv, &GetBufferParameteriv, | 1640 &DeleteFramebuffers, |
1641 &GetError, &GetFloatv, | 1641 &DeleteProgram, |
1642 &GetFramebufferAttachmentParameteriv, &GetIntegerv, | 1642 &DeleteRenderbuffers, |
1643 &GetProgramiv, &GetProgramInfoLog, | 1643 &DeleteShader, |
1644 &GetRenderbufferParameteriv, &GetShaderiv, | 1644 &DeleteTextures, |
1645 &GetShaderInfoLog, &GetShaderPrecisionFormat, | 1645 &DepthFunc, |
1646 &GetShaderSource, &GetString, | 1646 &DepthMask, |
1647 &GetTexParameterfv, &GetTexParameteriv, | 1647 &DepthRangef, |
1648 &GetUniformfv, &GetUniformiv, | 1648 &DetachShader, |
1649 &GetUniformLocation, &GetVertexAttribfv, | 1649 &Disable, |
1650 &GetVertexAttribiv, &GetVertexAttribPointerv, | 1650 &DisableVertexAttribArray, |
1651 &Hint, &IsBuffer, | 1651 &DrawArrays, |
1652 &IsEnabled, &IsFramebuffer, | 1652 &DrawElements, |
1653 &IsProgram, &IsRenderbuffer, | 1653 &Enable, |
1654 &IsShader, &IsTexture, | 1654 &EnableVertexAttribArray, |
1655 &LineWidth, &LinkProgram, | 1655 &Finish, |
1656 &PixelStorei, &PolygonOffset, | 1656 &Flush, |
1657 &ReadPixels, &ReleaseShaderCompiler, | 1657 &FramebufferRenderbuffer, |
1658 &RenderbufferStorage, &SampleCoverage, | 1658 &FramebufferTexture2D, |
1659 &Scissor, &ShaderBinary, | 1659 &FrontFace, |
1660 &ShaderSource, &StencilFunc, | 1660 &GenBuffers, |
1661 &StencilFuncSeparate, &StencilMask, | 1661 &GenerateMipmap, |
1662 &StencilMaskSeparate, &StencilOp, | 1662 &GenFramebuffers, |
1663 &StencilOpSeparate, &TexImage2D, | 1663 &GenRenderbuffers, |
1664 &TexParameterf, &TexParameterfv, | 1664 &GenTextures, |
1665 &TexParameteri, &TexParameteriv, | 1665 &GetActiveAttrib, |
1666 &TexSubImage2D, &Uniform1f, | 1666 &GetActiveUniform, |
1667 &Uniform1fv, &Uniform1i, | 1667 &GetAttachedShaders, |
1668 &Uniform1iv, &Uniform2f, | 1668 &GetAttribLocation, |
1669 &Uniform2fv, &Uniform2i, | 1669 &GetBooleanv, |
1670 &Uniform2iv, &Uniform3f, | 1670 &GetBufferParameteriv, |
1671 &Uniform3fv, &Uniform3i, | 1671 &GetError, |
1672 &Uniform3iv, &Uniform4f, | 1672 &GetFloatv, |
1673 &Uniform4fv, &Uniform4i, | 1673 &GetFramebufferAttachmentParameteriv, |
1674 &Uniform4iv, &UniformMatrix2fv, | 1674 &GetIntegerv, |
1675 &UniformMatrix3fv, &UniformMatrix4fv, | 1675 &GetProgramiv, |
1676 &UseProgram, &ValidateProgram, | 1676 &GetProgramInfoLog, |
1677 &VertexAttrib1f, &VertexAttrib1fv, | 1677 &GetRenderbufferParameteriv, |
1678 &VertexAttrib2f, &VertexAttrib2fv, | 1678 &GetShaderiv, |
1679 &VertexAttrib3f, &VertexAttrib3fv, | 1679 &GetShaderInfoLog, |
1680 &VertexAttrib4f, &VertexAttrib4fv, | 1680 &GetShaderPrecisionFormat, |
1681 &VertexAttribPointer, &Viewport}; | 1681 &GetShaderSource, |
1682 &GetString, | |
1683 &GetTexParameterfv, | |
1684 &GetTexParameteriv, | |
1685 &GetUniformfv, | |
1686 &GetUniformiv, | |
1687 &GetUniformLocation, | |
1688 &GetVertexAttribfv, | |
1689 &GetVertexAttribiv, | |
1690 &GetVertexAttribPointerv, | |
1691 &Hint, | |
1692 &IsBuffer, | |
1693 &IsEnabled, | |
1694 &IsFramebuffer, | |
1695 &IsProgram, | |
1696 &IsRenderbuffer, | |
1697 &IsShader, | |
1698 &IsTexture, | |
1699 &LineWidth, | |
1700 &LinkProgram, | |
1701 &PixelStorei, | |
1702 &PolygonOffset, | |
1703 &ReadPixels, | |
1704 &ReleaseShaderCompiler, | |
1705 &RenderbufferStorage, | |
1706 &SampleCoverage, | |
1707 &Scissor, | |
1708 &ShaderBinary, | |
1709 &ShaderSource, | |
1710 &StencilFunc, | |
1711 &StencilFuncSeparate, | |
1712 &StencilMask, | |
1713 &StencilMaskSeparate, | |
1714 &StencilOp, | |
1715 &StencilOpSeparate, | |
1716 &TexImage2D, | |
1717 &TexParameterf, | |
1718 &TexParameterfv, | |
1719 &TexParameteri, | |
1720 &TexParameteriv, | |
1721 &TexSubImage2D, | |
1722 &Uniform1f, | |
1723 &Uniform1fv, | |
1724 &Uniform1i, | |
1725 &Uniform1iv, | |
1726 &Uniform2f, | |
1727 &Uniform2fv, | |
1728 &Uniform2i, | |
1729 &Uniform2iv, | |
1730 &Uniform3f, | |
1731 &Uniform3fv, | |
1732 &Uniform3i, | |
1733 &Uniform3iv, | |
1734 &Uniform4f, | |
1735 &Uniform4fv, | |
1736 &Uniform4i, | |
1737 &Uniform4iv, | |
1738 &UniformMatrix2fv, | |
1739 &UniformMatrix3fv, | |
1740 &UniformMatrix4fv, | |
1741 &UseProgram, | |
1742 &ValidateProgram, | |
1743 &VertexAttrib1f, | |
1744 &VertexAttrib1fv, | |
1745 &VertexAttrib2f, | |
1746 &VertexAttrib2fv, | |
1747 &VertexAttrib3f, | |
1748 &VertexAttrib3fv, | |
1749 &VertexAttrib4f, | |
1750 &VertexAttrib4fv, | |
1751 &VertexAttribPointer, | |
1752 &Viewport}; | |
1682 return &ppb_opengles2; | 1753 return &ppb_opengles2; |
1683 } | 1754 } |
1684 const PPB_OpenGLES2InstancedArrays* | 1755 const PPB_OpenGLES2InstancedArrays* |
1685 PPB_OpenGLES2_Shared::GetInstancedArraysInterface() { | 1756 PPB_OpenGLES2_Shared::GetInstancedArraysInterface() { |
1686 static const struct PPB_OpenGLES2InstancedArrays ppb_opengles2 = { | 1757 static const struct PPB_OpenGLES2InstancedArrays ppb_opengles2 = { |
1687 &DrawArraysInstancedANGLE, &DrawElementsInstancedANGLE, | 1758 &DrawArraysInstancedANGLE, |
1759 &DrawElementsInstancedANGLE, | |
1688 &VertexAttribDivisorANGLE}; | 1760 &VertexAttribDivisorANGLE}; |
1689 return &ppb_opengles2; | 1761 return &ppb_opengles2; |
1690 } | 1762 } |
1691 const PPB_OpenGLES2FramebufferBlit* | 1763 const PPB_OpenGLES2FramebufferBlit* |
1692 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface() { | 1764 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface() { |
1693 static const struct PPB_OpenGLES2FramebufferBlit ppb_opengles2 = { | 1765 static const struct PPB_OpenGLES2FramebufferBlit ppb_opengles2 = { |
1694 &BlitFramebufferEXT}; | 1766 &BlitFramebufferEXT}; |
1695 return &ppb_opengles2; | 1767 return &ppb_opengles2; |
1696 } | 1768 } |
1697 const PPB_OpenGLES2FramebufferMultisample* | 1769 const PPB_OpenGLES2FramebufferMultisample* |
1698 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface() { | 1770 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface() { |
1699 static const struct PPB_OpenGLES2FramebufferMultisample ppb_opengles2 = { | 1771 static const struct PPB_OpenGLES2FramebufferMultisample ppb_opengles2 = { |
1700 &RenderbufferStorageMultisampleEXT}; | 1772 &RenderbufferStorageMultisampleEXT}; |
1701 return &ppb_opengles2; | 1773 return &ppb_opengles2; |
1702 } | 1774 } |
1703 const PPB_OpenGLES2ChromiumEnableFeature* | 1775 const PPB_OpenGLES2ChromiumEnableFeature* |
1704 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface() { | 1776 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface() { |
1705 static const struct PPB_OpenGLES2ChromiumEnableFeature ppb_opengles2 = { | 1777 static const struct PPB_OpenGLES2ChromiumEnableFeature ppb_opengles2 = { |
1706 &EnableFeatureCHROMIUM}; | 1778 &EnableFeatureCHROMIUM}; |
1707 return &ppb_opengles2; | 1779 return &ppb_opengles2; |
1708 } | 1780 } |
1709 const PPB_OpenGLES2ChromiumMapSub* | 1781 const PPB_OpenGLES2ChromiumMapSub* |
1710 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface() { | 1782 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface() { |
1711 static const struct PPB_OpenGLES2ChromiumMapSub ppb_opengles2 = { | 1783 static const struct PPB_OpenGLES2ChromiumMapSub ppb_opengles2 = { |
1712 &MapBufferSubDataCHROMIUM, &UnmapBufferSubDataCHROMIUM, | 1784 &MapBufferSubDataCHROMIUM, |
1713 &MapTexSubImage2DCHROMIUM, &UnmapTexSubImage2DCHROMIUM}; | 1785 &UnmapBufferSubDataCHROMIUM, |
1786 &MapTexSubImage2DCHROMIUM, | |
1787 &UnmapTexSubImage2DCHROMIUM}; | |
1714 return &ppb_opengles2; | 1788 return &ppb_opengles2; |
1715 } | 1789 } |
1716 const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() { | 1790 const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() { |
1717 static const struct PPB_OpenGLES2Query ppb_opengles2 = { | 1791 static const struct PPB_OpenGLES2Query ppb_opengles2 = { |
1718 &GenQueriesEXT, &DeleteQueriesEXT, &IsQueryEXT, &BeginQueryEXT, | 1792 &GenQueriesEXT, |
1719 &EndQueryEXT, &GetQueryivEXT, &GetQueryObjectuivEXT}; | 1793 &DeleteQueriesEXT, |
1794 &IsQueryEXT, | |
1795 &BeginQueryEXT, | |
1796 &EndQueryEXT, | |
1797 &GetQueryivEXT, | |
1798 &GetQueryObjectuivEXT}; | |
1720 return &ppb_opengles2; | 1799 return &ppb_opengles2; |
1721 } | 1800 } |
1722 const PPB_OpenGLES2VertexArrayObject* | 1801 const PPB_OpenGLES2VertexArrayObject* |
1723 PPB_OpenGLES2_Shared::GetVertexArrayObjectInterface() { | 1802 PPB_OpenGLES2_Shared::GetVertexArrayObjectInterface() { |
1724 static const struct PPB_OpenGLES2VertexArrayObject ppb_opengles2 = { | 1803 static const struct PPB_OpenGLES2VertexArrayObject ppb_opengles2 = { |
1725 &GenVertexArraysOES, &DeleteVertexArraysOES, &IsVertexArrayOES, | 1804 &GenVertexArraysOES, |
1805 &DeleteVertexArraysOES, | |
1806 &IsVertexArrayOES, | |
1726 &BindVertexArrayOES}; | 1807 &BindVertexArrayOES}; |
1727 return &ppb_opengles2; | 1808 return &ppb_opengles2; |
1728 } | 1809 } |
1729 const PPB_OpenGLES2DrawBuffers_Dev* | 1810 const PPB_OpenGLES2DrawBuffers_Dev* |
1730 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { | 1811 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { |
1731 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = { | 1812 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = { |
1732 &DrawBuffersEXT}; | 1813 &DrawBuffersEXT}; |
1733 return &ppb_opengles2; | 1814 return &ppb_opengles2; |
1734 } | 1815 } |
1735 } // namespace ppapi | 1816 } // namespace ppapi |
OLD | NEW |