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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 243 void ClientWaitSync(GLuint sync, |
244 GLbitfield flags, | 244 GLbitfield flags, |
245 GLuint timeout_0, | 245 GLuint64 timeout, |
246 GLuint timeout_1, | |
247 uint32_t result_shm_id, | 246 uint32_t result_shm_id, |
248 uint32_t result_shm_offset) { | 247 uint32_t result_shm_offset) { |
249 gles2::cmds::ClientWaitSync* c = GetCmdSpace<gles2::cmds::ClientWaitSync>(); | 248 gles2::cmds::ClientWaitSync* c = GetCmdSpace<gles2::cmds::ClientWaitSync>(); |
250 if (c) { | 249 if (c) { |
251 c->Init(sync, flags, timeout_0, timeout_1, result_shm_id, | 250 c->Init(sync, flags, timeout, result_shm_id, result_shm_offset); |
252 result_shm_offset); | |
253 } | 251 } |
254 } | 252 } |
255 | 253 |
256 void ColorMask(GLboolean red, | 254 void ColorMask(GLboolean red, |
257 GLboolean green, | 255 GLboolean green, |
258 GLboolean blue, | 256 GLboolean blue, |
259 GLboolean alpha) { | 257 GLboolean alpha) { |
260 gles2::cmds::ColorMask* c = GetCmdSpace<gles2::cmds::ColorMask>(); | 258 gles2::cmds::ColorMask* c = GetCmdSpace<gles2::cmds::ColorMask>(); |
261 if (c) { | 259 if (c) { |
262 c->Init(red, green, blue, alpha); | 260 c->Init(red, green, blue, alpha); |
(...skipping 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2139 } | 2137 } |
2140 } | 2138 } |
2141 | 2139 |
2142 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { | 2140 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { |
2143 gles2::cmds::Viewport* c = GetCmdSpace<gles2::cmds::Viewport>(); | 2141 gles2::cmds::Viewport* c = GetCmdSpace<gles2::cmds::Viewport>(); |
2144 if (c) { | 2142 if (c) { |
2145 c->Init(x, y, width, height); | 2143 c->Init(x, y, width, height); |
2146 } | 2144 } |
2147 } | 2145 } |
2148 | 2146 |
2149 void WaitSync(GLuint sync, | 2147 void WaitSync(GLuint sync, GLbitfield flags, GLuint64 timeout) { |
2150 GLbitfield flags, | |
2151 GLuint timeout_0, | |
2152 GLuint timeout_1) { | |
2153 gles2::cmds::WaitSync* c = GetCmdSpace<gles2::cmds::WaitSync>(); | 2148 gles2::cmds::WaitSync* c = GetCmdSpace<gles2::cmds::WaitSync>(); |
2154 if (c) { | 2149 if (c) { |
2155 c->Init(sync, flags, timeout_0, timeout_1); | 2150 c->Init(sync, flags, timeout); |
2156 } | 2151 } |
2157 } | 2152 } |
2158 | 2153 |
2159 void BlitFramebufferCHROMIUM(GLint srcX0, | 2154 void BlitFramebufferCHROMIUM(GLint srcX0, |
2160 GLint srcY0, | 2155 GLint srcY0, |
2161 GLint srcX1, | 2156 GLint srcX1, |
2162 GLint srcY1, | 2157 GLint srcY1, |
2163 GLint dstX0, | 2158 GLint dstX0, |
2164 GLint dstY0, | 2159 GLint dstY0, |
2165 GLint dstX1, | 2160 GLint dstX1, |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3202 uint32_t index_shm_id, | 3197 uint32_t index_shm_id, |
3203 uint32_t index_shm_offset) { | 3198 uint32_t index_shm_offset) { |
3204 gles2::cmds::GetFragDataIndexEXT* c = | 3199 gles2::cmds::GetFragDataIndexEXT* c = |
3205 GetCmdSpace<gles2::cmds::GetFragDataIndexEXT>(); | 3200 GetCmdSpace<gles2::cmds::GetFragDataIndexEXT>(); |
3206 if (c) { | 3201 if (c) { |
3207 c->Init(program, name_bucket_id, index_shm_id, index_shm_offset); | 3202 c->Init(program, name_bucket_id, index_shm_id, index_shm_offset); |
3208 } | 3203 } |
3209 } | 3204 } |
3210 | 3205 |
3211 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 3206 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |