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