| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 GLclampf blue, | 112 GLclampf blue, |
| 113 GLclampf alpha) { | 113 GLclampf alpha) { |
| 114 gles2::GetGLContext()->ClearColor(red, green, blue, alpha); | 114 gles2::GetGLContext()->ClearColor(red, green, blue, alpha); |
| 115 } | 115 } |
| 116 void GLES2ClearDepthf(GLclampf depth) { | 116 void GLES2ClearDepthf(GLclampf depth) { |
| 117 gles2::GetGLContext()->ClearDepthf(depth); | 117 gles2::GetGLContext()->ClearDepthf(depth); |
| 118 } | 118 } |
| 119 void GLES2ClearStencil(GLint s) { | 119 void GLES2ClearStencil(GLint s) { |
| 120 gles2::GetGLContext()->ClearStencil(s); | 120 gles2::GetGLContext()->ClearStencil(s); |
| 121 } | 121 } |
| 122 GLenum GLES2ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) { |
| 123 return gles2::GetGLContext()->ClientWaitSync(sync, flags, timeout); |
| 124 } |
| 122 void GLES2ColorMask(GLboolean red, | 125 void GLES2ColorMask(GLboolean red, |
| 123 GLboolean green, | 126 GLboolean green, |
| 124 GLboolean blue, | 127 GLboolean blue, |
| 125 GLboolean alpha) { | 128 GLboolean alpha) { |
| 126 gles2::GetGLContext()->ColorMask(red, green, blue, alpha); | 129 gles2::GetGLContext()->ColorMask(red, green, blue, alpha); |
| 127 } | 130 } |
| 128 void GLES2CompileShader(GLuint shader) { | 131 void GLES2CompileShader(GLuint shader) { |
| 129 gles2::GetGLContext()->CompileShader(shader); | 132 gles2::GetGLContext()->CompileShader(shader); |
| 130 } | 133 } |
| 131 void GLES2CompressedTexImage2D(GLenum target, | 134 void GLES2CompressedTexImage2D(GLenum target, |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 GLenum type, | 925 GLenum type, |
| 923 GLboolean normalized, | 926 GLboolean normalized, |
| 924 GLsizei stride, | 927 GLsizei stride, |
| 925 const void* ptr) { | 928 const void* ptr) { |
| 926 gles2::GetGLContext()->VertexAttribPointer(indx, size, type, normalized, | 929 gles2::GetGLContext()->VertexAttribPointer(indx, size, type, normalized, |
| 927 stride, ptr); | 930 stride, ptr); |
| 928 } | 931 } |
| 929 void GLES2Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { | 932 void GLES2Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { |
| 930 gles2::GetGLContext()->Viewport(x, y, width, height); | 933 gles2::GetGLContext()->Viewport(x, y, width, height); |
| 931 } | 934 } |
| 935 void GLES2WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) { |
| 936 gles2::GetGLContext()->WaitSync(sync, flags, timeout); |
| 937 } |
| 932 void GLES2BlitFramebufferCHROMIUM(GLint srcX0, | 938 void GLES2BlitFramebufferCHROMIUM(GLint srcX0, |
| 933 GLint srcY0, | 939 GLint srcY0, |
| 934 GLint srcX1, | 940 GLint srcX1, |
| 935 GLint srcY1, | 941 GLint srcY1, |
| 936 GLint dstX0, | 942 GLint dstX0, |
| 937 GLint dstY0, | 943 GLint dstY0, |
| 938 GLint dstX1, | 944 GLint dstX1, |
| 939 GLint dstY1, | 945 GLint dstY1, |
| 940 GLbitfield mask, | 946 GLbitfield mask, |
| 941 GLenum filter) { | 947 GLenum filter) { |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1414 }, | 1420 }, |
| 1415 { | 1421 { |
| 1416 "glClearDepthf", | 1422 "glClearDepthf", |
| 1417 reinterpret_cast<GLES2FunctionPointer>(glClearDepthf), | 1423 reinterpret_cast<GLES2FunctionPointer>(glClearDepthf), |
| 1418 }, | 1424 }, |
| 1419 { | 1425 { |
| 1420 "glClearStencil", | 1426 "glClearStencil", |
| 1421 reinterpret_cast<GLES2FunctionPointer>(glClearStencil), | 1427 reinterpret_cast<GLES2FunctionPointer>(glClearStencil), |
| 1422 }, | 1428 }, |
| 1423 { | 1429 { |
| 1430 "glClientWaitSync", |
| 1431 reinterpret_cast<GLES2FunctionPointer>(glClientWaitSync), |
| 1432 }, |
| 1433 { |
| 1424 "glColorMask", | 1434 "glColorMask", |
| 1425 reinterpret_cast<GLES2FunctionPointer>(glColorMask), | 1435 reinterpret_cast<GLES2FunctionPointer>(glColorMask), |
| 1426 }, | 1436 }, |
| 1427 { | 1437 { |
| 1428 "glCompileShader", | 1438 "glCompileShader", |
| 1429 reinterpret_cast<GLES2FunctionPointer>(glCompileShader), | 1439 reinterpret_cast<GLES2FunctionPointer>(glCompileShader), |
| 1430 }, | 1440 }, |
| 1431 { | 1441 { |
| 1432 "glCompressedTexImage2D", | 1442 "glCompressedTexImage2D", |
| 1433 reinterpret_cast<GLES2FunctionPointer>(glCompressedTexImage2D), | 1443 reinterpret_cast<GLES2FunctionPointer>(glCompressedTexImage2D), |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2139 }, | 2149 }, |
| 2140 { | 2150 { |
| 2141 "glVertexAttribPointer", | 2151 "glVertexAttribPointer", |
| 2142 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribPointer), | 2152 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribPointer), |
| 2143 }, | 2153 }, |
| 2144 { | 2154 { |
| 2145 "glViewport", | 2155 "glViewport", |
| 2146 reinterpret_cast<GLES2FunctionPointer>(glViewport), | 2156 reinterpret_cast<GLES2FunctionPointer>(glViewport), |
| 2147 }, | 2157 }, |
| 2148 { | 2158 { |
| 2159 "glWaitSync", |
| 2160 reinterpret_cast<GLES2FunctionPointer>(glWaitSync), |
| 2161 }, |
| 2162 { |
| 2149 "glBlitFramebufferCHROMIUM", | 2163 "glBlitFramebufferCHROMIUM", |
| 2150 reinterpret_cast<GLES2FunctionPointer>(glBlitFramebufferCHROMIUM), | 2164 reinterpret_cast<GLES2FunctionPointer>(glBlitFramebufferCHROMIUM), |
| 2151 }, | 2165 }, |
| 2152 { | 2166 { |
| 2153 "glRenderbufferStorageMultisampleCHROMIUM", | 2167 "glRenderbufferStorageMultisampleCHROMIUM", |
| 2154 reinterpret_cast<GLES2FunctionPointer>( | 2168 reinterpret_cast<GLES2FunctionPointer>( |
| 2155 glRenderbufferStorageMultisampleCHROMIUM), | 2169 glRenderbufferStorageMultisampleCHROMIUM), |
| 2156 }, | 2170 }, |
| 2157 { | 2171 { |
| 2158 "glRenderbufferStorageMultisampleEXT", | 2172 "glRenderbufferStorageMultisampleEXT", |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2476 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), | 2490 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), |
| 2477 }, | 2491 }, |
| 2478 { | 2492 { |
| 2479 NULL, | 2493 NULL, |
| 2480 NULL, | 2494 NULL, |
| 2481 }, | 2495 }, |
| 2482 }; | 2496 }; |
| 2483 | 2497 |
| 2484 } // namespace gles2 | 2498 } // namespace gles2 |
| 2485 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 2499 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
| OLD | NEW |