| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 GLint level, | 174 GLint level, |
| 175 GLint xoffset, | 175 GLint xoffset, |
| 176 GLint yoffset, | 176 GLint yoffset, |
| 177 GLint x, | 177 GLint x, |
| 178 GLint y, | 178 GLint y, |
| 179 GLsizei width, | 179 GLsizei width, |
| 180 GLsizei height) { | 180 GLsizei height) { |
| 181 gles2::GetGLContext()->CopyTexSubImage2D(target, level, xoffset, yoffset, x, | 181 gles2::GetGLContext()->CopyTexSubImage2D(target, level, xoffset, yoffset, x, |
| 182 y, width, height); | 182 y, width, height); |
| 183 } | 183 } |
| 184 void GLES2CopyTexSubImage3D(GLenum target, |
| 185 GLint level, |
| 186 GLint xoffset, |
| 187 GLint yoffset, |
| 188 GLint zoffset, |
| 189 GLint x, |
| 190 GLint y, |
| 191 GLsizei width, |
| 192 GLsizei height) { |
| 193 gles2::GetGLContext()->CopyTexSubImage3D(target, level, xoffset, yoffset, |
| 194 zoffset, x, y, width, height); |
| 195 } |
| 184 GLuint GLES2CreateProgram() { | 196 GLuint GLES2CreateProgram() { |
| 185 return gles2::GetGLContext()->CreateProgram(); | 197 return gles2::GetGLContext()->CreateProgram(); |
| 186 } | 198 } |
| 187 GLuint GLES2CreateShader(GLenum type) { | 199 GLuint GLES2CreateShader(GLenum type) { |
| 188 return gles2::GetGLContext()->CreateShader(type); | 200 return gles2::GetGLContext()->CreateShader(type); |
| 189 } | 201 } |
| 190 void GLES2CullFace(GLenum mode) { | 202 void GLES2CullFace(GLenum mode) { |
| 191 gles2::GetGLContext()->CullFace(mode); | 203 gles2::GetGLContext()->CullFace(mode); |
| 192 } | 204 } |
| 193 void GLES2DeleteBuffers(GLsizei n, const GLuint* buffers) { | 205 void GLES2DeleteBuffers(GLsizei n, const GLuint* buffers) { |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 GLsizei width, | 669 GLsizei width, |
| 658 GLsizei height, | 670 GLsizei height, |
| 659 GLsizei depth, | 671 GLsizei depth, |
| 660 GLenum format, | 672 GLenum format, |
| 661 GLenum type, | 673 GLenum type, |
| 662 const void* pixels) { | 674 const void* pixels) { |
| 663 gles2::GetGLContext()->TexSubImage3D(target, level, xoffset, yoffset, zoffset, | 675 gles2::GetGLContext()->TexSubImage3D(target, level, xoffset, yoffset, zoffset, |
| 664 width, height, depth, format, type, | 676 width, height, depth, format, type, |
| 665 pixels); | 677 pixels); |
| 666 } | 678 } |
| 679 void GLES2TransformFeedbackVaryings(GLuint program, |
| 680 GLsizei count, |
| 681 const char* const* varyings, |
| 682 GLenum buffermode) { |
| 683 gles2::GetGLContext()->TransformFeedbackVaryings(program, count, varyings, |
| 684 buffermode); |
| 685 } |
| 667 void GLES2Uniform1f(GLint location, GLfloat x) { | 686 void GLES2Uniform1f(GLint location, GLfloat x) { |
| 668 gles2::GetGLContext()->Uniform1f(location, x); | 687 gles2::GetGLContext()->Uniform1f(location, x); |
| 669 } | 688 } |
| 670 void GLES2Uniform1fv(GLint location, GLsizei count, const GLfloat* v) { | 689 void GLES2Uniform1fv(GLint location, GLsizei count, const GLfloat* v) { |
| 671 gles2::GetGLContext()->Uniform1fv(location, count, v); | 690 gles2::GetGLContext()->Uniform1fv(location, count, v); |
| 672 } | 691 } |
| 673 void GLES2Uniform1i(GLint location, GLint x) { | 692 void GLES2Uniform1i(GLint location, GLint x) { |
| 674 gles2::GetGLContext()->Uniform1i(location, x); | 693 gles2::GetGLContext()->Uniform1i(location, x); |
| 675 } | 694 } |
| 676 void GLES2Uniform1iv(GLint location, GLsizei count, const GLint* v) { | 695 void GLES2Uniform1iv(GLint location, GLsizei count, const GLint* v) { |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 }, | 1376 }, |
| 1358 { | 1377 { |
| 1359 "glCopyTexImage2D", | 1378 "glCopyTexImage2D", |
| 1360 reinterpret_cast<GLES2FunctionPointer>(glCopyTexImage2D), | 1379 reinterpret_cast<GLES2FunctionPointer>(glCopyTexImage2D), |
| 1361 }, | 1380 }, |
| 1362 { | 1381 { |
| 1363 "glCopyTexSubImage2D", | 1382 "glCopyTexSubImage2D", |
| 1364 reinterpret_cast<GLES2FunctionPointer>(glCopyTexSubImage2D), | 1383 reinterpret_cast<GLES2FunctionPointer>(glCopyTexSubImage2D), |
| 1365 }, | 1384 }, |
| 1366 { | 1385 { |
| 1386 "glCopyTexSubImage3D", |
| 1387 reinterpret_cast<GLES2FunctionPointer>(glCopyTexSubImage3D), |
| 1388 }, |
| 1389 { |
| 1367 "glCreateProgram", | 1390 "glCreateProgram", |
| 1368 reinterpret_cast<GLES2FunctionPointer>(glCreateProgram), | 1391 reinterpret_cast<GLES2FunctionPointer>(glCreateProgram), |
| 1369 }, | 1392 }, |
| 1370 { | 1393 { |
| 1371 "glCreateShader", | 1394 "glCreateShader", |
| 1372 reinterpret_cast<GLES2FunctionPointer>(glCreateShader), | 1395 reinterpret_cast<GLES2FunctionPointer>(glCreateShader), |
| 1373 }, | 1396 }, |
| 1374 { | 1397 { |
| 1375 "glCullFace", | 1398 "glCullFace", |
| 1376 reinterpret_cast<GLES2FunctionPointer>(glCullFace), | 1399 reinterpret_cast<GLES2FunctionPointer>(glCullFace), |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1814 }, | 1837 }, |
| 1815 { | 1838 { |
| 1816 "glTexSubImage2D", | 1839 "glTexSubImage2D", |
| 1817 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage2D), | 1840 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage2D), |
| 1818 }, | 1841 }, |
| 1819 { | 1842 { |
| 1820 "glTexSubImage3D", | 1843 "glTexSubImage3D", |
| 1821 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage3D), | 1844 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage3D), |
| 1822 }, | 1845 }, |
| 1823 { | 1846 { |
| 1847 "glTransformFeedbackVaryings", |
| 1848 reinterpret_cast<GLES2FunctionPointer>(glTransformFeedbackVaryings), |
| 1849 }, |
| 1850 { |
| 1824 "glUniform1f", | 1851 "glUniform1f", |
| 1825 reinterpret_cast<GLES2FunctionPointer>(glUniform1f), | 1852 reinterpret_cast<GLES2FunctionPointer>(glUniform1f), |
| 1826 }, | 1853 }, |
| 1827 { | 1854 { |
| 1828 "glUniform1fv", | 1855 "glUniform1fv", |
| 1829 reinterpret_cast<GLES2FunctionPointer>(glUniform1fv), | 1856 reinterpret_cast<GLES2FunctionPointer>(glUniform1fv), |
| 1830 }, | 1857 }, |
| 1831 { | 1858 { |
| 1832 "glUniform1i", | 1859 "glUniform1i", |
| 1833 reinterpret_cast<GLES2FunctionPointer>(glUniform1i), | 1860 reinterpret_cast<GLES2FunctionPointer>(glUniform1i), |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2338 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), | 2365 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), |
| 2339 }, | 2366 }, |
| 2340 { | 2367 { |
| 2341 NULL, | 2368 NULL, |
| 2342 NULL, | 2369 NULL, |
| 2343 }, | 2370 }, |
| 2344 }; | 2371 }; |
| 2345 | 2372 |
| 2346 } // namespace gles2 | 2373 } // namespace gles2 |
| 2347 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 2374 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
| OLD | NEW |