| 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 |
| 11 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 11 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
| 12 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 12 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
| 13 | 13 |
| 14 void ActiveTexture(GLenum texture) { | 14 void ActiveTexture(GLenum texture) { |
| 15 gles2::cmds::ActiveTexture* c = GetCmdSpace<gles2::cmds::ActiveTexture>(); | 15 gles2::cmds::ActiveTexture* c = GetCmdSpace<gles2::cmds::ActiveTexture>(); |
| 16 if (c) { | 16 if (c) { |
| 17 c->Init(texture); | 17 c->Init(texture); |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 void AttachShader(GLuint program, GLuint shader) { | 21 void AttachShader(GLuint program, GLuint shader) { |
| 22 gles2::cmds::AttachShader* c = GetCmdSpace<gles2::cmds::AttachShader>(); | 22 gles2::cmds::AttachShader* c = GetCmdSpace<gles2::cmds::AttachShader>(); |
| 23 if (c) { | 23 if (c) { |
| 24 c->Init(program, shader); | 24 c->Init(program, shader); |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 | 27 |
| 28 void BindAttribLocation(GLuint program, | |
| 29 GLuint index, | |
| 30 uint32_t name_shm_id, | |
| 31 uint32_t name_shm_offset, | |
| 32 uint32_t data_size) { | |
| 33 gles2::cmds::BindAttribLocation* c = | |
| 34 GetCmdSpace<gles2::cmds::BindAttribLocation>(); | |
| 35 if (c) { | |
| 36 c->Init(program, index, name_shm_id, name_shm_offset, data_size); | |
| 37 } | |
| 38 } | |
| 39 | |
| 40 void BindAttribLocationBucket(GLuint program, | 28 void BindAttribLocationBucket(GLuint program, |
| 41 GLuint index, | 29 GLuint index, |
| 42 uint32_t name_bucket_id) { | 30 uint32_t name_bucket_id) { |
| 43 gles2::cmds::BindAttribLocationBucket* c = | 31 gles2::cmds::BindAttribLocationBucket* c = |
| 44 GetCmdSpace<gles2::cmds::BindAttribLocationBucket>(); | 32 GetCmdSpace<gles2::cmds::BindAttribLocationBucket>(); |
| 45 if (c) { | 33 if (c) { |
| 46 c->Init(program, index, name_bucket_id); | 34 c->Init(program, index, name_bucket_id); |
| 47 } | 35 } |
| 48 } | 36 } |
| 49 | 37 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 } | 174 } |
| 187 } | 175 } |
| 188 | 176 |
| 189 void CompileShader(GLuint shader) { | 177 void CompileShader(GLuint shader) { |
| 190 gles2::cmds::CompileShader* c = GetCmdSpace<gles2::cmds::CompileShader>(); | 178 gles2::cmds::CompileShader* c = GetCmdSpace<gles2::cmds::CompileShader>(); |
| 191 if (c) { | 179 if (c) { |
| 192 c->Init(shader); | 180 c->Init(shader); |
| 193 } | 181 } |
| 194 } | 182 } |
| 195 | 183 |
| 184 void CompressedTexImage2DBucket(GLenum target, |
| 185 GLint level, |
| 186 GLenum internalformat, |
| 187 GLsizei width, |
| 188 GLsizei height, |
| 189 GLuint bucket_id) { |
| 190 gles2::cmds::CompressedTexImage2DBucket* c = |
| 191 GetCmdSpace<gles2::cmds::CompressedTexImage2DBucket>(); |
| 192 if (c) { |
| 193 c->Init(target, level, internalformat, width, height, bucket_id); |
| 194 } |
| 195 } |
| 196 |
| 196 void CompressedTexImage2D(GLenum target, | 197 void CompressedTexImage2D(GLenum target, |
| 197 GLint level, | 198 GLint level, |
| 198 GLenum internalformat, | 199 GLenum internalformat, |
| 199 GLsizei width, | 200 GLsizei width, |
| 200 GLsizei height, | 201 GLsizei height, |
| 201 GLsizei imageSize, | 202 GLsizei imageSize, |
| 202 uint32_t data_shm_id, | 203 uint32_t data_shm_id, |
| 203 uint32_t data_shm_offset) { | 204 uint32_t data_shm_offset) { |
| 204 gles2::cmds::CompressedTexImage2D* c = | 205 gles2::cmds::CompressedTexImage2D* c = |
| 205 GetCmdSpace<gles2::cmds::CompressedTexImage2D>(); | 206 GetCmdSpace<gles2::cmds::CompressedTexImage2D>(); |
| 206 if (c) { | 207 if (c) { |
| 207 c->Init(target, | 208 c->Init(target, |
| 208 level, | 209 level, |
| 209 internalformat, | 210 internalformat, |
| 210 width, | 211 width, |
| 211 height, | 212 height, |
| 212 imageSize, | 213 imageSize, |
| 213 data_shm_id, | 214 data_shm_id, |
| 214 data_shm_offset); | 215 data_shm_offset); |
| 215 } | 216 } |
| 216 } | 217 } |
| 217 | 218 |
| 218 void CompressedTexImage2DBucket(GLenum target, | 219 void CompressedTexSubImage2DBucket(GLenum target, |
| 219 GLint level, | 220 GLint level, |
| 220 GLenum internalformat, | 221 GLint xoffset, |
| 221 GLsizei width, | 222 GLint yoffset, |
| 222 GLsizei height, | 223 GLsizei width, |
| 223 GLuint bucket_id) { | 224 GLsizei height, |
| 224 gles2::cmds::CompressedTexImage2DBucket* c = | 225 GLenum format, |
| 225 GetCmdSpace<gles2::cmds::CompressedTexImage2DBucket>(); | 226 GLuint bucket_id) { |
| 227 gles2::cmds::CompressedTexSubImage2DBucket* c = |
| 228 GetCmdSpace<gles2::cmds::CompressedTexSubImage2DBucket>(); |
| 226 if (c) { | 229 if (c) { |
| 227 c->Init(target, level, internalformat, width, height, bucket_id); | 230 c->Init(target, level, xoffset, yoffset, width, height, format, bucket_id); |
| 228 } | 231 } |
| 229 } | 232 } |
| 230 | 233 |
| 231 void CompressedTexSubImage2D(GLenum target, | 234 void CompressedTexSubImage2D(GLenum target, |
| 232 GLint level, | 235 GLint level, |
| 233 GLint xoffset, | 236 GLint xoffset, |
| 234 GLint yoffset, | 237 GLint yoffset, |
| 235 GLsizei width, | 238 GLsizei width, |
| 236 GLsizei height, | 239 GLsizei height, |
| 237 GLenum format, | 240 GLenum format, |
| 238 GLsizei imageSize, | 241 GLsizei imageSize, |
| 239 uint32_t data_shm_id, | 242 uint32_t data_shm_id, |
| 240 uint32_t data_shm_offset) { | 243 uint32_t data_shm_offset) { |
| 241 gles2::cmds::CompressedTexSubImage2D* c = | 244 gles2::cmds::CompressedTexSubImage2D* c = |
| 242 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>(); | 245 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>(); |
| 243 if (c) { | 246 if (c) { |
| 244 c->Init(target, | 247 c->Init(target, |
| 245 level, | 248 level, |
| 246 xoffset, | 249 xoffset, |
| 247 yoffset, | 250 yoffset, |
| 248 width, | 251 width, |
| 249 height, | 252 height, |
| 250 format, | 253 format, |
| 251 imageSize, | 254 imageSize, |
| 252 data_shm_id, | 255 data_shm_id, |
| 253 data_shm_offset); | 256 data_shm_offset); |
| 254 } | 257 } |
| 255 } | 258 } |
| 256 | 259 |
| 257 void CompressedTexSubImage2DBucket(GLenum target, | |
| 258 GLint level, | |
| 259 GLint xoffset, | |
| 260 GLint yoffset, | |
| 261 GLsizei width, | |
| 262 GLsizei height, | |
| 263 GLenum format, | |
| 264 GLuint bucket_id) { | |
| 265 gles2::cmds::CompressedTexSubImage2DBucket* c = | |
| 266 GetCmdSpace<gles2::cmds::CompressedTexSubImage2DBucket>(); | |
| 267 if (c) { | |
| 268 c->Init(target, level, xoffset, yoffset, width, height, format, bucket_id); | |
| 269 } | |
| 270 } | |
| 271 | |
| 272 void CopyTexImage2D(GLenum target, | 260 void CopyTexImage2D(GLenum target, |
| 273 GLint level, | 261 GLint level, |
| 274 GLenum internalformat, | 262 GLenum internalformat, |
| 275 GLint x, | 263 GLint x, |
| 276 GLint y, | 264 GLint y, |
| 277 GLsizei width, | 265 GLsizei width, |
| 278 GLsizei height) { | 266 GLsizei height) { |
| 279 gles2::cmds::CopyTexImage2D* c = GetCmdSpace<gles2::cmds::CopyTexImage2D>(); | 267 gles2::cmds::CopyTexImage2D* c = GetCmdSpace<gles2::cmds::CopyTexImage2D>(); |
| 280 if (c) { | 268 if (c) { |
| 281 c->Init(target, level, internalformat, x, y, width, height); | 269 c->Init(target, level, internalformat, x, y, width, height); |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 c->Init(n, | 929 c->Init(n, |
| 942 shaders_shm_id, | 930 shaders_shm_id, |
| 943 shaders_shm_offset, | 931 shaders_shm_offset, |
| 944 binaryformat, | 932 binaryformat, |
| 945 binary_shm_id, | 933 binary_shm_id, |
| 946 binary_shm_offset, | 934 binary_shm_offset, |
| 947 length); | 935 length); |
| 948 } | 936 } |
| 949 } | 937 } |
| 950 | 938 |
| 951 void ShaderSource(GLuint shader, | |
| 952 uint32_t data_shm_id, | |
| 953 uint32_t data_shm_offset, | |
| 954 uint32_t data_size) { | |
| 955 gles2::cmds::ShaderSource* c = GetCmdSpace<gles2::cmds::ShaderSource>(); | |
| 956 if (c) { | |
| 957 c->Init(shader, data_shm_id, data_shm_offset, data_size); | |
| 958 } | |
| 959 } | |
| 960 | |
| 961 void ShaderSourceBucket(GLuint shader, uint32_t data_bucket_id) { | 939 void ShaderSourceBucket(GLuint shader, uint32_t data_bucket_id) { |
| 962 gles2::cmds::ShaderSourceBucket* c = | 940 gles2::cmds::ShaderSourceBucket* c = |
| 963 GetCmdSpace<gles2::cmds::ShaderSourceBucket>(); | 941 GetCmdSpace<gles2::cmds::ShaderSourceBucket>(); |
| 964 if (c) { | 942 if (c) { |
| 965 c->Init(shader, data_bucket_id); | 943 c->Init(shader, data_bucket_id); |
| 966 } | 944 } |
| 967 } | 945 } |
| 968 | 946 |
| 969 void StencilFunc(GLenum func, GLint ref, GLuint mask) { | 947 void StencilFunc(GLenum func, GLint ref, GLuint mask) { |
| 970 gles2::cmds::StencilFunc* c = GetCmdSpace<gles2::cmds::StencilFunc>(); | 948 gles2::cmds::StencilFunc* c = GetCmdSpace<gles2::cmds::StencilFunc>(); |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1742 const uint32_t size = | 1720 const uint32_t size = |
| 1743 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); | 1721 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); |
| 1744 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = | 1722 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = |
| 1745 GetImmediateCmdSpaceTotalSize< | 1723 GetImmediateCmdSpaceTotalSize< |
| 1746 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); | 1724 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); |
| 1747 if (c) { | 1725 if (c) { |
| 1748 c->Init(target, mailbox); | 1726 c->Init(target, mailbox); |
| 1749 } | 1727 } |
| 1750 } | 1728 } |
| 1751 | 1729 |
| 1752 void BindUniformLocationCHROMIUM(GLuint program, | |
| 1753 GLint location, | |
| 1754 uint32_t name_shm_id, | |
| 1755 uint32_t name_shm_offset, | |
| 1756 uint32_t data_size) { | |
| 1757 gles2::cmds::BindUniformLocationCHROMIUM* c = | |
| 1758 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUM>(); | |
| 1759 if (c) { | |
| 1760 c->Init(program, location, name_shm_id, name_shm_offset, data_size); | |
| 1761 } | |
| 1762 } | |
| 1763 | |
| 1764 void BindUniformLocationCHROMIUMBucket(GLuint program, | 1730 void BindUniformLocationCHROMIUMBucket(GLuint program, |
| 1765 GLint location, | 1731 GLint location, |
| 1766 uint32_t name_bucket_id) { | 1732 uint32_t name_bucket_id) { |
| 1767 gles2::cmds::BindUniformLocationCHROMIUMBucket* c = | 1733 gles2::cmds::BindUniformLocationCHROMIUMBucket* c = |
| 1768 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>(); | 1734 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>(); |
| 1769 if (c) { | 1735 if (c) { |
| 1770 c->Init(program, location, name_bucket_id); | 1736 c->Init(program, location, name_bucket_id); |
| 1771 } | 1737 } |
| 1772 } | 1738 } |
| 1773 | 1739 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1950 bounds_width, | 1916 bounds_width, |
| 1951 bounds_height, | 1917 bounds_height, |
| 1952 uv_x, | 1918 uv_x, |
| 1953 uv_y, | 1919 uv_y, |
| 1954 uv_width, | 1920 uv_width, |
| 1955 uv_height); | 1921 uv_height); |
| 1956 } | 1922 } |
| 1957 } | 1923 } |
| 1958 | 1924 |
| 1959 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 1925 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
| OLD | NEW |