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