| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 } | 233 } |
| 234 } | 234 } |
| 235 | 235 |
| 236 void ClearStencil(GLint s) { | 236 void ClearStencil(GLint s) { |
| 237 gles2::cmds::ClearStencil* c = GetCmdSpace<gles2::cmds::ClearStencil>(); | 237 gles2::cmds::ClearStencil* c = GetCmdSpace<gles2::cmds::ClearStencil>(); |
| 238 if (c) { | 238 if (c) { |
| 239 c->Init(s); | 239 c->Init(s); |
| 240 } | 240 } |
| 241 } | 241 } |
| 242 | 242 |
| 243 void ClientWaitSync(GLuint sync, | |
| 244 GLbitfield flags, | |
| 245 GLuint timeout_0, | |
| 246 GLuint timeout_1, | |
| 247 uint32_t result_shm_id, | |
| 248 uint32_t result_shm_offset) { | |
| 249 gles2::cmds::ClientWaitSync* c = GetCmdSpace<gles2::cmds::ClientWaitSync>(); | |
| 250 if (c) { | |
| 251 c->Init(sync, flags, timeout_0, timeout_1, result_shm_id, | |
| 252 result_shm_offset); | |
| 253 } | |
| 254 } | |
| 255 | |
| 256 void ColorMask(GLboolean red, | 243 void ColorMask(GLboolean red, |
| 257 GLboolean green, | 244 GLboolean green, |
| 258 GLboolean blue, | 245 GLboolean blue, |
| 259 GLboolean alpha) { | 246 GLboolean alpha) { |
| 260 gles2::cmds::ColorMask* c = GetCmdSpace<gles2::cmds::ColorMask>(); | 247 gles2::cmds::ColorMask* c = GetCmdSpace<gles2::cmds::ColorMask>(); |
| 261 if (c) { | 248 if (c) { |
| 262 c->Init(red, green, blue, alpha); | 249 c->Init(red, green, blue, alpha); |
| 263 } | 250 } |
| 264 } | 251 } |
| 265 | 252 |
| (...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1988 } | 1975 } |
| 1989 } | 1976 } |
| 1990 | 1977 |
| 1991 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { | 1978 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { |
| 1992 gles2::cmds::Viewport* c = GetCmdSpace<gles2::cmds::Viewport>(); | 1979 gles2::cmds::Viewport* c = GetCmdSpace<gles2::cmds::Viewport>(); |
| 1993 if (c) { | 1980 if (c) { |
| 1994 c->Init(x, y, width, height); | 1981 c->Init(x, y, width, height); |
| 1995 } | 1982 } |
| 1996 } | 1983 } |
| 1997 | 1984 |
| 1998 void WaitSync(GLuint sync, | |
| 1999 GLbitfield flags, | |
| 2000 GLuint timeout_0, | |
| 2001 GLuint timeout_1) { | |
| 2002 gles2::cmds::WaitSync* c = GetCmdSpace<gles2::cmds::WaitSync>(); | |
| 2003 if (c) { | |
| 2004 c->Init(sync, flags, timeout_0, timeout_1); | |
| 2005 } | |
| 2006 } | |
| 2007 | |
| 2008 void BlitFramebufferCHROMIUM(GLint srcX0, | 1985 void BlitFramebufferCHROMIUM(GLint srcX0, |
| 2009 GLint srcY0, | 1986 GLint srcY0, |
| 2010 GLint srcX1, | 1987 GLint srcX1, |
| 2011 GLint srcY1, | 1988 GLint srcY1, |
| 2012 GLint dstX0, | 1989 GLint dstX0, |
| 2013 GLint dstY0, | 1990 GLint dstY0, |
| 2014 GLint dstX1, | 1991 GLint dstX1, |
| 2015 GLint dstY1, | 1992 GLint dstY1, |
| 2016 GLbitfield mask, | 1993 GLbitfield mask, |
| 2017 GLenum filter) { | 1994 GLenum filter) { |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2640 } | 2617 } |
| 2641 | 2618 |
| 2642 void BlendBarrierKHR() { | 2619 void BlendBarrierKHR() { |
| 2643 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); | 2620 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); |
| 2644 if (c) { | 2621 if (c) { |
| 2645 c->Init(); | 2622 c->Init(); |
| 2646 } | 2623 } |
| 2647 } | 2624 } |
| 2648 | 2625 |
| 2649 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 2626 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
| OLD | NEW |