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 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1718 void BindUniformLocationCHROMIUMBucket(GLuint program, | 1718 void BindUniformLocationCHROMIUMBucket(GLuint program, |
1719 GLint location, | 1719 GLint location, |
1720 uint32_t name_bucket_id) { | 1720 uint32_t name_bucket_id) { |
1721 gles2::cmds::BindUniformLocationCHROMIUMBucket* c = | 1721 gles2::cmds::BindUniformLocationCHROMIUMBucket* c = |
1722 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>(); | 1722 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>(); |
1723 if (c) { | 1723 if (c) { |
1724 c->Init(program, location, name_bucket_id); | 1724 c->Init(program, location, name_bucket_id); |
1725 } | 1725 } |
1726 } | 1726 } |
1727 | 1727 |
| 1728 void GenValuebuffersCHROMIUMImmediate(GLsizei n, GLuint* buffers) { |
| 1729 const uint32_t size = |
| 1730 gles2::cmds::GenValuebuffersCHROMIUMImmediate::ComputeSize(n); |
| 1731 gles2::cmds::GenValuebuffersCHROMIUMImmediate* c = |
| 1732 GetImmediateCmdSpaceTotalSize< |
| 1733 gles2::cmds::GenValuebuffersCHROMIUMImmediate>(size); |
| 1734 if (c) { |
| 1735 c->Init(n, buffers); |
| 1736 } |
| 1737 } |
| 1738 |
| 1739 void DeleteValuebuffersCHROMIUMImmediate(GLsizei n, |
| 1740 const GLuint* valuebuffers) { |
| 1741 const uint32_t size = |
| 1742 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate::ComputeSize(n); |
| 1743 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate* c = |
| 1744 GetImmediateCmdSpaceTotalSize< |
| 1745 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate>(size); |
| 1746 if (c) { |
| 1747 c->Init(n, valuebuffers); |
| 1748 } |
| 1749 } |
| 1750 |
| 1751 void IsValuebufferCHROMIUM(GLuint valuebuffer, |
| 1752 uint32_t result_shm_id, |
| 1753 uint32_t result_shm_offset) { |
| 1754 gles2::cmds::IsValuebufferCHROMIUM* c = |
| 1755 GetCmdSpace<gles2::cmds::IsValuebufferCHROMIUM>(); |
| 1756 if (c) { |
| 1757 c->Init(valuebuffer, result_shm_id, result_shm_offset); |
| 1758 } |
| 1759 } |
| 1760 |
| 1761 void BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) { |
| 1762 gles2::cmds::BindValuebufferCHROMIUM* c = |
| 1763 GetCmdSpace<gles2::cmds::BindValuebufferCHROMIUM>(); |
| 1764 if (c) { |
| 1765 c->Init(target, valuebuffer); |
| 1766 } |
| 1767 } |
| 1768 |
| 1769 void SubscribeValueCHROMIUM(GLenum target, GLenum subscription) { |
| 1770 gles2::cmds::SubscribeValueCHROMIUM* c = |
| 1771 GetCmdSpace<gles2::cmds::SubscribeValueCHROMIUM>(); |
| 1772 if (c) { |
| 1773 c->Init(target, subscription); |
| 1774 } |
| 1775 } |
| 1776 |
| 1777 void PopulateSubscribedValuesCHROMIUM(GLenum target) { |
| 1778 gles2::cmds::PopulateSubscribedValuesCHROMIUM* c = |
| 1779 GetCmdSpace<gles2::cmds::PopulateSubscribedValuesCHROMIUM>(); |
| 1780 if (c) { |
| 1781 c->Init(target); |
| 1782 } |
| 1783 } |
| 1784 |
| 1785 void UniformValuebufferCHROMIUM(GLint location, |
| 1786 GLenum target, |
| 1787 GLenum subscription) { |
| 1788 gles2::cmds::UniformValuebufferCHROMIUM* c = |
| 1789 GetCmdSpace<gles2::cmds::UniformValuebufferCHROMIUM>(); |
| 1790 if (c) { |
| 1791 c->Init(location, target, subscription); |
| 1792 } |
| 1793 } |
| 1794 |
1728 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 1795 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
1729 gles2::cmds::BindTexImage2DCHROMIUM* c = | 1796 gles2::cmds::BindTexImage2DCHROMIUM* c = |
1730 GetCmdSpace<gles2::cmds::BindTexImage2DCHROMIUM>(); | 1797 GetCmdSpace<gles2::cmds::BindTexImage2DCHROMIUM>(); |
1731 if (c) { | 1798 if (c) { |
1732 c->Init(target, imageId); | 1799 c->Init(target, imageId); |
1733 } | 1800 } |
1734 } | 1801 } |
1735 | 1802 |
1736 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 1803 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
1737 gles2::cmds::ReleaseTexImage2DCHROMIUM* c = | 1804 gles2::cmds::ReleaseTexImage2DCHROMIUM* c = |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1930 } | 1997 } |
1931 | 1998 |
1932 void BlendBarrierKHR() { | 1999 void BlendBarrierKHR() { |
1933 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); | 2000 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); |
1934 if (c) { | 2001 if (c) { |
1935 c->Init(); | 2002 c->Init(); |
1936 } | 2003 } |
1937 } | 2004 } |
1938 | 2005 |
1939 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 2006 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |