Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: gpu/command_buffer/client/gles2_c_lib_autogen.h

Issue 954183006: Add glDrawRangeElements to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update CL description Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 }, 1568 },
1560 { 1569 {
1561 "glDrawArrays", 1570 "glDrawArrays",
1562 reinterpret_cast<GLES2FunctionPointer>(glDrawArrays), 1571 reinterpret_cast<GLES2FunctionPointer>(glDrawArrays),
1563 }, 1572 },
1564 { 1573 {
1565 "glDrawElements", 1574 "glDrawElements",
1566 reinterpret_cast<GLES2FunctionPointer>(glDrawElements), 1575 reinterpret_cast<GLES2FunctionPointer>(glDrawElements),
1567 }, 1576 },
1568 { 1577 {
1578 "glDrawRangeElements",
1579 reinterpret_cast<GLES2FunctionPointer>(glDrawRangeElements),
1580 },
1581 {
1569 "glEnable", 1582 "glEnable",
1570 reinterpret_cast<GLES2FunctionPointer>(glEnable), 1583 reinterpret_cast<GLES2FunctionPointer>(glEnable),
1571 }, 1584 },
1572 { 1585 {
1573 "glEnableVertexAttribArray", 1586 "glEnableVertexAttribArray",
1574 reinterpret_cast<GLES2FunctionPointer>(glEnableVertexAttribArray), 1587 reinterpret_cast<GLES2FunctionPointer>(glEnableVertexAttribArray),
1575 }, 1588 },
1576 { 1589 {
1577 "glFenceSync", 1590 "glFenceSync",
1578 reinterpret_cast<GLES2FunctionPointer>(glFenceSync), 1591 reinterpret_cast<GLES2FunctionPointer>(glFenceSync),
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
2529 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), 2542 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR),
2530 }, 2543 },
2531 { 2544 {
2532 NULL, 2545 NULL,
2533 NULL, 2546 NULL,
2534 }, 2547 },
2535 }; 2548 };
2536 2549
2537 } // namespace gles2 2550 } // namespace gles2
2538 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ 2551 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698