| 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 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1543 }, | 1552 }, |
| 1544 { | 1553 { |
| 1545 "glDrawArrays", | 1554 "glDrawArrays", |
| 1546 reinterpret_cast<GLES2FunctionPointer>(glDrawArrays), | 1555 reinterpret_cast<GLES2FunctionPointer>(glDrawArrays), |
| 1547 }, | 1556 }, |
| 1548 { | 1557 { |
| 1549 "glDrawElements", | 1558 "glDrawElements", |
| 1550 reinterpret_cast<GLES2FunctionPointer>(glDrawElements), | 1559 reinterpret_cast<GLES2FunctionPointer>(glDrawElements), |
| 1551 }, | 1560 }, |
| 1552 { | 1561 { |
| 1562 "glDrawRangeElements", |
| 1563 reinterpret_cast<GLES2FunctionPointer>(glDrawRangeElements), |
| 1564 }, |
| 1565 { |
| 1553 "glEnable", | 1566 "glEnable", |
| 1554 reinterpret_cast<GLES2FunctionPointer>(glEnable), | 1567 reinterpret_cast<GLES2FunctionPointer>(glEnable), |
| 1555 }, | 1568 }, |
| 1556 { | 1569 { |
| 1557 "glEnableVertexAttribArray", | 1570 "glEnableVertexAttribArray", |
| 1558 reinterpret_cast<GLES2FunctionPointer>(glEnableVertexAttribArray), | 1571 reinterpret_cast<GLES2FunctionPointer>(glEnableVertexAttribArray), |
| 1559 }, | 1572 }, |
| 1560 { | 1573 { |
| 1561 "glFenceSync", | 1574 "glFenceSync", |
| 1562 reinterpret_cast<GLES2FunctionPointer>(glFenceSync), | 1575 reinterpret_cast<GLES2FunctionPointer>(glFenceSync), |
| (...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2501 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), | 2514 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), |
| 2502 }, | 2515 }, |
| 2503 { | 2516 { |
| 2504 NULL, | 2517 NULL, |
| 2505 NULL, | 2518 NULL, |
| 2506 }, | 2519 }, |
| 2507 }; | 2520 }; |
| 2508 | 2521 |
| 2509 } // namespace gles2 | 2522 } // namespace gles2 |
| 2510 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 2523 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
| OLD | NEW |