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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 GLint level, | 198 GLint level, |
199 GLenum internalformat, | 199 GLenum internalformat, |
200 GLsizei width, | 200 GLsizei width, |
201 GLsizei height, | 201 GLsizei height, |
202 GLsizei imageSize, | 202 GLsizei imageSize, |
203 uint32_t data_shm_id, | 203 uint32_t data_shm_id, |
204 uint32_t data_shm_offset) { | 204 uint32_t data_shm_offset) { |
205 gles2::cmds::CompressedTexImage2D* c = | 205 gles2::cmds::CompressedTexImage2D* c = |
206 GetCmdSpace<gles2::cmds::CompressedTexImage2D>(); | 206 GetCmdSpace<gles2::cmds::CompressedTexImage2D>(); |
207 if (c) { | 207 if (c) { |
208 c->Init(target, | 208 c->Init(target, level, internalformat, width, height, imageSize, |
209 level, | 209 data_shm_id, data_shm_offset); |
210 internalformat, | |
211 width, | |
212 height, | |
213 imageSize, | |
214 data_shm_id, | |
215 data_shm_offset); | |
216 } | 210 } |
217 } | 211 } |
218 | 212 |
219 void CompressedTexSubImage2DBucket(GLenum target, | 213 void CompressedTexSubImage2DBucket(GLenum target, |
220 GLint level, | 214 GLint level, |
221 GLint xoffset, | 215 GLint xoffset, |
222 GLint yoffset, | 216 GLint yoffset, |
223 GLsizei width, | 217 GLsizei width, |
224 GLsizei height, | 218 GLsizei height, |
225 GLenum format, | 219 GLenum format, |
(...skipping 11 matching lines...) Expand all Loading... |
237 GLint yoffset, | 231 GLint yoffset, |
238 GLsizei width, | 232 GLsizei width, |
239 GLsizei height, | 233 GLsizei height, |
240 GLenum format, | 234 GLenum format, |
241 GLsizei imageSize, | 235 GLsizei imageSize, |
242 uint32_t data_shm_id, | 236 uint32_t data_shm_id, |
243 uint32_t data_shm_offset) { | 237 uint32_t data_shm_offset) { |
244 gles2::cmds::CompressedTexSubImage2D* c = | 238 gles2::cmds::CompressedTexSubImage2D* c = |
245 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>(); | 239 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>(); |
246 if (c) { | 240 if (c) { |
247 c->Init(target, | 241 c->Init(target, level, xoffset, yoffset, width, height, format, imageSize, |
248 level, | 242 data_shm_id, data_shm_offset); |
249 xoffset, | |
250 yoffset, | |
251 width, | |
252 height, | |
253 format, | |
254 imageSize, | |
255 data_shm_id, | |
256 data_shm_offset); | |
257 } | 243 } |
258 } | 244 } |
259 | 245 |
260 void CopyTexImage2D(GLenum target, | 246 void CopyTexImage2D(GLenum target, |
261 GLint level, | 247 GLint level, |
262 GLenum internalformat, | 248 GLenum internalformat, |
263 GLint x, | 249 GLint x, |
264 GLint y, | 250 GLint y, |
265 GLsizei width, | 251 GLsizei width, |
266 GLsizei height) { | 252 GLsizei height) { |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 GLsizei height, | 871 GLsizei height, |
886 GLenum format, | 872 GLenum format, |
887 GLenum type, | 873 GLenum type, |
888 uint32_t pixels_shm_id, | 874 uint32_t pixels_shm_id, |
889 uint32_t pixels_shm_offset, | 875 uint32_t pixels_shm_offset, |
890 uint32_t result_shm_id, | 876 uint32_t result_shm_id, |
891 uint32_t result_shm_offset, | 877 uint32_t result_shm_offset, |
892 GLboolean async) { | 878 GLboolean async) { |
893 gles2::cmds::ReadPixels* c = GetCmdSpace<gles2::cmds::ReadPixels>(); | 879 gles2::cmds::ReadPixels* c = GetCmdSpace<gles2::cmds::ReadPixels>(); |
894 if (c) { | 880 if (c) { |
895 c->Init(x, | 881 c->Init(x, y, width, height, format, type, pixels_shm_id, pixels_shm_offset, |
896 y, | 882 result_shm_id, result_shm_offset, async); |
897 width, | |
898 height, | |
899 format, | |
900 type, | |
901 pixels_shm_id, | |
902 pixels_shm_offset, | |
903 result_shm_id, | |
904 result_shm_offset, | |
905 async); | |
906 } | 883 } |
907 } | 884 } |
908 | 885 |
909 void ReleaseShaderCompiler() { | 886 void ReleaseShaderCompiler() { |
910 gles2::cmds::ReleaseShaderCompiler* c = | 887 gles2::cmds::ReleaseShaderCompiler* c = |
911 GetCmdSpace<gles2::cmds::ReleaseShaderCompiler>(); | 888 GetCmdSpace<gles2::cmds::ReleaseShaderCompiler>(); |
912 if (c) { | 889 if (c) { |
913 c->Init(); | 890 c->Init(); |
914 } | 891 } |
915 } | 892 } |
(...skipping 25 matching lines...) Expand all Loading... |
941 | 918 |
942 void ShaderBinary(GLsizei n, | 919 void ShaderBinary(GLsizei n, |
943 uint32_t shaders_shm_id, | 920 uint32_t shaders_shm_id, |
944 uint32_t shaders_shm_offset, | 921 uint32_t shaders_shm_offset, |
945 GLenum binaryformat, | 922 GLenum binaryformat, |
946 uint32_t binary_shm_id, | 923 uint32_t binary_shm_id, |
947 uint32_t binary_shm_offset, | 924 uint32_t binary_shm_offset, |
948 GLsizei length) { | 925 GLsizei length) { |
949 gles2::cmds::ShaderBinary* c = GetCmdSpace<gles2::cmds::ShaderBinary>(); | 926 gles2::cmds::ShaderBinary* c = GetCmdSpace<gles2::cmds::ShaderBinary>(); |
950 if (c) { | 927 if (c) { |
951 c->Init(n, | 928 c->Init(n, shaders_shm_id, shaders_shm_offset, binaryformat, binary_shm_id, |
952 shaders_shm_id, | 929 binary_shm_offset, length); |
953 shaders_shm_offset, | |
954 binaryformat, | |
955 binary_shm_id, | |
956 binary_shm_offset, | |
957 length); | |
958 } | 930 } |
959 } | 931 } |
960 | 932 |
961 void ShaderSourceBucket(GLuint shader, uint32_t data_bucket_id) { | 933 void ShaderSourceBucket(GLuint shader, uint32_t data_bucket_id) { |
962 gles2::cmds::ShaderSourceBucket* c = | 934 gles2::cmds::ShaderSourceBucket* c = |
963 GetCmdSpace<gles2::cmds::ShaderSourceBucket>(); | 935 GetCmdSpace<gles2::cmds::ShaderSourceBucket>(); |
964 if (c) { | 936 if (c) { |
965 c->Init(shader, data_bucket_id); | 937 c->Init(shader, data_bucket_id); |
966 } | 938 } |
967 } | 939 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 GLint level, | 987 GLint level, |
1016 GLint internalformat, | 988 GLint internalformat, |
1017 GLsizei width, | 989 GLsizei width, |
1018 GLsizei height, | 990 GLsizei height, |
1019 GLenum format, | 991 GLenum format, |
1020 GLenum type, | 992 GLenum type, |
1021 uint32_t pixels_shm_id, | 993 uint32_t pixels_shm_id, |
1022 uint32_t pixels_shm_offset) { | 994 uint32_t pixels_shm_offset) { |
1023 gles2::cmds::TexImage2D* c = GetCmdSpace<gles2::cmds::TexImage2D>(); | 995 gles2::cmds::TexImage2D* c = GetCmdSpace<gles2::cmds::TexImage2D>(); |
1024 if (c) { | 996 if (c) { |
1025 c->Init(target, | 997 c->Init(target, level, internalformat, width, height, format, type, |
1026 level, | 998 pixels_shm_id, pixels_shm_offset); |
1027 internalformat, | |
1028 width, | |
1029 height, | |
1030 format, | |
1031 type, | |
1032 pixels_shm_id, | |
1033 pixels_shm_offset); | |
1034 } | 999 } |
1035 } | 1000 } |
1036 | 1001 |
1037 void TexParameterf(GLenum target, GLenum pname, GLfloat param) { | 1002 void TexParameterf(GLenum target, GLenum pname, GLfloat param) { |
1038 gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>(); | 1003 gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>(); |
1039 if (c) { | 1004 if (c) { |
1040 c->Init(target, pname, param); | 1005 c->Init(target, pname, param); |
1041 } | 1006 } |
1042 } | 1007 } |
1043 | 1008 |
(...skipping 30 matching lines...) Expand all Loading... |
1074 GLint yoffset, | 1039 GLint yoffset, |
1075 GLsizei width, | 1040 GLsizei width, |
1076 GLsizei height, | 1041 GLsizei height, |
1077 GLenum format, | 1042 GLenum format, |
1078 GLenum type, | 1043 GLenum type, |
1079 uint32_t pixels_shm_id, | 1044 uint32_t pixels_shm_id, |
1080 uint32_t pixels_shm_offset, | 1045 uint32_t pixels_shm_offset, |
1081 GLboolean internal) { | 1046 GLboolean internal) { |
1082 gles2::cmds::TexSubImage2D* c = GetCmdSpace<gles2::cmds::TexSubImage2D>(); | 1047 gles2::cmds::TexSubImage2D* c = GetCmdSpace<gles2::cmds::TexSubImage2D>(); |
1083 if (c) { | 1048 if (c) { |
1084 c->Init(target, | 1049 c->Init(target, level, xoffset, yoffset, width, height, format, type, |
1085 level, | 1050 pixels_shm_id, pixels_shm_offset, internal); |
1086 xoffset, | |
1087 yoffset, | |
1088 width, | |
1089 height, | |
1090 format, | |
1091 type, | |
1092 pixels_shm_id, | |
1093 pixels_shm_offset, | |
1094 internal); | |
1095 } | 1051 } |
1096 } | 1052 } |
1097 | 1053 |
1098 void Uniform1f(GLint location, GLfloat x) { | 1054 void Uniform1f(GLint location, GLfloat x) { |
1099 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>(); | 1055 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>(); |
1100 if (c) { | 1056 if (c) { |
1101 c->Init(location, x); | 1057 c->Init(location, x); |
1102 } | 1058 } |
1103 } | 1059 } |
1104 | 1060 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 GLint srcY1, | 1326 GLint srcY1, |
1371 GLint dstX0, | 1327 GLint dstX0, |
1372 GLint dstY0, | 1328 GLint dstY0, |
1373 GLint dstX1, | 1329 GLint dstX1, |
1374 GLint dstY1, | 1330 GLint dstY1, |
1375 GLbitfield mask, | 1331 GLbitfield mask, |
1376 GLenum filter) { | 1332 GLenum filter) { |
1377 gles2::cmds::BlitFramebufferCHROMIUM* c = | 1333 gles2::cmds::BlitFramebufferCHROMIUM* c = |
1378 GetCmdSpace<gles2::cmds::BlitFramebufferCHROMIUM>(); | 1334 GetCmdSpace<gles2::cmds::BlitFramebufferCHROMIUM>(); |
1379 if (c) { | 1335 if (c) { |
1380 c->Init( | 1336 c->Init(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, |
1381 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); | 1337 filter); |
1382 } | 1338 } |
1383 } | 1339 } |
1384 | 1340 |
1385 void RenderbufferStorageMultisampleCHROMIUM(GLenum target, | 1341 void RenderbufferStorageMultisampleCHROMIUM(GLenum target, |
1386 GLsizei samples, | 1342 GLsizei samples, |
1387 GLenum internalformat, | 1343 GLenum internalformat, |
1388 GLsizei width, | 1344 GLsizei width, |
1389 GLsizei height) { | 1345 GLsizei height) { |
1390 gles2::cmds::RenderbufferStorageMultisampleCHROMIUM* c = | 1346 gles2::cmds::RenderbufferStorageMultisampleCHROMIUM* c = |
1391 GetCmdSpace<gles2::cmds::RenderbufferStorageMultisampleCHROMIUM>(); | 1347 GetCmdSpace<gles2::cmds::RenderbufferStorageMultisampleCHROMIUM>(); |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1584 | 1540 |
1585 void GetMultipleIntegervCHROMIUM(uint32_t pnames_shm_id, | 1541 void GetMultipleIntegervCHROMIUM(uint32_t pnames_shm_id, |
1586 uint32_t pnames_shm_offset, | 1542 uint32_t pnames_shm_offset, |
1587 GLuint count, | 1543 GLuint count, |
1588 uint32_t results_shm_id, | 1544 uint32_t results_shm_id, |
1589 uint32_t results_shm_offset, | 1545 uint32_t results_shm_offset, |
1590 GLsizeiptr size) { | 1546 GLsizeiptr size) { |
1591 gles2::cmds::GetMultipleIntegervCHROMIUM* c = | 1547 gles2::cmds::GetMultipleIntegervCHROMIUM* c = |
1592 GetCmdSpace<gles2::cmds::GetMultipleIntegervCHROMIUM>(); | 1548 GetCmdSpace<gles2::cmds::GetMultipleIntegervCHROMIUM>(); |
1593 if (c) { | 1549 if (c) { |
1594 c->Init(pnames_shm_id, | 1550 c->Init(pnames_shm_id, pnames_shm_offset, count, results_shm_id, |
1595 pnames_shm_offset, | 1551 results_shm_offset, size); |
1596 count, | |
1597 results_shm_id, | |
1598 results_shm_offset, | |
1599 size); | |
1600 } | 1552 } |
1601 } | 1553 } |
1602 | 1554 |
1603 void GetProgramInfoCHROMIUM(GLuint program, uint32_t bucket_id) { | 1555 void GetProgramInfoCHROMIUM(GLuint program, uint32_t bucket_id) { |
1604 gles2::cmds::GetProgramInfoCHROMIUM* c = | 1556 gles2::cmds::GetProgramInfoCHROMIUM* c = |
1605 GetCmdSpace<gles2::cmds::GetProgramInfoCHROMIUM>(); | 1557 GetCmdSpace<gles2::cmds::GetProgramInfoCHROMIUM>(); |
1606 if (c) { | 1558 if (c) { |
1607 c->Init(program, bucket_id); | 1559 c->Init(program, bucket_id); |
1608 } | 1560 } |
1609 } | 1561 } |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1766 GLenum format, | 1718 GLenum format, |
1767 GLenum type, | 1719 GLenum type, |
1768 uint32_t data_shm_id, | 1720 uint32_t data_shm_id, |
1769 uint32_t data_shm_offset, | 1721 uint32_t data_shm_offset, |
1770 uint32_t async_upload_token, | 1722 uint32_t async_upload_token, |
1771 uint32_t sync_data_shm_id, | 1723 uint32_t sync_data_shm_id, |
1772 uint32_t sync_data_shm_offset) { | 1724 uint32_t sync_data_shm_offset) { |
1773 gles2::cmds::AsyncTexSubImage2DCHROMIUM* c = | 1725 gles2::cmds::AsyncTexSubImage2DCHROMIUM* c = |
1774 GetCmdSpace<gles2::cmds::AsyncTexSubImage2DCHROMIUM>(); | 1726 GetCmdSpace<gles2::cmds::AsyncTexSubImage2DCHROMIUM>(); |
1775 if (c) { | 1727 if (c) { |
1776 c->Init(target, | 1728 c->Init(target, level, xoffset, yoffset, width, height, format, type, |
1777 level, | 1729 data_shm_id, data_shm_offset, async_upload_token, sync_data_shm_id, |
1778 xoffset, | |
1779 yoffset, | |
1780 width, | |
1781 height, | |
1782 format, | |
1783 type, | |
1784 data_shm_id, | |
1785 data_shm_offset, | |
1786 async_upload_token, | |
1787 sync_data_shm_id, | |
1788 sync_data_shm_offset); | 1730 sync_data_shm_offset); |
1789 } | 1731 } |
1790 } | 1732 } |
1791 | 1733 |
1792 void AsyncTexImage2DCHROMIUM(GLenum target, | 1734 void AsyncTexImage2DCHROMIUM(GLenum target, |
1793 GLint level, | 1735 GLint level, |
1794 GLint internalformat, | 1736 GLint internalformat, |
1795 GLsizei width, | 1737 GLsizei width, |
1796 GLsizei height, | 1738 GLsizei height, |
1797 GLenum format, | 1739 GLenum format, |
1798 GLenum type, | 1740 GLenum type, |
1799 uint32_t pixels_shm_id, | 1741 uint32_t pixels_shm_id, |
1800 uint32_t pixels_shm_offset, | 1742 uint32_t pixels_shm_offset, |
1801 uint32_t async_upload_token, | 1743 uint32_t async_upload_token, |
1802 uint32_t sync_data_shm_id, | 1744 uint32_t sync_data_shm_id, |
1803 uint32_t sync_data_shm_offset) { | 1745 uint32_t sync_data_shm_offset) { |
1804 gles2::cmds::AsyncTexImage2DCHROMIUM* c = | 1746 gles2::cmds::AsyncTexImage2DCHROMIUM* c = |
1805 GetCmdSpace<gles2::cmds::AsyncTexImage2DCHROMIUM>(); | 1747 GetCmdSpace<gles2::cmds::AsyncTexImage2DCHROMIUM>(); |
1806 if (c) { | 1748 if (c) { |
1807 c->Init(target, | 1749 c->Init(target, level, internalformat, width, height, format, type, |
1808 level, | 1750 pixels_shm_id, pixels_shm_offset, async_upload_token, |
1809 internalformat, | 1751 sync_data_shm_id, sync_data_shm_offset); |
1810 width, | |
1811 height, | |
1812 format, | |
1813 type, | |
1814 pixels_shm_id, | |
1815 pixels_shm_offset, | |
1816 async_upload_token, | |
1817 sync_data_shm_id, | |
1818 sync_data_shm_offset); | |
1819 } | 1752 } |
1820 } | 1753 } |
1821 | 1754 |
1822 void WaitAsyncTexImage2DCHROMIUM(GLenum target) { | 1755 void WaitAsyncTexImage2DCHROMIUM(GLenum target) { |
1823 gles2::cmds::WaitAsyncTexImage2DCHROMIUM* c = | 1756 gles2::cmds::WaitAsyncTexImage2DCHROMIUM* c = |
1824 GetCmdSpace<gles2::cmds::WaitAsyncTexImage2DCHROMIUM>(); | 1757 GetCmdSpace<gles2::cmds::WaitAsyncTexImage2DCHROMIUM>(); |
1825 if (c) { | 1758 if (c) { |
1826 c->Init(target); | 1759 c->Init(target); |
1827 } | 1760 } |
1828 } | 1761 } |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1889 GLint bounds_y, | 1822 GLint bounds_y, |
1890 GLint bounds_width, | 1823 GLint bounds_width, |
1891 GLint bounds_height, | 1824 GLint bounds_height, |
1892 GLfloat uv_x, | 1825 GLfloat uv_x, |
1893 GLfloat uv_y, | 1826 GLfloat uv_y, |
1894 GLfloat uv_width, | 1827 GLfloat uv_width, |
1895 GLfloat uv_height) { | 1828 GLfloat uv_height) { |
1896 gles2::cmds::ScheduleOverlayPlaneCHROMIUM* c = | 1829 gles2::cmds::ScheduleOverlayPlaneCHROMIUM* c = |
1897 GetCmdSpace<gles2::cmds::ScheduleOverlayPlaneCHROMIUM>(); | 1830 GetCmdSpace<gles2::cmds::ScheduleOverlayPlaneCHROMIUM>(); |
1898 if (c) { | 1831 if (c) { |
1899 c->Init(plane_z_order, | 1832 c->Init(plane_z_order, plane_transform, overlay_texture_id, bounds_x, |
1900 plane_transform, | 1833 bounds_y, bounds_width, bounds_height, uv_x, uv_y, uv_width, |
1901 overlay_texture_id, | |
1902 bounds_x, | |
1903 bounds_y, | |
1904 bounds_width, | |
1905 bounds_height, | |
1906 uv_x, | |
1907 uv_y, | |
1908 uv_width, | |
1909 uv_height); | 1834 uv_height); |
1910 } | 1835 } |
1911 } | 1836 } |
1912 | 1837 |
1913 void MatrixLoadfCHROMIUMImmediate(GLenum matrixMode, const GLfloat* m) { | 1838 void MatrixLoadfCHROMIUMImmediate(GLenum matrixMode, const GLfloat* m) { |
1914 const uint32_t size = | 1839 const uint32_t size = |
1915 gles2::cmds::MatrixLoadfCHROMIUMImmediate::ComputeSize(); | 1840 gles2::cmds::MatrixLoadfCHROMIUMImmediate::ComputeSize(); |
1916 gles2::cmds::MatrixLoadfCHROMIUMImmediate* c = | 1841 gles2::cmds::MatrixLoadfCHROMIUMImmediate* c = |
1917 GetImmediateCmdSpaceTotalSize<gles2::cmds::MatrixLoadfCHROMIUMImmediate>( | 1842 GetImmediateCmdSpaceTotalSize<gles2::cmds::MatrixLoadfCHROMIUMImmediate>( |
1918 size); | 1843 size); |
(...skipping 11 matching lines...) Expand all Loading... |
1930 } | 1855 } |
1931 | 1856 |
1932 void BlendBarrierKHR() { | 1857 void BlendBarrierKHR() { |
1933 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); | 1858 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); |
1934 if (c) { | 1859 if (c) { |
1935 c->Init(); | 1860 c->Init(); |
1936 } | 1861 } |
1937 } | 1862 } |
1938 | 1863 |
1939 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 1864 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |