| 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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 } | 714 } |
| 715 GLboolean GLES2EnableFeatureCHROMIUM(const char* feature) { | 715 GLboolean GLES2EnableFeatureCHROMIUM(const char* feature) { |
| 716 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature); | 716 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature); |
| 717 } | 717 } |
| 718 void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) { | 718 void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) { |
| 719 return gles2::GetGLContext()->MapBufferCHROMIUM(target, access); | 719 return gles2::GetGLContext()->MapBufferCHROMIUM(target, access); |
| 720 } | 720 } |
| 721 GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) { | 721 GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) { |
| 722 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target); | 722 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target); |
| 723 } | 723 } |
| 724 void* GLES2MapImageCHROMIUM(GLuint image_id) { | |
| 725 return gles2::GetGLContext()->MapImageCHROMIUM(image_id); | |
| 726 } | |
| 727 void GLES2UnmapImageCHROMIUM(GLuint image_id) { | |
| 728 gles2::GetGLContext()->UnmapImageCHROMIUM(image_id); | |
| 729 } | |
| 730 void* GLES2MapBufferSubDataCHROMIUM(GLuint target, | 724 void* GLES2MapBufferSubDataCHROMIUM(GLuint target, |
| 731 GLintptr offset, | 725 GLintptr offset, |
| 732 GLsizeiptr size, | 726 GLsizeiptr size, |
| 733 GLenum access) { | 727 GLenum access) { |
| 734 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM( | 728 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM( |
| 735 target, offset, size, access); | 729 target, offset, size, access); |
| 736 } | 730 } |
| 737 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) { | 731 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) { |
| 738 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem); | 732 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem); |
| 739 } | 733 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 } | 767 } |
| 774 void GLES2GetProgramInfoCHROMIUM(GLuint program, | 768 void GLES2GetProgramInfoCHROMIUM(GLuint program, |
| 775 GLsizei bufsize, | 769 GLsizei bufsize, |
| 776 GLsizei* size, | 770 GLsizei* size, |
| 777 void* info) { | 771 void* info) { |
| 778 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program, bufsize, size, info); | 772 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program, bufsize, size, info); |
| 779 } | 773 } |
| 780 GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) { | 774 GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) { |
| 781 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture); | 775 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture); |
| 782 } | 776 } |
| 783 GLuint GLES2CreateImageCHROMIUM(GLsizei width, | 777 GLuint GLES2CreateImageCHROMIUM(ClientBuffer buffer, |
| 778 GLsizei width, |
| 784 GLsizei height, | 779 GLsizei height, |
| 785 GLenum internalformat, | 780 GLenum internalformat) { |
| 786 GLenum usage) { | |
| 787 return gles2::GetGLContext()->CreateImageCHROMIUM( | 781 return gles2::GetGLContext()->CreateImageCHROMIUM( |
| 788 width, height, internalformat, usage); | 782 buffer, width, height, internalformat); |
| 789 } | 783 } |
| 790 void GLES2DestroyImageCHROMIUM(GLuint image_id) { | 784 void GLES2DestroyImageCHROMIUM(GLuint image_id) { |
| 791 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id); | 785 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id); |
| 792 } | 786 } |
| 793 void GLES2GetImageParameterivCHROMIUM(GLuint image_id, | |
| 794 GLenum pname, | |
| 795 GLint* params) { | |
| 796 gles2::GetGLContext()->GetImageParameterivCHROMIUM(image_id, pname, params); | |
| 797 } | |
| 798 GLuint GLES2CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, | 787 GLuint GLES2CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, |
| 799 GLsizei height, | 788 GLsizei height, |
| 800 GLenum internalformat, | 789 GLenum internalformat, |
| 801 GLenum usage) { | 790 GLenum usage) { |
| 802 return gles2::GetGLContext()->CreateGpuMemoryBufferImageCHROMIUM( | 791 return gles2::GetGLContext()->CreateGpuMemoryBufferImageCHROMIUM( |
| 803 width, height, internalformat, usage); | 792 width, height, internalformat, usage); |
| 804 } | 793 } |
| 805 void GLES2GetTranslatedShaderSourceANGLE(GLuint shader, | 794 void GLES2GetTranslatedShaderSourceANGLE(GLuint shader, |
| 806 GLsizei bufsize, | 795 GLsizei bufsize, |
| 807 GLsizei* length, | 796 GLsizei* length, |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1643 }, | 1632 }, |
| 1644 { | 1633 { |
| 1645 "glMapBufferCHROMIUM", | 1634 "glMapBufferCHROMIUM", |
| 1646 reinterpret_cast<GLES2FunctionPointer>(glMapBufferCHROMIUM), | 1635 reinterpret_cast<GLES2FunctionPointer>(glMapBufferCHROMIUM), |
| 1647 }, | 1636 }, |
| 1648 { | 1637 { |
| 1649 "glUnmapBufferCHROMIUM", | 1638 "glUnmapBufferCHROMIUM", |
| 1650 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferCHROMIUM), | 1639 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferCHROMIUM), |
| 1651 }, | 1640 }, |
| 1652 { | 1641 { |
| 1653 "glMapImageCHROMIUM", | |
| 1654 reinterpret_cast<GLES2FunctionPointer>(glMapImageCHROMIUM), | |
| 1655 }, | |
| 1656 { | |
| 1657 "glUnmapImageCHROMIUM", | |
| 1658 reinterpret_cast<GLES2FunctionPointer>(glUnmapImageCHROMIUM), | |
| 1659 }, | |
| 1660 { | |
| 1661 "glMapBufferSubDataCHROMIUM", | 1642 "glMapBufferSubDataCHROMIUM", |
| 1662 reinterpret_cast<GLES2FunctionPointer>(glMapBufferSubDataCHROMIUM), | 1643 reinterpret_cast<GLES2FunctionPointer>(glMapBufferSubDataCHROMIUM), |
| 1663 }, | 1644 }, |
| 1664 { | 1645 { |
| 1665 "glUnmapBufferSubDataCHROMIUM", | 1646 "glUnmapBufferSubDataCHROMIUM", |
| 1666 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferSubDataCHROMIUM), | 1647 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferSubDataCHROMIUM), |
| 1667 }, | 1648 }, |
| 1668 { | 1649 { |
| 1669 "glMapTexSubImage2DCHROMIUM", | 1650 "glMapTexSubImage2DCHROMIUM", |
| 1670 reinterpret_cast<GLES2FunctionPointer>(glMapTexSubImage2DCHROMIUM), | 1651 reinterpret_cast<GLES2FunctionPointer>(glMapTexSubImage2DCHROMIUM), |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 }, | 1685 }, |
| 1705 { | 1686 { |
| 1706 "glCreateImageCHROMIUM", | 1687 "glCreateImageCHROMIUM", |
| 1707 reinterpret_cast<GLES2FunctionPointer>(glCreateImageCHROMIUM), | 1688 reinterpret_cast<GLES2FunctionPointer>(glCreateImageCHROMIUM), |
| 1708 }, | 1689 }, |
| 1709 { | 1690 { |
| 1710 "glDestroyImageCHROMIUM", | 1691 "glDestroyImageCHROMIUM", |
| 1711 reinterpret_cast<GLES2FunctionPointer>(glDestroyImageCHROMIUM), | 1692 reinterpret_cast<GLES2FunctionPointer>(glDestroyImageCHROMIUM), |
| 1712 }, | 1693 }, |
| 1713 { | 1694 { |
| 1714 "glGetImageParameterivCHROMIUM", | |
| 1715 reinterpret_cast<GLES2FunctionPointer>(glGetImageParameterivCHROMIUM), | |
| 1716 }, | |
| 1717 { | |
| 1718 "glCreateGpuMemoryBufferImageCHROMIUM", | 1695 "glCreateGpuMemoryBufferImageCHROMIUM", |
| 1719 reinterpret_cast<GLES2FunctionPointer>( | 1696 reinterpret_cast<GLES2FunctionPointer>( |
| 1720 glCreateGpuMemoryBufferImageCHROMIUM), | 1697 glCreateGpuMemoryBufferImageCHROMIUM), |
| 1721 }, | 1698 }, |
| 1722 { | 1699 { |
| 1723 "glGetTranslatedShaderSourceANGLE", | 1700 "glGetTranslatedShaderSourceANGLE", |
| 1724 reinterpret_cast<GLES2FunctionPointer>(glGetTranslatedShaderSourceANGLE), | 1701 reinterpret_cast<GLES2FunctionPointer>(glGetTranslatedShaderSourceANGLE), |
| 1725 }, | 1702 }, |
| 1726 { | 1703 { |
| 1727 "glPostSubBufferCHROMIUM", | 1704 "glPostSubBufferCHROMIUM", |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1840 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadIdentityCHROMIUM), | 1817 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadIdentityCHROMIUM), |
| 1841 }, | 1818 }, |
| 1842 { | 1819 { |
| 1843 NULL, | 1820 NULL, |
| 1844 NULL, | 1821 NULL, |
| 1845 }, | 1822 }, |
| 1846 }; | 1823 }; |
| 1847 | 1824 |
| 1848 } // namespace gles2 | 1825 } // namespace gles2 |
| 1849 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 1826 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
| OLD | NEW |