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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 } | 252 } |
253 void GLES2DrawArrays(GLenum mode, GLint first, GLsizei count) { | 253 void GLES2DrawArrays(GLenum mode, GLint first, GLsizei count) { |
254 gles2::GetGLContext()->DrawArrays(mode, first, count); | 254 gles2::GetGLContext()->DrawArrays(mode, first, count); |
255 } | 255 } |
256 void GLES2DrawElements(GLenum mode, | 256 void GLES2DrawElements(GLenum mode, |
257 GLsizei count, | 257 GLsizei count, |
258 GLenum type, | 258 GLenum type, |
259 const void* indices) { | 259 const void* indices) { |
260 gles2::GetGLContext()->DrawElements(mode, count, type, indices); | 260 gles2::GetGLContext()->DrawElements(mode, count, type, indices); |
261 } | 261 } |
| 262 void GLES2DrawRangeElements(GLenum mode, |
| 263 GLuint start, |
| 264 GLuint end, |
| 265 GLsizei count, |
| 266 GLenum type, |
| 267 const void* indices) { |
| 268 gles2::GetGLContext()->DrawRangeElements(mode, start, end, count, type, |
| 269 indices); |
| 270 } |
262 void GLES2Enable(GLenum cap) { | 271 void GLES2Enable(GLenum cap) { |
263 gles2::GetGLContext()->Enable(cap); | 272 gles2::GetGLContext()->Enable(cap); |
264 } | 273 } |
265 void GLES2EnableVertexAttribArray(GLuint index) { | 274 void GLES2EnableVertexAttribArray(GLuint index) { |
266 gles2::GetGLContext()->EnableVertexAttribArray(index); | 275 gles2::GetGLContext()->EnableVertexAttribArray(index); |
267 } | 276 } |
268 GLsync GLES2FenceSync(GLenum condition, GLbitfield flags) { | 277 GLsync GLES2FenceSync(GLenum condition, GLbitfield flags) { |
269 return gles2::GetGLContext()->FenceSync(condition, flags); | 278 return gles2::GetGLContext()->FenceSync(condition, flags); |
270 } | 279 } |
271 void GLES2Finish() { | 280 void GLES2Finish() { |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 void* GLES2MapBufferSubDataCHROMIUM(GLuint target, | 1067 void* GLES2MapBufferSubDataCHROMIUM(GLuint target, |
1059 GLintptr offset, | 1068 GLintptr offset, |
1060 GLsizeiptr size, | 1069 GLsizeiptr size, |
1061 GLenum access) { | 1070 GLenum access) { |
1062 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(target, offset, size, | 1071 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(target, offset, size, |
1063 access); | 1072 access); |
1064 } | 1073 } |
1065 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) { | 1074 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) { |
1066 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem); | 1075 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem); |
1067 } | 1076 } |
| 1077 void* GLES2MapBufferRange(GLenum target, |
| 1078 GLintptr offset, |
| 1079 GLsizeiptr size, |
| 1080 GLbitfield access) { |
| 1081 return gles2::GetGLContext()->MapBufferRange(target, offset, size, access); |
| 1082 } |
| 1083 GLboolean GLES2UnmapBuffer(GLenum target) { |
| 1084 return gles2::GetGLContext()->UnmapBuffer(target); |
| 1085 } |
1068 void* GLES2MapTexSubImage2DCHROMIUM(GLenum target, | 1086 void* GLES2MapTexSubImage2DCHROMIUM(GLenum target, |
1069 GLint level, | 1087 GLint level, |
1070 GLint xoffset, | 1088 GLint xoffset, |
1071 GLint yoffset, | 1089 GLint yoffset, |
1072 GLsizei width, | 1090 GLsizei width, |
1073 GLsizei height, | 1091 GLsizei height, |
1074 GLenum format, | 1092 GLenum format, |
1075 GLenum type, | 1093 GLenum type, |
1076 GLenum access) { | 1094 GLenum access) { |
1077 return gles2::GetGLContext()->MapTexSubImage2DCHROMIUM( | 1095 return gles2::GetGLContext()->MapTexSubImage2DCHROMIUM( |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 }, | 1568 }, |
1551 { | 1569 { |
1552 "glDrawArrays", | 1570 "glDrawArrays", |
1553 reinterpret_cast<GLES2FunctionPointer>(glDrawArrays), | 1571 reinterpret_cast<GLES2FunctionPointer>(glDrawArrays), |
1554 }, | 1572 }, |
1555 { | 1573 { |
1556 "glDrawElements", | 1574 "glDrawElements", |
1557 reinterpret_cast<GLES2FunctionPointer>(glDrawElements), | 1575 reinterpret_cast<GLES2FunctionPointer>(glDrawElements), |
1558 }, | 1576 }, |
1559 { | 1577 { |
| 1578 "glDrawRangeElements", |
| 1579 reinterpret_cast<GLES2FunctionPointer>(glDrawRangeElements), |
| 1580 }, |
| 1581 { |
1560 "glEnable", | 1582 "glEnable", |
1561 reinterpret_cast<GLES2FunctionPointer>(glEnable), | 1583 reinterpret_cast<GLES2FunctionPointer>(glEnable), |
1562 }, | 1584 }, |
1563 { | 1585 { |
1564 "glEnableVertexAttribArray", | 1586 "glEnableVertexAttribArray", |
1565 reinterpret_cast<GLES2FunctionPointer>(glEnableVertexAttribArray), | 1587 reinterpret_cast<GLES2FunctionPointer>(glEnableVertexAttribArray), |
1566 }, | 1588 }, |
1567 { | 1589 { |
1568 "glFenceSync", | 1590 "glFenceSync", |
1569 reinterpret_cast<GLES2FunctionPointer>(glFenceSync), | 1591 reinterpret_cast<GLES2FunctionPointer>(glFenceSync), |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2286 }, | 2308 }, |
2287 { | 2309 { |
2288 "glMapBufferSubDataCHROMIUM", | 2310 "glMapBufferSubDataCHROMIUM", |
2289 reinterpret_cast<GLES2FunctionPointer>(glMapBufferSubDataCHROMIUM), | 2311 reinterpret_cast<GLES2FunctionPointer>(glMapBufferSubDataCHROMIUM), |
2290 }, | 2312 }, |
2291 { | 2313 { |
2292 "glUnmapBufferSubDataCHROMIUM", | 2314 "glUnmapBufferSubDataCHROMIUM", |
2293 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferSubDataCHROMIUM), | 2315 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferSubDataCHROMIUM), |
2294 }, | 2316 }, |
2295 { | 2317 { |
| 2318 "glMapBufferRange", |
| 2319 reinterpret_cast<GLES2FunctionPointer>(glMapBufferRange), |
| 2320 }, |
| 2321 { |
| 2322 "glUnmapBuffer", |
| 2323 reinterpret_cast<GLES2FunctionPointer>(glUnmapBuffer), |
| 2324 }, |
| 2325 { |
2296 "glMapTexSubImage2DCHROMIUM", | 2326 "glMapTexSubImage2DCHROMIUM", |
2297 reinterpret_cast<GLES2FunctionPointer>(glMapTexSubImage2DCHROMIUM), | 2327 reinterpret_cast<GLES2FunctionPointer>(glMapTexSubImage2DCHROMIUM), |
2298 }, | 2328 }, |
2299 { | 2329 { |
2300 "glUnmapTexSubImage2DCHROMIUM", | 2330 "glUnmapTexSubImage2DCHROMIUM", |
2301 reinterpret_cast<GLES2FunctionPointer>(glUnmapTexSubImage2DCHROMIUM), | 2331 reinterpret_cast<GLES2FunctionPointer>(glUnmapTexSubImage2DCHROMIUM), |
2302 }, | 2332 }, |
2303 { | 2333 { |
2304 "glResizeCHROMIUM", | 2334 "glResizeCHROMIUM", |
2305 reinterpret_cast<GLES2FunctionPointer>(glResizeCHROMIUM), | 2335 reinterpret_cast<GLES2FunctionPointer>(glResizeCHROMIUM), |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2512 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), | 2542 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), |
2513 }, | 2543 }, |
2514 { | 2544 { |
2515 NULL, | 2545 NULL, |
2516 NULL, | 2546 NULL, |
2517 }, | 2547 }, |
2518 }; | 2548 }; |
2519 | 2549 |
2520 } // namespace gles2 | 2550 } // namespace gles2 |
2521 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 2551 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
OLD | NEW |