| 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 void DrawElements(GLenum mode, | 543 void DrawElements(GLenum mode, |
| 544 GLsizei count, | 544 GLsizei count, |
| 545 GLenum type, | 545 GLenum type, |
| 546 GLuint index_offset) { | 546 GLuint index_offset) { |
| 547 gles2::cmds::DrawElements* c = GetCmdSpace<gles2::cmds::DrawElements>(); | 547 gles2::cmds::DrawElements* c = GetCmdSpace<gles2::cmds::DrawElements>(); |
| 548 if (c) { | 548 if (c) { |
| 549 c->Init(mode, count, type, index_offset); | 549 c->Init(mode, count, type, index_offset); |
| 550 } | 550 } |
| 551 } | 551 } |
| 552 | 552 |
| 553 void DrawRangeElements(GLenum mode, |
| 554 GLuint start, |
| 555 GLuint end, |
| 556 GLsizei count, |
| 557 GLenum type, |
| 558 GLuint index_offset) { |
| 559 gles2::cmds::DrawRangeElements* c = |
| 560 GetCmdSpace<gles2::cmds::DrawRangeElements>(); |
| 561 if (c) { |
| 562 c->Init(mode, start, end, count, type, index_offset); |
| 563 } |
| 564 } |
| 565 |
| 553 void Enable(GLenum cap) { | 566 void Enable(GLenum cap) { |
| 554 gles2::cmds::Enable* c = GetCmdSpace<gles2::cmds::Enable>(); | 567 gles2::cmds::Enable* c = GetCmdSpace<gles2::cmds::Enable>(); |
| 555 if (c) { | 568 if (c) { |
| 556 c->Init(cap); | 569 c->Init(cap); |
| 557 } | 570 } |
| 558 } | 571 } |
| 559 | 572 |
| 560 void EnableVertexAttribArray(GLuint index) { | 573 void EnableVertexAttribArray(GLuint index) { |
| 561 gles2::cmds::EnableVertexAttribArray* c = | 574 gles2::cmds::EnableVertexAttribArray* c = |
| 562 GetCmdSpace<gles2::cmds::EnableVertexAttribArray>(); | 575 GetCmdSpace<gles2::cmds::EnableVertexAttribArray>(); |
| (...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2650 } | 2663 } |
| 2651 | 2664 |
| 2652 void BlendBarrierKHR() { | 2665 void BlendBarrierKHR() { |
| 2653 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); | 2666 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); |
| 2654 if (c) { | 2667 if (c) { |
| 2655 c->Init(); | 2668 c->Init(); |
| 2656 } | 2669 } |
| 2657 } | 2670 } |
| 2658 | 2671 |
| 2659 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 2672 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
| OLD | NEW |