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 |
11 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 11 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
12 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 12 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
13 | 13 |
14 void ActiveTexture(GLenum texture) { | 14 void ActiveTexture(GLenum texture) { |
15 gles2::cmds::ActiveTexture* c = GetCmdSpace<gles2::cmds::ActiveTexture>(); | 15 gles2::cmds::ActiveTexture* c = GetCmdSpace<gles2::cmds::ActiveTexture>(); |
16 if (c) { | 16 if (c) { |
17 c->Init(texture); | 17 c->Init(texture); |
18 } | 18 } |
19 } | 19 } |
20 | 20 |
21 void AttachShader(GLuint program, GLuint shader) { | 21 void AttachShader(GLuint program, GLuint shader) { |
22 gles2::cmds::AttachShader* c = GetCmdSpace<gles2::cmds::AttachShader>(); | 22 gles2::cmds::AttachShader* c = GetCmdSpace<gles2::cmds::AttachShader>(); |
23 if (c) { | 23 if (c) { |
24 c->Init(program, shader); | 24 c->Init(program, shader); |
25 } | 25 } |
26 } | 26 } |
27 | 27 |
28 void BindAttribLocation(GLuint program, | 28 void BindAttribLocation(GLuint program, |
29 GLuint index, | 29 GLuint index, |
30 uint32 name_shm_id, | 30 uint32_t name_shm_id, |
31 uint32 name_shm_offset, | 31 uint32_t name_shm_offset, |
32 uint32 data_size) { | 32 uint32_t data_size) { |
33 gles2::cmds::BindAttribLocation* c = | 33 gles2::cmds::BindAttribLocation* c = |
34 GetCmdSpace<gles2::cmds::BindAttribLocation>(); | 34 GetCmdSpace<gles2::cmds::BindAttribLocation>(); |
35 if (c) { | 35 if (c) { |
36 c->Init(program, index, name_shm_id, name_shm_offset, data_size); | 36 c->Init(program, index, name_shm_id, name_shm_offset, data_size); |
37 } | 37 } |
38 } | 38 } |
39 | 39 |
40 void BindAttribLocationBucket(GLuint program, | 40 void BindAttribLocationBucket(GLuint program, |
41 GLuint index, | 41 GLuint index, |
42 uint32 name_bucket_id) { | 42 uint32_t name_bucket_id) { |
43 gles2::cmds::BindAttribLocationBucket* c = | 43 gles2::cmds::BindAttribLocationBucket* c = |
44 GetCmdSpace<gles2::cmds::BindAttribLocationBucket>(); | 44 GetCmdSpace<gles2::cmds::BindAttribLocationBucket>(); |
45 if (c) { | 45 if (c) { |
46 c->Init(program, index, name_bucket_id); | 46 c->Init(program, index, name_bucket_id); |
47 } | 47 } |
48 } | 48 } |
49 | 49 |
50 void BindBuffer(GLenum target, GLuint buffer) { | 50 void BindBuffer(GLenum target, GLuint buffer) { |
51 gles2::cmds::BindBuffer* c = GetCmdSpace<gles2::cmds::BindBuffer>(); | 51 gles2::cmds::BindBuffer* c = GetCmdSpace<gles2::cmds::BindBuffer>(); |
52 if (c) { | 52 if (c) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 GLenum dstAlpha) { | 111 GLenum dstAlpha) { |
112 gles2::cmds::BlendFuncSeparate* c = | 112 gles2::cmds::BlendFuncSeparate* c = |
113 GetCmdSpace<gles2::cmds::BlendFuncSeparate>(); | 113 GetCmdSpace<gles2::cmds::BlendFuncSeparate>(); |
114 if (c) { | 114 if (c) { |
115 c->Init(srcRGB, dstRGB, srcAlpha, dstAlpha); | 115 c->Init(srcRGB, dstRGB, srcAlpha, dstAlpha); |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 void BufferData(GLenum target, | 119 void BufferData(GLenum target, |
120 GLsizeiptr size, | 120 GLsizeiptr size, |
121 uint32 data_shm_id, | 121 uint32_t data_shm_id, |
122 uint32 data_shm_offset, | 122 uint32_t data_shm_offset, |
123 GLenum usage) { | 123 GLenum usage) { |
124 gles2::cmds::BufferData* c = GetCmdSpace<gles2::cmds::BufferData>(); | 124 gles2::cmds::BufferData* c = GetCmdSpace<gles2::cmds::BufferData>(); |
125 if (c) { | 125 if (c) { |
126 c->Init(target, size, data_shm_id, data_shm_offset, usage); | 126 c->Init(target, size, data_shm_id, data_shm_offset, usage); |
127 } | 127 } |
128 } | 128 } |
129 | 129 |
130 void BufferSubData(GLenum target, | 130 void BufferSubData(GLenum target, |
131 GLintptr offset, | 131 GLintptr offset, |
132 GLsizeiptr size, | 132 GLsizeiptr size, |
133 uint32 data_shm_id, | 133 uint32_t data_shm_id, |
134 uint32 data_shm_offset) { | 134 uint32_t data_shm_offset) { |
135 gles2::cmds::BufferSubData* c = GetCmdSpace<gles2::cmds::BufferSubData>(); | 135 gles2::cmds::BufferSubData* c = GetCmdSpace<gles2::cmds::BufferSubData>(); |
136 if (c) { | 136 if (c) { |
137 c->Init(target, offset, size, data_shm_id, data_shm_offset); | 137 c->Init(target, offset, size, data_shm_id, data_shm_offset); |
138 } | 138 } |
139 } | 139 } |
140 | 140 |
141 void CheckFramebufferStatus(GLenum target, | 141 void CheckFramebufferStatus(GLenum target, |
142 uint32 result_shm_id, | 142 uint32_t result_shm_id, |
143 uint32 result_shm_offset) { | 143 uint32_t result_shm_offset) { |
144 gles2::cmds::CheckFramebufferStatus* c = | 144 gles2::cmds::CheckFramebufferStatus* c = |
145 GetCmdSpace<gles2::cmds::CheckFramebufferStatus>(); | 145 GetCmdSpace<gles2::cmds::CheckFramebufferStatus>(); |
146 if (c) { | 146 if (c) { |
147 c->Init(target, result_shm_id, result_shm_offset); | 147 c->Init(target, result_shm_id, result_shm_offset); |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 void Clear(GLbitfield mask) { | 151 void Clear(GLbitfield mask) { |
152 gles2::cmds::Clear* c = GetCmdSpace<gles2::cmds::Clear>(); | 152 gles2::cmds::Clear* c = GetCmdSpace<gles2::cmds::Clear>(); |
153 if (c) { | 153 if (c) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } | 193 } |
194 } | 194 } |
195 | 195 |
196 void CompressedTexImage2D(GLenum target, | 196 void CompressedTexImage2D(GLenum target, |
197 GLint level, | 197 GLint level, |
198 GLenum internalformat, | 198 GLenum internalformat, |
199 GLsizei width, | 199 GLsizei width, |
200 GLsizei height, | 200 GLsizei height, |
201 GLint border, | 201 GLint border, |
202 GLsizei imageSize, | 202 GLsizei imageSize, |
203 uint32 data_shm_id, | 203 uint32_t data_shm_id, |
204 uint32 data_shm_offset) { | 204 uint32_t data_shm_offset) { |
205 gles2::cmds::CompressedTexImage2D* c = | 205 gles2::cmds::CompressedTexImage2D* c = |
206 GetCmdSpace<gles2::cmds::CompressedTexImage2D>(); | 206 GetCmdSpace<gles2::cmds::CompressedTexImage2D>(); |
207 if (c) { | 207 if (c) { |
208 c->Init(target, | 208 c->Init(target, |
209 level, | 209 level, |
210 internalformat, | 210 internalformat, |
211 width, | 211 width, |
212 height, | 212 height, |
213 border, | 213 border, |
214 imageSize, | 214 imageSize, |
(...skipping 17 matching lines...) Expand all Loading... |
232 } | 232 } |
233 | 233 |
234 void CompressedTexSubImage2D(GLenum target, | 234 void CompressedTexSubImage2D(GLenum target, |
235 GLint level, | 235 GLint level, |
236 GLint xoffset, | 236 GLint xoffset, |
237 GLint yoffset, | 237 GLint yoffset, |
238 GLsizei width, | 238 GLsizei width, |
239 GLsizei height, | 239 GLsizei height, |
240 GLenum format, | 240 GLenum format, |
241 GLsizei imageSize, | 241 GLsizei imageSize, |
242 uint32 data_shm_id, | 242 uint32_t data_shm_id, |
243 uint32 data_shm_offset) { | 243 uint32_t data_shm_offset) { |
244 gles2::cmds::CompressedTexSubImage2D* c = | 244 gles2::cmds::CompressedTexSubImage2D* c = |
245 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>(); | 245 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>(); |
246 if (c) { | 246 if (c) { |
247 c->Init(target, | 247 c->Init(target, |
248 level, | 248 level, |
249 xoffset, | 249 xoffset, |
250 yoffset, | 250 yoffset, |
251 width, | 251 width, |
252 height, | 252 height, |
253 format, | 253 format, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 GLint y, | 294 GLint y, |
295 GLsizei width, | 295 GLsizei width, |
296 GLsizei height) { | 296 GLsizei height) { |
297 gles2::cmds::CopyTexSubImage2D* c = | 297 gles2::cmds::CopyTexSubImage2D* c = |
298 GetCmdSpace<gles2::cmds::CopyTexSubImage2D>(); | 298 GetCmdSpace<gles2::cmds::CopyTexSubImage2D>(); |
299 if (c) { | 299 if (c) { |
300 c->Init(target, level, xoffset, yoffset, x, y, width, height); | 300 c->Init(target, level, xoffset, yoffset, x, y, width, height); |
301 } | 301 } |
302 } | 302 } |
303 | 303 |
304 void CreateProgram(uint32 client_id) { | 304 void CreateProgram(uint32_t client_id) { |
305 gles2::cmds::CreateProgram* c = GetCmdSpace<gles2::cmds::CreateProgram>(); | 305 gles2::cmds::CreateProgram* c = GetCmdSpace<gles2::cmds::CreateProgram>(); |
306 if (c) { | 306 if (c) { |
307 c->Init(client_id); | 307 c->Init(client_id); |
308 } | 308 } |
309 } | 309 } |
310 | 310 |
311 void CreateShader(GLenum type, uint32 client_id) { | 311 void CreateShader(GLenum type, uint32_t client_id) { |
312 gles2::cmds::CreateShader* c = GetCmdSpace<gles2::cmds::CreateShader>(); | 312 gles2::cmds::CreateShader* c = GetCmdSpace<gles2::cmds::CreateShader>(); |
313 if (c) { | 313 if (c) { |
314 c->Init(type, client_id); | 314 c->Init(type, client_id); |
315 } | 315 } |
316 } | 316 } |
317 | 317 |
318 void CullFace(GLenum mode) { | 318 void CullFace(GLenum mode) { |
319 gles2::cmds::CullFace* c = GetCmdSpace<gles2::cmds::CullFace>(); | 319 gles2::cmds::CullFace* c = GetCmdSpace<gles2::cmds::CullFace>(); |
320 if (c) { | 320 if (c) { |
321 c->Init(mode); | 321 c->Init(mode); |
322 } | 322 } |
323 } | 323 } |
324 | 324 |
325 void DeleteBuffers(GLsizei n, | 325 void DeleteBuffers(GLsizei n, |
326 uint32 buffers_shm_id, | 326 uint32_t buffers_shm_id, |
327 uint32 buffers_shm_offset) { | 327 uint32_t buffers_shm_offset) { |
328 gles2::cmds::DeleteBuffers* c = GetCmdSpace<gles2::cmds::DeleteBuffers>(); | 328 gles2::cmds::DeleteBuffers* c = GetCmdSpace<gles2::cmds::DeleteBuffers>(); |
329 if (c) { | 329 if (c) { |
330 c->Init(n, buffers_shm_id, buffers_shm_offset); | 330 c->Init(n, buffers_shm_id, buffers_shm_offset); |
331 } | 331 } |
332 } | 332 } |
333 | 333 |
334 void DeleteBuffersImmediate(GLsizei n, const GLuint* buffers) { | 334 void DeleteBuffersImmediate(GLsizei n, const GLuint* buffers) { |
335 const uint32 size = gles2::cmds::DeleteBuffersImmediate::ComputeSize(n); | 335 const uint32_t size = gles2::cmds::DeleteBuffersImmediate::ComputeSize(n); |
336 gles2::cmds::DeleteBuffersImmediate* c = | 336 gles2::cmds::DeleteBuffersImmediate* c = |
337 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteBuffersImmediate>(size); | 337 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteBuffersImmediate>(size); |
338 if (c) { | 338 if (c) { |
339 c->Init(n, buffers); | 339 c->Init(n, buffers); |
340 } | 340 } |
341 } | 341 } |
342 | 342 |
343 void DeleteFramebuffers(GLsizei n, | 343 void DeleteFramebuffers(GLsizei n, |
344 uint32 framebuffers_shm_id, | 344 uint32_t framebuffers_shm_id, |
345 uint32 framebuffers_shm_offset) { | 345 uint32_t framebuffers_shm_offset) { |
346 gles2::cmds::DeleteFramebuffers* c = | 346 gles2::cmds::DeleteFramebuffers* c = |
347 GetCmdSpace<gles2::cmds::DeleteFramebuffers>(); | 347 GetCmdSpace<gles2::cmds::DeleteFramebuffers>(); |
348 if (c) { | 348 if (c) { |
349 c->Init(n, framebuffers_shm_id, framebuffers_shm_offset); | 349 c->Init(n, framebuffers_shm_id, framebuffers_shm_offset); |
350 } | 350 } |
351 } | 351 } |
352 | 352 |
353 void DeleteFramebuffersImmediate(GLsizei n, const GLuint* framebuffers) { | 353 void DeleteFramebuffersImmediate(GLsizei n, const GLuint* framebuffers) { |
354 const uint32 size = gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n); | 354 const uint32_t size = |
| 355 gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n); |
355 gles2::cmds::DeleteFramebuffersImmediate* c = | 356 gles2::cmds::DeleteFramebuffersImmediate* c = |
356 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteFramebuffersImmediate>( | 357 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteFramebuffersImmediate>( |
357 size); | 358 size); |
358 if (c) { | 359 if (c) { |
359 c->Init(n, framebuffers); | 360 c->Init(n, framebuffers); |
360 } | 361 } |
361 } | 362 } |
362 | 363 |
363 void DeleteProgram(GLuint program) { | 364 void DeleteProgram(GLuint program) { |
364 gles2::cmds::DeleteProgram* c = GetCmdSpace<gles2::cmds::DeleteProgram>(); | 365 gles2::cmds::DeleteProgram* c = GetCmdSpace<gles2::cmds::DeleteProgram>(); |
365 if (c) { | 366 if (c) { |
366 c->Init(program); | 367 c->Init(program); |
367 } | 368 } |
368 } | 369 } |
369 | 370 |
370 void DeleteRenderbuffers(GLsizei n, | 371 void DeleteRenderbuffers(GLsizei n, |
371 uint32 renderbuffers_shm_id, | 372 uint32_t renderbuffers_shm_id, |
372 uint32 renderbuffers_shm_offset) { | 373 uint32_t renderbuffers_shm_offset) { |
373 gles2::cmds::DeleteRenderbuffers* c = | 374 gles2::cmds::DeleteRenderbuffers* c = |
374 GetCmdSpace<gles2::cmds::DeleteRenderbuffers>(); | 375 GetCmdSpace<gles2::cmds::DeleteRenderbuffers>(); |
375 if (c) { | 376 if (c) { |
376 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset); | 377 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset); |
377 } | 378 } |
378 } | 379 } |
379 | 380 |
380 void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) { | 381 void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) { |
381 const uint32 size = gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n); | 382 const uint32_t size = |
| 383 gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n); |
382 gles2::cmds::DeleteRenderbuffersImmediate* c = | 384 gles2::cmds::DeleteRenderbuffersImmediate* c = |
383 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteRenderbuffersImmediate>( | 385 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteRenderbuffersImmediate>( |
384 size); | 386 size); |
385 if (c) { | 387 if (c) { |
386 c->Init(n, renderbuffers); | 388 c->Init(n, renderbuffers); |
387 } | 389 } |
388 } | 390 } |
389 | 391 |
390 void DeleteShader(GLuint shader) { | 392 void DeleteShader(GLuint shader) { |
391 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>(); | 393 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>(); |
392 if (c) { | 394 if (c) { |
393 c->Init(shader); | 395 c->Init(shader); |
394 } | 396 } |
395 } | 397 } |
396 | 398 |
397 void DeleteTextures(GLsizei n, | 399 void DeleteTextures(GLsizei n, |
398 uint32 textures_shm_id, | 400 uint32_t textures_shm_id, |
399 uint32 textures_shm_offset) { | 401 uint32_t textures_shm_offset) { |
400 gles2::cmds::DeleteTextures* c = GetCmdSpace<gles2::cmds::DeleteTextures>(); | 402 gles2::cmds::DeleteTextures* c = GetCmdSpace<gles2::cmds::DeleteTextures>(); |
401 if (c) { | 403 if (c) { |
402 c->Init(n, textures_shm_id, textures_shm_offset); | 404 c->Init(n, textures_shm_id, textures_shm_offset); |
403 } | 405 } |
404 } | 406 } |
405 | 407 |
406 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) { | 408 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) { |
407 const uint32 size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n); | 409 const uint32_t size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n); |
408 gles2::cmds::DeleteTexturesImmediate* c = | 410 gles2::cmds::DeleteTexturesImmediate* c = |
409 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteTexturesImmediate>(size); | 411 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteTexturesImmediate>(size); |
410 if (c) { | 412 if (c) { |
411 c->Init(n, textures); | 413 c->Init(n, textures); |
412 } | 414 } |
413 } | 415 } |
414 | 416 |
415 void DepthFunc(GLenum func) { | 417 void DepthFunc(GLenum func) { |
416 gles2::cmds::DepthFunc* c = GetCmdSpace<gles2::cmds::DepthFunc>(); | 418 gles2::cmds::DepthFunc* c = GetCmdSpace<gles2::cmds::DepthFunc>(); |
417 if (c) { | 419 if (c) { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 } | 526 } |
525 } | 527 } |
526 | 528 |
527 void FrontFace(GLenum mode) { | 529 void FrontFace(GLenum mode) { |
528 gles2::cmds::FrontFace* c = GetCmdSpace<gles2::cmds::FrontFace>(); | 530 gles2::cmds::FrontFace* c = GetCmdSpace<gles2::cmds::FrontFace>(); |
529 if (c) { | 531 if (c) { |
530 c->Init(mode); | 532 c->Init(mode); |
531 } | 533 } |
532 } | 534 } |
533 | 535 |
534 void GenBuffers(GLsizei n, uint32 buffers_shm_id, uint32 buffers_shm_offset) { | 536 void GenBuffers(GLsizei n, |
| 537 uint32_t buffers_shm_id, |
| 538 uint32_t buffers_shm_offset) { |
535 gles2::cmds::GenBuffers* c = GetCmdSpace<gles2::cmds::GenBuffers>(); | 539 gles2::cmds::GenBuffers* c = GetCmdSpace<gles2::cmds::GenBuffers>(); |
536 if (c) { | 540 if (c) { |
537 c->Init(n, buffers_shm_id, buffers_shm_offset); | 541 c->Init(n, buffers_shm_id, buffers_shm_offset); |
538 } | 542 } |
539 } | 543 } |
540 | 544 |
541 void GenBuffersImmediate(GLsizei n, GLuint* buffers) { | 545 void GenBuffersImmediate(GLsizei n, GLuint* buffers) { |
542 const uint32 size = gles2::cmds::GenBuffersImmediate::ComputeSize(n); | 546 const uint32_t size = gles2::cmds::GenBuffersImmediate::ComputeSize(n); |
543 gles2::cmds::GenBuffersImmediate* c = | 547 gles2::cmds::GenBuffersImmediate* c = |
544 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenBuffersImmediate>(size); | 548 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenBuffersImmediate>(size); |
545 if (c) { | 549 if (c) { |
546 c->Init(n, buffers); | 550 c->Init(n, buffers); |
547 } | 551 } |
548 } | 552 } |
549 | 553 |
550 void GenerateMipmap(GLenum target) { | 554 void GenerateMipmap(GLenum target) { |
551 gles2::cmds::GenerateMipmap* c = GetCmdSpace<gles2::cmds::GenerateMipmap>(); | 555 gles2::cmds::GenerateMipmap* c = GetCmdSpace<gles2::cmds::GenerateMipmap>(); |
552 if (c) { | 556 if (c) { |
553 c->Init(target); | 557 c->Init(target); |
554 } | 558 } |
555 } | 559 } |
556 | 560 |
557 void GenFramebuffers(GLsizei n, | 561 void GenFramebuffers(GLsizei n, |
558 uint32 framebuffers_shm_id, | 562 uint32_t framebuffers_shm_id, |
559 uint32 framebuffers_shm_offset) { | 563 uint32_t framebuffers_shm_offset) { |
560 gles2::cmds::GenFramebuffers* c = GetCmdSpace<gles2::cmds::GenFramebuffers>(); | 564 gles2::cmds::GenFramebuffers* c = GetCmdSpace<gles2::cmds::GenFramebuffers>(); |
561 if (c) { | 565 if (c) { |
562 c->Init(n, framebuffers_shm_id, framebuffers_shm_offset); | 566 c->Init(n, framebuffers_shm_id, framebuffers_shm_offset); |
563 } | 567 } |
564 } | 568 } |
565 | 569 |
566 void GenFramebuffersImmediate(GLsizei n, GLuint* framebuffers) { | 570 void GenFramebuffersImmediate(GLsizei n, GLuint* framebuffers) { |
567 const uint32 size = gles2::cmds::GenFramebuffersImmediate::ComputeSize(n); | 571 const uint32_t size = gles2::cmds::GenFramebuffersImmediate::ComputeSize(n); |
568 gles2::cmds::GenFramebuffersImmediate* c = | 572 gles2::cmds::GenFramebuffersImmediate* c = |
569 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenFramebuffersImmediate>( | 573 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenFramebuffersImmediate>( |
570 size); | 574 size); |
571 if (c) { | 575 if (c) { |
572 c->Init(n, framebuffers); | 576 c->Init(n, framebuffers); |
573 } | 577 } |
574 } | 578 } |
575 | 579 |
576 void GenRenderbuffers(GLsizei n, | 580 void GenRenderbuffers(GLsizei n, |
577 uint32 renderbuffers_shm_id, | 581 uint32_t renderbuffers_shm_id, |
578 uint32 renderbuffers_shm_offset) { | 582 uint32_t renderbuffers_shm_offset) { |
579 gles2::cmds::GenRenderbuffers* c = | 583 gles2::cmds::GenRenderbuffers* c = |
580 GetCmdSpace<gles2::cmds::GenRenderbuffers>(); | 584 GetCmdSpace<gles2::cmds::GenRenderbuffers>(); |
581 if (c) { | 585 if (c) { |
582 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset); | 586 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset); |
583 } | 587 } |
584 } | 588 } |
585 | 589 |
586 void GenRenderbuffersImmediate(GLsizei n, GLuint* renderbuffers) { | 590 void GenRenderbuffersImmediate(GLsizei n, GLuint* renderbuffers) { |
587 const uint32 size = gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n); | 591 const uint32_t size = gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n); |
588 gles2::cmds::GenRenderbuffersImmediate* c = | 592 gles2::cmds::GenRenderbuffersImmediate* c = |
589 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenRenderbuffersImmediate>( | 593 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenRenderbuffersImmediate>( |
590 size); | 594 size); |
591 if (c) { | 595 if (c) { |
592 c->Init(n, renderbuffers); | 596 c->Init(n, renderbuffers); |
593 } | 597 } |
594 } | 598 } |
595 | 599 |
596 void GenTextures(GLsizei n, | 600 void GenTextures(GLsizei n, |
597 uint32 textures_shm_id, | 601 uint32_t textures_shm_id, |
598 uint32 textures_shm_offset) { | 602 uint32_t textures_shm_offset) { |
599 gles2::cmds::GenTextures* c = GetCmdSpace<gles2::cmds::GenTextures>(); | 603 gles2::cmds::GenTextures* c = GetCmdSpace<gles2::cmds::GenTextures>(); |
600 if (c) { | 604 if (c) { |
601 c->Init(n, textures_shm_id, textures_shm_offset); | 605 c->Init(n, textures_shm_id, textures_shm_offset); |
602 } | 606 } |
603 } | 607 } |
604 | 608 |
605 void GenTexturesImmediate(GLsizei n, GLuint* textures) { | 609 void GenTexturesImmediate(GLsizei n, GLuint* textures) { |
606 const uint32 size = gles2::cmds::GenTexturesImmediate::ComputeSize(n); | 610 const uint32_t size = gles2::cmds::GenTexturesImmediate::ComputeSize(n); |
607 gles2::cmds::GenTexturesImmediate* c = | 611 gles2::cmds::GenTexturesImmediate* c = |
608 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenTexturesImmediate>(size); | 612 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenTexturesImmediate>(size); |
609 if (c) { | 613 if (c) { |
610 c->Init(n, textures); | 614 c->Init(n, textures); |
611 } | 615 } |
612 } | 616 } |
613 | 617 |
614 void GetActiveAttrib(GLuint program, | 618 void GetActiveAttrib(GLuint program, |
615 GLuint index, | 619 GLuint index, |
616 uint32 name_bucket_id, | 620 uint32_t name_bucket_id, |
617 uint32 result_shm_id, | 621 uint32_t result_shm_id, |
618 uint32 result_shm_offset) { | 622 uint32_t result_shm_offset) { |
619 gles2::cmds::GetActiveAttrib* c = GetCmdSpace<gles2::cmds::GetActiveAttrib>(); | 623 gles2::cmds::GetActiveAttrib* c = GetCmdSpace<gles2::cmds::GetActiveAttrib>(); |
620 if (c) { | 624 if (c) { |
621 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); | 625 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); |
622 } | 626 } |
623 } | 627 } |
624 | 628 |
625 void GetActiveUniform(GLuint program, | 629 void GetActiveUniform(GLuint program, |
626 GLuint index, | 630 GLuint index, |
627 uint32 name_bucket_id, | 631 uint32_t name_bucket_id, |
628 uint32 result_shm_id, | 632 uint32_t result_shm_id, |
629 uint32 result_shm_offset) { | 633 uint32_t result_shm_offset) { |
630 gles2::cmds::GetActiveUniform* c = | 634 gles2::cmds::GetActiveUniform* c = |
631 GetCmdSpace<gles2::cmds::GetActiveUniform>(); | 635 GetCmdSpace<gles2::cmds::GetActiveUniform>(); |
632 if (c) { | 636 if (c) { |
633 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); | 637 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); |
634 } | 638 } |
635 } | 639 } |
636 | 640 |
637 void GetAttachedShaders(GLuint program, | 641 void GetAttachedShaders(GLuint program, |
638 uint32 result_shm_id, | 642 uint32_t result_shm_id, |
639 uint32 result_shm_offset, | 643 uint32_t result_shm_offset, |
640 uint32 result_size) { | 644 uint32_t result_size) { |
641 gles2::cmds::GetAttachedShaders* c = | 645 gles2::cmds::GetAttachedShaders* c = |
642 GetCmdSpace<gles2::cmds::GetAttachedShaders>(); | 646 GetCmdSpace<gles2::cmds::GetAttachedShaders>(); |
643 if (c) { | 647 if (c) { |
644 c->Init(program, result_shm_id, result_shm_offset, result_size); | 648 c->Init(program, result_shm_id, result_shm_offset, result_size); |
645 } | 649 } |
646 } | 650 } |
647 | 651 |
648 void GetBooleanv(GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) { | 652 void GetBooleanv(GLenum pname, |
| 653 uint32_t params_shm_id, |
| 654 uint32_t params_shm_offset) { |
649 gles2::cmds::GetBooleanv* c = GetCmdSpace<gles2::cmds::GetBooleanv>(); | 655 gles2::cmds::GetBooleanv* c = GetCmdSpace<gles2::cmds::GetBooleanv>(); |
650 if (c) { | 656 if (c) { |
651 c->Init(pname, params_shm_id, params_shm_offset); | 657 c->Init(pname, params_shm_id, params_shm_offset); |
652 } | 658 } |
653 } | 659 } |
654 | 660 |
655 void GetBufferParameteriv(GLenum target, | 661 void GetBufferParameteriv(GLenum target, |
656 GLenum pname, | 662 GLenum pname, |
657 uint32 params_shm_id, | 663 uint32_t params_shm_id, |
658 uint32 params_shm_offset) { | 664 uint32_t params_shm_offset) { |
659 gles2::cmds::GetBufferParameteriv* c = | 665 gles2::cmds::GetBufferParameteriv* c = |
660 GetCmdSpace<gles2::cmds::GetBufferParameteriv>(); | 666 GetCmdSpace<gles2::cmds::GetBufferParameteriv>(); |
661 if (c) { | 667 if (c) { |
662 c->Init(target, pname, params_shm_id, params_shm_offset); | 668 c->Init(target, pname, params_shm_id, params_shm_offset); |
663 } | 669 } |
664 } | 670 } |
665 | 671 |
666 void GetError(uint32 result_shm_id, uint32 result_shm_offset) { | 672 void GetError(uint32_t result_shm_id, uint32_t result_shm_offset) { |
667 gles2::cmds::GetError* c = GetCmdSpace<gles2::cmds::GetError>(); | 673 gles2::cmds::GetError* c = GetCmdSpace<gles2::cmds::GetError>(); |
668 if (c) { | 674 if (c) { |
669 c->Init(result_shm_id, result_shm_offset); | 675 c->Init(result_shm_id, result_shm_offset); |
670 } | 676 } |
671 } | 677 } |
672 | 678 |
673 void GetFloatv(GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) { | 679 void GetFloatv(GLenum pname, |
| 680 uint32_t params_shm_id, |
| 681 uint32_t params_shm_offset) { |
674 gles2::cmds::GetFloatv* c = GetCmdSpace<gles2::cmds::GetFloatv>(); | 682 gles2::cmds::GetFloatv* c = GetCmdSpace<gles2::cmds::GetFloatv>(); |
675 if (c) { | 683 if (c) { |
676 c->Init(pname, params_shm_id, params_shm_offset); | 684 c->Init(pname, params_shm_id, params_shm_offset); |
677 } | 685 } |
678 } | 686 } |
679 | 687 |
680 void GetFramebufferAttachmentParameteriv(GLenum target, | 688 void GetFramebufferAttachmentParameteriv(GLenum target, |
681 GLenum attachment, | 689 GLenum attachment, |
682 GLenum pname, | 690 GLenum pname, |
683 uint32 params_shm_id, | 691 uint32_t params_shm_id, |
684 uint32 params_shm_offset) { | 692 uint32_t params_shm_offset) { |
685 gles2::cmds::GetFramebufferAttachmentParameteriv* c = | 693 gles2::cmds::GetFramebufferAttachmentParameteriv* c = |
686 GetCmdSpace<gles2::cmds::GetFramebufferAttachmentParameteriv>(); | 694 GetCmdSpace<gles2::cmds::GetFramebufferAttachmentParameteriv>(); |
687 if (c) { | 695 if (c) { |
688 c->Init(target, attachment, pname, params_shm_id, params_shm_offset); | 696 c->Init(target, attachment, pname, params_shm_id, params_shm_offset); |
689 } | 697 } |
690 } | 698 } |
691 | 699 |
692 void GetIntegerv(GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) { | 700 void GetIntegerv(GLenum pname, |
| 701 uint32_t params_shm_id, |
| 702 uint32_t params_shm_offset) { |
693 gles2::cmds::GetIntegerv* c = GetCmdSpace<gles2::cmds::GetIntegerv>(); | 703 gles2::cmds::GetIntegerv* c = GetCmdSpace<gles2::cmds::GetIntegerv>(); |
694 if (c) { | 704 if (c) { |
695 c->Init(pname, params_shm_id, params_shm_offset); | 705 c->Init(pname, params_shm_id, params_shm_offset); |
696 } | 706 } |
697 } | 707 } |
698 | 708 |
699 void GetProgramiv(GLuint program, | 709 void GetProgramiv(GLuint program, |
700 GLenum pname, | 710 GLenum pname, |
701 uint32 params_shm_id, | 711 uint32_t params_shm_id, |
702 uint32 params_shm_offset) { | 712 uint32_t params_shm_offset) { |
703 gles2::cmds::GetProgramiv* c = GetCmdSpace<gles2::cmds::GetProgramiv>(); | 713 gles2::cmds::GetProgramiv* c = GetCmdSpace<gles2::cmds::GetProgramiv>(); |
704 if (c) { | 714 if (c) { |
705 c->Init(program, pname, params_shm_id, params_shm_offset); | 715 c->Init(program, pname, params_shm_id, params_shm_offset); |
706 } | 716 } |
707 } | 717 } |
708 | 718 |
709 void GetProgramInfoLog(GLuint program, uint32 bucket_id) { | 719 void GetProgramInfoLog(GLuint program, uint32_t bucket_id) { |
710 gles2::cmds::GetProgramInfoLog* c = | 720 gles2::cmds::GetProgramInfoLog* c = |
711 GetCmdSpace<gles2::cmds::GetProgramInfoLog>(); | 721 GetCmdSpace<gles2::cmds::GetProgramInfoLog>(); |
712 if (c) { | 722 if (c) { |
713 c->Init(program, bucket_id); | 723 c->Init(program, bucket_id); |
714 } | 724 } |
715 } | 725 } |
716 | 726 |
717 void GetRenderbufferParameteriv(GLenum target, | 727 void GetRenderbufferParameteriv(GLenum target, |
718 GLenum pname, | 728 GLenum pname, |
719 uint32 params_shm_id, | 729 uint32_t params_shm_id, |
720 uint32 params_shm_offset) { | 730 uint32_t params_shm_offset) { |
721 gles2::cmds::GetRenderbufferParameteriv* c = | 731 gles2::cmds::GetRenderbufferParameteriv* c = |
722 GetCmdSpace<gles2::cmds::GetRenderbufferParameteriv>(); | 732 GetCmdSpace<gles2::cmds::GetRenderbufferParameteriv>(); |
723 if (c) { | 733 if (c) { |
724 c->Init(target, pname, params_shm_id, params_shm_offset); | 734 c->Init(target, pname, params_shm_id, params_shm_offset); |
725 } | 735 } |
726 } | 736 } |
727 | 737 |
728 void GetShaderiv(GLuint shader, | 738 void GetShaderiv(GLuint shader, |
729 GLenum pname, | 739 GLenum pname, |
730 uint32 params_shm_id, | 740 uint32_t params_shm_id, |
731 uint32 params_shm_offset) { | 741 uint32_t params_shm_offset) { |
732 gles2::cmds::GetShaderiv* c = GetCmdSpace<gles2::cmds::GetShaderiv>(); | 742 gles2::cmds::GetShaderiv* c = GetCmdSpace<gles2::cmds::GetShaderiv>(); |
733 if (c) { | 743 if (c) { |
734 c->Init(shader, pname, params_shm_id, params_shm_offset); | 744 c->Init(shader, pname, params_shm_id, params_shm_offset); |
735 } | 745 } |
736 } | 746 } |
737 | 747 |
738 void GetShaderInfoLog(GLuint shader, uint32 bucket_id) { | 748 void GetShaderInfoLog(GLuint shader, uint32_t bucket_id) { |
739 gles2::cmds::GetShaderInfoLog* c = | 749 gles2::cmds::GetShaderInfoLog* c = |
740 GetCmdSpace<gles2::cmds::GetShaderInfoLog>(); | 750 GetCmdSpace<gles2::cmds::GetShaderInfoLog>(); |
741 if (c) { | 751 if (c) { |
742 c->Init(shader, bucket_id); | 752 c->Init(shader, bucket_id); |
743 } | 753 } |
744 } | 754 } |
745 | 755 |
746 void GetShaderPrecisionFormat(GLenum shadertype, | 756 void GetShaderPrecisionFormat(GLenum shadertype, |
747 GLenum precisiontype, | 757 GLenum precisiontype, |
748 uint32 result_shm_id, | 758 uint32_t result_shm_id, |
749 uint32 result_shm_offset) { | 759 uint32_t result_shm_offset) { |
750 gles2::cmds::GetShaderPrecisionFormat* c = | 760 gles2::cmds::GetShaderPrecisionFormat* c = |
751 GetCmdSpace<gles2::cmds::GetShaderPrecisionFormat>(); | 761 GetCmdSpace<gles2::cmds::GetShaderPrecisionFormat>(); |
752 if (c) { | 762 if (c) { |
753 c->Init(shadertype, precisiontype, result_shm_id, result_shm_offset); | 763 c->Init(shadertype, precisiontype, result_shm_id, result_shm_offset); |
754 } | 764 } |
755 } | 765 } |
756 | 766 |
757 void GetShaderSource(GLuint shader, uint32 bucket_id) { | 767 void GetShaderSource(GLuint shader, uint32_t bucket_id) { |
758 gles2::cmds::GetShaderSource* c = GetCmdSpace<gles2::cmds::GetShaderSource>(); | 768 gles2::cmds::GetShaderSource* c = GetCmdSpace<gles2::cmds::GetShaderSource>(); |
759 if (c) { | 769 if (c) { |
760 c->Init(shader, bucket_id); | 770 c->Init(shader, bucket_id); |
761 } | 771 } |
762 } | 772 } |
763 | 773 |
764 void GetString(GLenum name, uint32 bucket_id) { | 774 void GetString(GLenum name, uint32_t bucket_id) { |
765 gles2::cmds::GetString* c = GetCmdSpace<gles2::cmds::GetString>(); | 775 gles2::cmds::GetString* c = GetCmdSpace<gles2::cmds::GetString>(); |
766 if (c) { | 776 if (c) { |
767 c->Init(name, bucket_id); | 777 c->Init(name, bucket_id); |
768 } | 778 } |
769 } | 779 } |
770 | 780 |
771 void GetTexParameterfv(GLenum target, | 781 void GetTexParameterfv(GLenum target, |
772 GLenum pname, | 782 GLenum pname, |
773 uint32 params_shm_id, | 783 uint32_t params_shm_id, |
774 uint32 params_shm_offset) { | 784 uint32_t params_shm_offset) { |
775 gles2::cmds::GetTexParameterfv* c = | 785 gles2::cmds::GetTexParameterfv* c = |
776 GetCmdSpace<gles2::cmds::GetTexParameterfv>(); | 786 GetCmdSpace<gles2::cmds::GetTexParameterfv>(); |
777 if (c) { | 787 if (c) { |
778 c->Init(target, pname, params_shm_id, params_shm_offset); | 788 c->Init(target, pname, params_shm_id, params_shm_offset); |
779 } | 789 } |
780 } | 790 } |
781 | 791 |
782 void GetTexParameteriv(GLenum target, | 792 void GetTexParameteriv(GLenum target, |
783 GLenum pname, | 793 GLenum pname, |
784 uint32 params_shm_id, | 794 uint32_t params_shm_id, |
785 uint32 params_shm_offset) { | 795 uint32_t params_shm_offset) { |
786 gles2::cmds::GetTexParameteriv* c = | 796 gles2::cmds::GetTexParameteriv* c = |
787 GetCmdSpace<gles2::cmds::GetTexParameteriv>(); | 797 GetCmdSpace<gles2::cmds::GetTexParameteriv>(); |
788 if (c) { | 798 if (c) { |
789 c->Init(target, pname, params_shm_id, params_shm_offset); | 799 c->Init(target, pname, params_shm_id, params_shm_offset); |
790 } | 800 } |
791 } | 801 } |
792 | 802 |
793 void GetUniformfv(GLuint program, | 803 void GetUniformfv(GLuint program, |
794 GLint location, | 804 GLint location, |
795 uint32 params_shm_id, | 805 uint32_t params_shm_id, |
796 uint32 params_shm_offset) { | 806 uint32_t params_shm_offset) { |
797 gles2::cmds::GetUniformfv* c = GetCmdSpace<gles2::cmds::GetUniformfv>(); | 807 gles2::cmds::GetUniformfv* c = GetCmdSpace<gles2::cmds::GetUniformfv>(); |
798 if (c) { | 808 if (c) { |
799 c->Init(program, location, params_shm_id, params_shm_offset); | 809 c->Init(program, location, params_shm_id, params_shm_offset); |
800 } | 810 } |
801 } | 811 } |
802 | 812 |
803 void GetUniformiv(GLuint program, | 813 void GetUniformiv(GLuint program, |
804 GLint location, | 814 GLint location, |
805 uint32 params_shm_id, | 815 uint32_t params_shm_id, |
806 uint32 params_shm_offset) { | 816 uint32_t params_shm_offset) { |
807 gles2::cmds::GetUniformiv* c = GetCmdSpace<gles2::cmds::GetUniformiv>(); | 817 gles2::cmds::GetUniformiv* c = GetCmdSpace<gles2::cmds::GetUniformiv>(); |
808 if (c) { | 818 if (c) { |
809 c->Init(program, location, params_shm_id, params_shm_offset); | 819 c->Init(program, location, params_shm_id, params_shm_offset); |
810 } | 820 } |
811 } | 821 } |
812 | 822 |
813 void GetVertexAttribfv(GLuint index, | 823 void GetVertexAttribfv(GLuint index, |
814 GLenum pname, | 824 GLenum pname, |
815 uint32 params_shm_id, | 825 uint32_t params_shm_id, |
816 uint32 params_shm_offset) { | 826 uint32_t params_shm_offset) { |
817 gles2::cmds::GetVertexAttribfv* c = | 827 gles2::cmds::GetVertexAttribfv* c = |
818 GetCmdSpace<gles2::cmds::GetVertexAttribfv>(); | 828 GetCmdSpace<gles2::cmds::GetVertexAttribfv>(); |
819 if (c) { | 829 if (c) { |
820 c->Init(index, pname, params_shm_id, params_shm_offset); | 830 c->Init(index, pname, params_shm_id, params_shm_offset); |
821 } | 831 } |
822 } | 832 } |
823 | 833 |
824 void GetVertexAttribiv(GLuint index, | 834 void GetVertexAttribiv(GLuint index, |
825 GLenum pname, | 835 GLenum pname, |
826 uint32 params_shm_id, | 836 uint32_t params_shm_id, |
827 uint32 params_shm_offset) { | 837 uint32_t params_shm_offset) { |
828 gles2::cmds::GetVertexAttribiv* c = | 838 gles2::cmds::GetVertexAttribiv* c = |
829 GetCmdSpace<gles2::cmds::GetVertexAttribiv>(); | 839 GetCmdSpace<gles2::cmds::GetVertexAttribiv>(); |
830 if (c) { | 840 if (c) { |
831 c->Init(index, pname, params_shm_id, params_shm_offset); | 841 c->Init(index, pname, params_shm_id, params_shm_offset); |
832 } | 842 } |
833 } | 843 } |
834 | 844 |
835 void GetVertexAttribPointerv(GLuint index, | 845 void GetVertexAttribPointerv(GLuint index, |
836 GLenum pname, | 846 GLenum pname, |
837 uint32 pointer_shm_id, | 847 uint32_t pointer_shm_id, |
838 uint32 pointer_shm_offset) { | 848 uint32_t pointer_shm_offset) { |
839 gles2::cmds::GetVertexAttribPointerv* c = | 849 gles2::cmds::GetVertexAttribPointerv* c = |
840 GetCmdSpace<gles2::cmds::GetVertexAttribPointerv>(); | 850 GetCmdSpace<gles2::cmds::GetVertexAttribPointerv>(); |
841 if (c) { | 851 if (c) { |
842 c->Init(index, pname, pointer_shm_id, pointer_shm_offset); | 852 c->Init(index, pname, pointer_shm_id, pointer_shm_offset); |
843 } | 853 } |
844 } | 854 } |
845 | 855 |
846 void Hint(GLenum target, GLenum mode) { | 856 void Hint(GLenum target, GLenum mode) { |
847 gles2::cmds::Hint* c = GetCmdSpace<gles2::cmds::Hint>(); | 857 gles2::cmds::Hint* c = GetCmdSpace<gles2::cmds::Hint>(); |
848 if (c) { | 858 if (c) { |
849 c->Init(target, mode); | 859 c->Init(target, mode); |
850 } | 860 } |
851 } | 861 } |
852 | 862 |
853 void IsBuffer(GLuint buffer, uint32 result_shm_id, uint32 result_shm_offset) { | 863 void IsBuffer(GLuint buffer, |
| 864 uint32_t result_shm_id, |
| 865 uint32_t result_shm_offset) { |
854 gles2::cmds::IsBuffer* c = GetCmdSpace<gles2::cmds::IsBuffer>(); | 866 gles2::cmds::IsBuffer* c = GetCmdSpace<gles2::cmds::IsBuffer>(); |
855 if (c) { | 867 if (c) { |
856 c->Init(buffer, result_shm_id, result_shm_offset); | 868 c->Init(buffer, result_shm_id, result_shm_offset); |
857 } | 869 } |
858 } | 870 } |
859 | 871 |
860 void IsEnabled(GLenum cap, uint32 result_shm_id, uint32 result_shm_offset) { | 872 void IsEnabled(GLenum cap, uint32_t result_shm_id, uint32_t result_shm_offset) { |
861 gles2::cmds::IsEnabled* c = GetCmdSpace<gles2::cmds::IsEnabled>(); | 873 gles2::cmds::IsEnabled* c = GetCmdSpace<gles2::cmds::IsEnabled>(); |
862 if (c) { | 874 if (c) { |
863 c->Init(cap, result_shm_id, result_shm_offset); | 875 c->Init(cap, result_shm_id, result_shm_offset); |
864 } | 876 } |
865 } | 877 } |
866 | 878 |
867 void IsFramebuffer(GLuint framebuffer, | 879 void IsFramebuffer(GLuint framebuffer, |
868 uint32 result_shm_id, | 880 uint32_t result_shm_id, |
869 uint32 result_shm_offset) { | 881 uint32_t result_shm_offset) { |
870 gles2::cmds::IsFramebuffer* c = GetCmdSpace<gles2::cmds::IsFramebuffer>(); | 882 gles2::cmds::IsFramebuffer* c = GetCmdSpace<gles2::cmds::IsFramebuffer>(); |
871 if (c) { | 883 if (c) { |
872 c->Init(framebuffer, result_shm_id, result_shm_offset); | 884 c->Init(framebuffer, result_shm_id, result_shm_offset); |
873 } | 885 } |
874 } | 886 } |
875 | 887 |
876 void IsProgram(GLuint program, uint32 result_shm_id, uint32 result_shm_offset) { | 888 void IsProgram(GLuint program, |
| 889 uint32_t result_shm_id, |
| 890 uint32_t result_shm_offset) { |
877 gles2::cmds::IsProgram* c = GetCmdSpace<gles2::cmds::IsProgram>(); | 891 gles2::cmds::IsProgram* c = GetCmdSpace<gles2::cmds::IsProgram>(); |
878 if (c) { | 892 if (c) { |
879 c->Init(program, result_shm_id, result_shm_offset); | 893 c->Init(program, result_shm_id, result_shm_offset); |
880 } | 894 } |
881 } | 895 } |
882 | 896 |
883 void IsRenderbuffer(GLuint renderbuffer, | 897 void IsRenderbuffer(GLuint renderbuffer, |
884 uint32 result_shm_id, | 898 uint32_t result_shm_id, |
885 uint32 result_shm_offset) { | 899 uint32_t result_shm_offset) { |
886 gles2::cmds::IsRenderbuffer* c = GetCmdSpace<gles2::cmds::IsRenderbuffer>(); | 900 gles2::cmds::IsRenderbuffer* c = GetCmdSpace<gles2::cmds::IsRenderbuffer>(); |
887 if (c) { | 901 if (c) { |
888 c->Init(renderbuffer, result_shm_id, result_shm_offset); | 902 c->Init(renderbuffer, result_shm_id, result_shm_offset); |
889 } | 903 } |
890 } | 904 } |
891 | 905 |
892 void IsShader(GLuint shader, uint32 result_shm_id, uint32 result_shm_offset) { | 906 void IsShader(GLuint shader, |
| 907 uint32_t result_shm_id, |
| 908 uint32_t result_shm_offset) { |
893 gles2::cmds::IsShader* c = GetCmdSpace<gles2::cmds::IsShader>(); | 909 gles2::cmds::IsShader* c = GetCmdSpace<gles2::cmds::IsShader>(); |
894 if (c) { | 910 if (c) { |
895 c->Init(shader, result_shm_id, result_shm_offset); | 911 c->Init(shader, result_shm_id, result_shm_offset); |
896 } | 912 } |
897 } | 913 } |
898 | 914 |
899 void IsTexture(GLuint texture, uint32 result_shm_id, uint32 result_shm_offset) { | 915 void IsTexture(GLuint texture, |
| 916 uint32_t result_shm_id, |
| 917 uint32_t result_shm_offset) { |
900 gles2::cmds::IsTexture* c = GetCmdSpace<gles2::cmds::IsTexture>(); | 918 gles2::cmds::IsTexture* c = GetCmdSpace<gles2::cmds::IsTexture>(); |
901 if (c) { | 919 if (c) { |
902 c->Init(texture, result_shm_id, result_shm_offset); | 920 c->Init(texture, result_shm_id, result_shm_offset); |
903 } | 921 } |
904 } | 922 } |
905 | 923 |
906 void LineWidth(GLfloat width) { | 924 void LineWidth(GLfloat width) { |
907 gles2::cmds::LineWidth* c = GetCmdSpace<gles2::cmds::LineWidth>(); | 925 gles2::cmds::LineWidth* c = GetCmdSpace<gles2::cmds::LineWidth>(); |
908 if (c) { | 926 if (c) { |
909 c->Init(width); | 927 c->Init(width); |
(...skipping 20 matching lines...) Expand all Loading... |
930 c->Init(factor, units); | 948 c->Init(factor, units); |
931 } | 949 } |
932 } | 950 } |
933 | 951 |
934 void ReadPixels(GLint x, | 952 void ReadPixels(GLint x, |
935 GLint y, | 953 GLint y, |
936 GLsizei width, | 954 GLsizei width, |
937 GLsizei height, | 955 GLsizei height, |
938 GLenum format, | 956 GLenum format, |
939 GLenum type, | 957 GLenum type, |
940 uint32 pixels_shm_id, | 958 uint32_t pixels_shm_id, |
941 uint32 pixels_shm_offset, | 959 uint32_t pixels_shm_offset, |
942 uint32 result_shm_id, | 960 uint32_t result_shm_id, |
943 uint32 result_shm_offset, | 961 uint32_t result_shm_offset, |
944 GLboolean async) { | 962 GLboolean async) { |
945 gles2::cmds::ReadPixels* c = GetCmdSpace<gles2::cmds::ReadPixels>(); | 963 gles2::cmds::ReadPixels* c = GetCmdSpace<gles2::cmds::ReadPixels>(); |
946 if (c) { | 964 if (c) { |
947 c->Init(x, | 965 c->Init(x, |
948 y, | 966 y, |
949 width, | 967 width, |
950 height, | 968 height, |
951 format, | 969 format, |
952 type, | 970 type, |
953 pixels_shm_id, | 971 pixels_shm_id, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 } | 1003 } |
986 | 1004 |
987 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) { | 1005 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) { |
988 gles2::cmds::Scissor* c = GetCmdSpace<gles2::cmds::Scissor>(); | 1006 gles2::cmds::Scissor* c = GetCmdSpace<gles2::cmds::Scissor>(); |
989 if (c) { | 1007 if (c) { |
990 c->Init(x, y, width, height); | 1008 c->Init(x, y, width, height); |
991 } | 1009 } |
992 } | 1010 } |
993 | 1011 |
994 void ShaderBinary(GLsizei n, | 1012 void ShaderBinary(GLsizei n, |
995 uint32 shaders_shm_id, | 1013 uint32_t shaders_shm_id, |
996 uint32 shaders_shm_offset, | 1014 uint32_t shaders_shm_offset, |
997 GLenum binaryformat, | 1015 GLenum binaryformat, |
998 uint32 binary_shm_id, | 1016 uint32_t binary_shm_id, |
999 uint32 binary_shm_offset, | 1017 uint32_t binary_shm_offset, |
1000 GLsizei length) { | 1018 GLsizei length) { |
1001 gles2::cmds::ShaderBinary* c = GetCmdSpace<gles2::cmds::ShaderBinary>(); | 1019 gles2::cmds::ShaderBinary* c = GetCmdSpace<gles2::cmds::ShaderBinary>(); |
1002 if (c) { | 1020 if (c) { |
1003 c->Init(n, | 1021 c->Init(n, |
1004 shaders_shm_id, | 1022 shaders_shm_id, |
1005 shaders_shm_offset, | 1023 shaders_shm_offset, |
1006 binaryformat, | 1024 binaryformat, |
1007 binary_shm_id, | 1025 binary_shm_id, |
1008 binary_shm_offset, | 1026 binary_shm_offset, |
1009 length); | 1027 length); |
1010 } | 1028 } |
1011 } | 1029 } |
1012 | 1030 |
1013 void ShaderSource(GLuint shader, | 1031 void ShaderSource(GLuint shader, |
1014 uint32 data_shm_id, | 1032 uint32_t data_shm_id, |
1015 uint32 data_shm_offset, | 1033 uint32_t data_shm_offset, |
1016 uint32 data_size) { | 1034 uint32_t data_size) { |
1017 gles2::cmds::ShaderSource* c = GetCmdSpace<gles2::cmds::ShaderSource>(); | 1035 gles2::cmds::ShaderSource* c = GetCmdSpace<gles2::cmds::ShaderSource>(); |
1018 if (c) { | 1036 if (c) { |
1019 c->Init(shader, data_shm_id, data_shm_offset, data_size); | 1037 c->Init(shader, data_shm_id, data_shm_offset, data_size); |
1020 } | 1038 } |
1021 } | 1039 } |
1022 | 1040 |
1023 void ShaderSourceBucket(GLuint shader, uint32 data_bucket_id) { | 1041 void ShaderSourceBucket(GLuint shader, uint32_t data_bucket_id) { |
1024 gles2::cmds::ShaderSourceBucket* c = | 1042 gles2::cmds::ShaderSourceBucket* c = |
1025 GetCmdSpace<gles2::cmds::ShaderSourceBucket>(); | 1043 GetCmdSpace<gles2::cmds::ShaderSourceBucket>(); |
1026 if (c) { | 1044 if (c) { |
1027 c->Init(shader, data_bucket_id); | 1045 c->Init(shader, data_bucket_id); |
1028 } | 1046 } |
1029 } | 1047 } |
1030 | 1048 |
1031 void StencilFunc(GLenum func, GLint ref, GLuint mask) { | 1049 void StencilFunc(GLenum func, GLint ref, GLuint mask) { |
1032 gles2::cmds::StencilFunc* c = GetCmdSpace<gles2::cmds::StencilFunc>(); | 1050 gles2::cmds::StencilFunc* c = GetCmdSpace<gles2::cmds::StencilFunc>(); |
1033 if (c) { | 1051 if (c) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 } | 1092 } |
1075 | 1093 |
1076 void TexImage2D(GLenum target, | 1094 void TexImage2D(GLenum target, |
1077 GLint level, | 1095 GLint level, |
1078 GLint internalformat, | 1096 GLint internalformat, |
1079 GLsizei width, | 1097 GLsizei width, |
1080 GLsizei height, | 1098 GLsizei height, |
1081 GLint border, | 1099 GLint border, |
1082 GLenum format, | 1100 GLenum format, |
1083 GLenum type, | 1101 GLenum type, |
1084 uint32 pixels_shm_id, | 1102 uint32_t pixels_shm_id, |
1085 uint32 pixels_shm_offset) { | 1103 uint32_t pixels_shm_offset) { |
1086 gles2::cmds::TexImage2D* c = GetCmdSpace<gles2::cmds::TexImage2D>(); | 1104 gles2::cmds::TexImage2D* c = GetCmdSpace<gles2::cmds::TexImage2D>(); |
1087 if (c) { | 1105 if (c) { |
1088 c->Init(target, | 1106 c->Init(target, |
1089 level, | 1107 level, |
1090 internalformat, | 1108 internalformat, |
1091 width, | 1109 width, |
1092 height, | 1110 height, |
1093 border, | 1111 border, |
1094 format, | 1112 format, |
1095 type, | 1113 type, |
1096 pixels_shm_id, | 1114 pixels_shm_id, |
1097 pixels_shm_offset); | 1115 pixels_shm_offset); |
1098 } | 1116 } |
1099 } | 1117 } |
1100 | 1118 |
1101 void TexParameterf(GLenum target, GLenum pname, GLfloat param) { | 1119 void TexParameterf(GLenum target, GLenum pname, GLfloat param) { |
1102 gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>(); | 1120 gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>(); |
1103 if (c) { | 1121 if (c) { |
1104 c->Init(target, pname, param); | 1122 c->Init(target, pname, param); |
1105 } | 1123 } |
1106 } | 1124 } |
1107 | 1125 |
1108 void TexParameterfv(GLenum target, | 1126 void TexParameterfv(GLenum target, |
1109 GLenum pname, | 1127 GLenum pname, |
1110 uint32 params_shm_id, | 1128 uint32_t params_shm_id, |
1111 uint32 params_shm_offset) { | 1129 uint32_t params_shm_offset) { |
1112 gles2::cmds::TexParameterfv* c = GetCmdSpace<gles2::cmds::TexParameterfv>(); | 1130 gles2::cmds::TexParameterfv* c = GetCmdSpace<gles2::cmds::TexParameterfv>(); |
1113 if (c) { | 1131 if (c) { |
1114 c->Init(target, pname, params_shm_id, params_shm_offset); | 1132 c->Init(target, pname, params_shm_id, params_shm_offset); |
1115 } | 1133 } |
1116 } | 1134 } |
1117 | 1135 |
1118 void TexParameterfvImmediate(GLenum target, | 1136 void TexParameterfvImmediate(GLenum target, |
1119 GLenum pname, | 1137 GLenum pname, |
1120 const GLfloat* params) { | 1138 const GLfloat* params) { |
1121 const uint32 size = gles2::cmds::TexParameterfvImmediate::ComputeSize(); | 1139 const uint32_t size = gles2::cmds::TexParameterfvImmediate::ComputeSize(); |
1122 gles2::cmds::TexParameterfvImmediate* c = | 1140 gles2::cmds::TexParameterfvImmediate* c = |
1123 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterfvImmediate>(size); | 1141 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterfvImmediate>(size); |
1124 if (c) { | 1142 if (c) { |
1125 c->Init(target, pname, params); | 1143 c->Init(target, pname, params); |
1126 } | 1144 } |
1127 } | 1145 } |
1128 | 1146 |
1129 void TexParameteri(GLenum target, GLenum pname, GLint param) { | 1147 void TexParameteri(GLenum target, GLenum pname, GLint param) { |
1130 gles2::cmds::TexParameteri* c = GetCmdSpace<gles2::cmds::TexParameteri>(); | 1148 gles2::cmds::TexParameteri* c = GetCmdSpace<gles2::cmds::TexParameteri>(); |
1131 if (c) { | 1149 if (c) { |
1132 c->Init(target, pname, param); | 1150 c->Init(target, pname, param); |
1133 } | 1151 } |
1134 } | 1152 } |
1135 | 1153 |
1136 void TexParameteriv(GLenum target, | 1154 void TexParameteriv(GLenum target, |
1137 GLenum pname, | 1155 GLenum pname, |
1138 uint32 params_shm_id, | 1156 uint32_t params_shm_id, |
1139 uint32 params_shm_offset) { | 1157 uint32_t params_shm_offset) { |
1140 gles2::cmds::TexParameteriv* c = GetCmdSpace<gles2::cmds::TexParameteriv>(); | 1158 gles2::cmds::TexParameteriv* c = GetCmdSpace<gles2::cmds::TexParameteriv>(); |
1141 if (c) { | 1159 if (c) { |
1142 c->Init(target, pname, params_shm_id, params_shm_offset); | 1160 c->Init(target, pname, params_shm_id, params_shm_offset); |
1143 } | 1161 } |
1144 } | 1162 } |
1145 | 1163 |
1146 void TexParameterivImmediate(GLenum target, GLenum pname, const GLint* params) { | 1164 void TexParameterivImmediate(GLenum target, GLenum pname, const GLint* params) { |
1147 const uint32 size = gles2::cmds::TexParameterivImmediate::ComputeSize(); | 1165 const uint32_t size = gles2::cmds::TexParameterivImmediate::ComputeSize(); |
1148 gles2::cmds::TexParameterivImmediate* c = | 1166 gles2::cmds::TexParameterivImmediate* c = |
1149 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterivImmediate>(size); | 1167 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterivImmediate>(size); |
1150 if (c) { | 1168 if (c) { |
1151 c->Init(target, pname, params); | 1169 c->Init(target, pname, params); |
1152 } | 1170 } |
1153 } | 1171 } |
1154 | 1172 |
1155 void TexSubImage2D(GLenum target, | 1173 void TexSubImage2D(GLenum target, |
1156 GLint level, | 1174 GLint level, |
1157 GLint xoffset, | 1175 GLint xoffset, |
1158 GLint yoffset, | 1176 GLint yoffset, |
1159 GLsizei width, | 1177 GLsizei width, |
1160 GLsizei height, | 1178 GLsizei height, |
1161 GLenum format, | 1179 GLenum format, |
1162 GLenum type, | 1180 GLenum type, |
1163 uint32 pixels_shm_id, | 1181 uint32_t pixels_shm_id, |
1164 uint32 pixels_shm_offset, | 1182 uint32_t pixels_shm_offset, |
1165 GLboolean internal) { | 1183 GLboolean internal) { |
1166 gles2::cmds::TexSubImage2D* c = GetCmdSpace<gles2::cmds::TexSubImage2D>(); | 1184 gles2::cmds::TexSubImage2D* c = GetCmdSpace<gles2::cmds::TexSubImage2D>(); |
1167 if (c) { | 1185 if (c) { |
1168 c->Init(target, | 1186 c->Init(target, |
1169 level, | 1187 level, |
1170 xoffset, | 1188 xoffset, |
1171 yoffset, | 1189 yoffset, |
1172 width, | 1190 width, |
1173 height, | 1191 height, |
1174 format, | 1192 format, |
1175 type, | 1193 type, |
1176 pixels_shm_id, | 1194 pixels_shm_id, |
1177 pixels_shm_offset, | 1195 pixels_shm_offset, |
1178 internal); | 1196 internal); |
1179 } | 1197 } |
1180 } | 1198 } |
1181 | 1199 |
1182 void Uniform1f(GLint location, GLfloat x) { | 1200 void Uniform1f(GLint location, GLfloat x) { |
1183 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>(); | 1201 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>(); |
1184 if (c) { | 1202 if (c) { |
1185 c->Init(location, x); | 1203 c->Init(location, x); |
1186 } | 1204 } |
1187 } | 1205 } |
1188 | 1206 |
1189 void Uniform1fv(GLint location, | 1207 void Uniform1fv(GLint location, |
1190 GLsizei count, | 1208 GLsizei count, |
1191 uint32 v_shm_id, | 1209 uint32_t v_shm_id, |
1192 uint32 v_shm_offset) { | 1210 uint32_t v_shm_offset) { |
1193 gles2::cmds::Uniform1fv* c = GetCmdSpace<gles2::cmds::Uniform1fv>(); | 1211 gles2::cmds::Uniform1fv* c = GetCmdSpace<gles2::cmds::Uniform1fv>(); |
1194 if (c) { | 1212 if (c) { |
1195 c->Init(location, count, v_shm_id, v_shm_offset); | 1213 c->Init(location, count, v_shm_id, v_shm_offset); |
1196 } | 1214 } |
1197 } | 1215 } |
1198 | 1216 |
1199 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) { | 1217 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) { |
1200 const uint32 size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count); | 1218 const uint32_t size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count); |
1201 gles2::cmds::Uniform1fvImmediate* c = | 1219 gles2::cmds::Uniform1fvImmediate* c = |
1202 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1fvImmediate>(size); | 1220 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1fvImmediate>(size); |
1203 if (c) { | 1221 if (c) { |
1204 c->Init(location, count, v); | 1222 c->Init(location, count, v); |
1205 } | 1223 } |
1206 } | 1224 } |
1207 | 1225 |
1208 void Uniform1i(GLint location, GLint x) { | 1226 void Uniform1i(GLint location, GLint x) { |
1209 gles2::cmds::Uniform1i* c = GetCmdSpace<gles2::cmds::Uniform1i>(); | 1227 gles2::cmds::Uniform1i* c = GetCmdSpace<gles2::cmds::Uniform1i>(); |
1210 if (c) { | 1228 if (c) { |
1211 c->Init(location, x); | 1229 c->Init(location, x); |
1212 } | 1230 } |
1213 } | 1231 } |
1214 | 1232 |
1215 void Uniform1iv(GLint location, | 1233 void Uniform1iv(GLint location, |
1216 GLsizei count, | 1234 GLsizei count, |
1217 uint32 v_shm_id, | 1235 uint32_t v_shm_id, |
1218 uint32 v_shm_offset) { | 1236 uint32_t v_shm_offset) { |
1219 gles2::cmds::Uniform1iv* c = GetCmdSpace<gles2::cmds::Uniform1iv>(); | 1237 gles2::cmds::Uniform1iv* c = GetCmdSpace<gles2::cmds::Uniform1iv>(); |
1220 if (c) { | 1238 if (c) { |
1221 c->Init(location, count, v_shm_id, v_shm_offset); | 1239 c->Init(location, count, v_shm_id, v_shm_offset); |
1222 } | 1240 } |
1223 } | 1241 } |
1224 | 1242 |
1225 void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) { | 1243 void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) { |
1226 const uint32 size = gles2::cmds::Uniform1ivImmediate::ComputeSize(count); | 1244 const uint32_t size = gles2::cmds::Uniform1ivImmediate::ComputeSize(count); |
1227 gles2::cmds::Uniform1ivImmediate* c = | 1245 gles2::cmds::Uniform1ivImmediate* c = |
1228 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1ivImmediate>(size); | 1246 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1ivImmediate>(size); |
1229 if (c) { | 1247 if (c) { |
1230 c->Init(location, count, v); | 1248 c->Init(location, count, v); |
1231 } | 1249 } |
1232 } | 1250 } |
1233 | 1251 |
1234 void Uniform2f(GLint location, GLfloat x, GLfloat y) { | 1252 void Uniform2f(GLint location, GLfloat x, GLfloat y) { |
1235 gles2::cmds::Uniform2f* c = GetCmdSpace<gles2::cmds::Uniform2f>(); | 1253 gles2::cmds::Uniform2f* c = GetCmdSpace<gles2::cmds::Uniform2f>(); |
1236 if (c) { | 1254 if (c) { |
1237 c->Init(location, x, y); | 1255 c->Init(location, x, y); |
1238 } | 1256 } |
1239 } | 1257 } |
1240 | 1258 |
1241 void Uniform2fv(GLint location, | 1259 void Uniform2fv(GLint location, |
1242 GLsizei count, | 1260 GLsizei count, |
1243 uint32 v_shm_id, | 1261 uint32_t v_shm_id, |
1244 uint32 v_shm_offset) { | 1262 uint32_t v_shm_offset) { |
1245 gles2::cmds::Uniform2fv* c = GetCmdSpace<gles2::cmds::Uniform2fv>(); | 1263 gles2::cmds::Uniform2fv* c = GetCmdSpace<gles2::cmds::Uniform2fv>(); |
1246 if (c) { | 1264 if (c) { |
1247 c->Init(location, count, v_shm_id, v_shm_offset); | 1265 c->Init(location, count, v_shm_id, v_shm_offset); |
1248 } | 1266 } |
1249 } | 1267 } |
1250 | 1268 |
1251 void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) { | 1269 void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) { |
1252 const uint32 size = gles2::cmds::Uniform2fvImmediate::ComputeSize(count); | 1270 const uint32_t size = gles2::cmds::Uniform2fvImmediate::ComputeSize(count); |
1253 gles2::cmds::Uniform2fvImmediate* c = | 1271 gles2::cmds::Uniform2fvImmediate* c = |
1254 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2fvImmediate>(size); | 1272 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2fvImmediate>(size); |
1255 if (c) { | 1273 if (c) { |
1256 c->Init(location, count, v); | 1274 c->Init(location, count, v); |
1257 } | 1275 } |
1258 } | 1276 } |
1259 | 1277 |
1260 void Uniform2i(GLint location, GLint x, GLint y) { | 1278 void Uniform2i(GLint location, GLint x, GLint y) { |
1261 gles2::cmds::Uniform2i* c = GetCmdSpace<gles2::cmds::Uniform2i>(); | 1279 gles2::cmds::Uniform2i* c = GetCmdSpace<gles2::cmds::Uniform2i>(); |
1262 if (c) { | 1280 if (c) { |
1263 c->Init(location, x, y); | 1281 c->Init(location, x, y); |
1264 } | 1282 } |
1265 } | 1283 } |
1266 | 1284 |
1267 void Uniform2iv(GLint location, | 1285 void Uniform2iv(GLint location, |
1268 GLsizei count, | 1286 GLsizei count, |
1269 uint32 v_shm_id, | 1287 uint32_t v_shm_id, |
1270 uint32 v_shm_offset) { | 1288 uint32_t v_shm_offset) { |
1271 gles2::cmds::Uniform2iv* c = GetCmdSpace<gles2::cmds::Uniform2iv>(); | 1289 gles2::cmds::Uniform2iv* c = GetCmdSpace<gles2::cmds::Uniform2iv>(); |
1272 if (c) { | 1290 if (c) { |
1273 c->Init(location, count, v_shm_id, v_shm_offset); | 1291 c->Init(location, count, v_shm_id, v_shm_offset); |
1274 } | 1292 } |
1275 } | 1293 } |
1276 | 1294 |
1277 void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) { | 1295 void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) { |
1278 const uint32 size = gles2::cmds::Uniform2ivImmediate::ComputeSize(count); | 1296 const uint32_t size = gles2::cmds::Uniform2ivImmediate::ComputeSize(count); |
1279 gles2::cmds::Uniform2ivImmediate* c = | 1297 gles2::cmds::Uniform2ivImmediate* c = |
1280 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2ivImmediate>(size); | 1298 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2ivImmediate>(size); |
1281 if (c) { | 1299 if (c) { |
1282 c->Init(location, count, v); | 1300 c->Init(location, count, v); |
1283 } | 1301 } |
1284 } | 1302 } |
1285 | 1303 |
1286 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { | 1304 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { |
1287 gles2::cmds::Uniform3f* c = GetCmdSpace<gles2::cmds::Uniform3f>(); | 1305 gles2::cmds::Uniform3f* c = GetCmdSpace<gles2::cmds::Uniform3f>(); |
1288 if (c) { | 1306 if (c) { |
1289 c->Init(location, x, y, z); | 1307 c->Init(location, x, y, z); |
1290 } | 1308 } |
1291 } | 1309 } |
1292 | 1310 |
1293 void Uniform3fv(GLint location, | 1311 void Uniform3fv(GLint location, |
1294 GLsizei count, | 1312 GLsizei count, |
1295 uint32 v_shm_id, | 1313 uint32_t v_shm_id, |
1296 uint32 v_shm_offset) { | 1314 uint32_t v_shm_offset) { |
1297 gles2::cmds::Uniform3fv* c = GetCmdSpace<gles2::cmds::Uniform3fv>(); | 1315 gles2::cmds::Uniform3fv* c = GetCmdSpace<gles2::cmds::Uniform3fv>(); |
1298 if (c) { | 1316 if (c) { |
1299 c->Init(location, count, v_shm_id, v_shm_offset); | 1317 c->Init(location, count, v_shm_id, v_shm_offset); |
1300 } | 1318 } |
1301 } | 1319 } |
1302 | 1320 |
1303 void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) { | 1321 void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) { |
1304 const uint32 size = gles2::cmds::Uniform3fvImmediate::ComputeSize(count); | 1322 const uint32_t size = gles2::cmds::Uniform3fvImmediate::ComputeSize(count); |
1305 gles2::cmds::Uniform3fvImmediate* c = | 1323 gles2::cmds::Uniform3fvImmediate* c = |
1306 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3fvImmediate>(size); | 1324 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3fvImmediate>(size); |
1307 if (c) { | 1325 if (c) { |
1308 c->Init(location, count, v); | 1326 c->Init(location, count, v); |
1309 } | 1327 } |
1310 } | 1328 } |
1311 | 1329 |
1312 void Uniform3i(GLint location, GLint x, GLint y, GLint z) { | 1330 void Uniform3i(GLint location, GLint x, GLint y, GLint z) { |
1313 gles2::cmds::Uniform3i* c = GetCmdSpace<gles2::cmds::Uniform3i>(); | 1331 gles2::cmds::Uniform3i* c = GetCmdSpace<gles2::cmds::Uniform3i>(); |
1314 if (c) { | 1332 if (c) { |
1315 c->Init(location, x, y, z); | 1333 c->Init(location, x, y, z); |
1316 } | 1334 } |
1317 } | 1335 } |
1318 | 1336 |
1319 void Uniform3iv(GLint location, | 1337 void Uniform3iv(GLint location, |
1320 GLsizei count, | 1338 GLsizei count, |
1321 uint32 v_shm_id, | 1339 uint32_t v_shm_id, |
1322 uint32 v_shm_offset) { | 1340 uint32_t v_shm_offset) { |
1323 gles2::cmds::Uniform3iv* c = GetCmdSpace<gles2::cmds::Uniform3iv>(); | 1341 gles2::cmds::Uniform3iv* c = GetCmdSpace<gles2::cmds::Uniform3iv>(); |
1324 if (c) { | 1342 if (c) { |
1325 c->Init(location, count, v_shm_id, v_shm_offset); | 1343 c->Init(location, count, v_shm_id, v_shm_offset); |
1326 } | 1344 } |
1327 } | 1345 } |
1328 | 1346 |
1329 void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) { | 1347 void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) { |
1330 const uint32 size = gles2::cmds::Uniform3ivImmediate::ComputeSize(count); | 1348 const uint32_t size = gles2::cmds::Uniform3ivImmediate::ComputeSize(count); |
1331 gles2::cmds::Uniform3ivImmediate* c = | 1349 gles2::cmds::Uniform3ivImmediate* c = |
1332 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3ivImmediate>(size); | 1350 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3ivImmediate>(size); |
1333 if (c) { | 1351 if (c) { |
1334 c->Init(location, count, v); | 1352 c->Init(location, count, v); |
1335 } | 1353 } |
1336 } | 1354 } |
1337 | 1355 |
1338 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { | 1356 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { |
1339 gles2::cmds::Uniform4f* c = GetCmdSpace<gles2::cmds::Uniform4f>(); | 1357 gles2::cmds::Uniform4f* c = GetCmdSpace<gles2::cmds::Uniform4f>(); |
1340 if (c) { | 1358 if (c) { |
1341 c->Init(location, x, y, z, w); | 1359 c->Init(location, x, y, z, w); |
1342 } | 1360 } |
1343 } | 1361 } |
1344 | 1362 |
1345 void Uniform4fv(GLint location, | 1363 void Uniform4fv(GLint location, |
1346 GLsizei count, | 1364 GLsizei count, |
1347 uint32 v_shm_id, | 1365 uint32_t v_shm_id, |
1348 uint32 v_shm_offset) { | 1366 uint32_t v_shm_offset) { |
1349 gles2::cmds::Uniform4fv* c = GetCmdSpace<gles2::cmds::Uniform4fv>(); | 1367 gles2::cmds::Uniform4fv* c = GetCmdSpace<gles2::cmds::Uniform4fv>(); |
1350 if (c) { | 1368 if (c) { |
1351 c->Init(location, count, v_shm_id, v_shm_offset); | 1369 c->Init(location, count, v_shm_id, v_shm_offset); |
1352 } | 1370 } |
1353 } | 1371 } |
1354 | 1372 |
1355 void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) { | 1373 void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) { |
1356 const uint32 size = gles2::cmds::Uniform4fvImmediate::ComputeSize(count); | 1374 const uint32_t size = gles2::cmds::Uniform4fvImmediate::ComputeSize(count); |
1357 gles2::cmds::Uniform4fvImmediate* c = | 1375 gles2::cmds::Uniform4fvImmediate* c = |
1358 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4fvImmediate>(size); | 1376 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4fvImmediate>(size); |
1359 if (c) { | 1377 if (c) { |
1360 c->Init(location, count, v); | 1378 c->Init(location, count, v); |
1361 } | 1379 } |
1362 } | 1380 } |
1363 | 1381 |
1364 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) { | 1382 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) { |
1365 gles2::cmds::Uniform4i* c = GetCmdSpace<gles2::cmds::Uniform4i>(); | 1383 gles2::cmds::Uniform4i* c = GetCmdSpace<gles2::cmds::Uniform4i>(); |
1366 if (c) { | 1384 if (c) { |
1367 c->Init(location, x, y, z, w); | 1385 c->Init(location, x, y, z, w); |
1368 } | 1386 } |
1369 } | 1387 } |
1370 | 1388 |
1371 void Uniform4iv(GLint location, | 1389 void Uniform4iv(GLint location, |
1372 GLsizei count, | 1390 GLsizei count, |
1373 uint32 v_shm_id, | 1391 uint32_t v_shm_id, |
1374 uint32 v_shm_offset) { | 1392 uint32_t v_shm_offset) { |
1375 gles2::cmds::Uniform4iv* c = GetCmdSpace<gles2::cmds::Uniform4iv>(); | 1393 gles2::cmds::Uniform4iv* c = GetCmdSpace<gles2::cmds::Uniform4iv>(); |
1376 if (c) { | 1394 if (c) { |
1377 c->Init(location, count, v_shm_id, v_shm_offset); | 1395 c->Init(location, count, v_shm_id, v_shm_offset); |
1378 } | 1396 } |
1379 } | 1397 } |
1380 | 1398 |
1381 void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) { | 1399 void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) { |
1382 const uint32 size = gles2::cmds::Uniform4ivImmediate::ComputeSize(count); | 1400 const uint32_t size = gles2::cmds::Uniform4ivImmediate::ComputeSize(count); |
1383 gles2::cmds::Uniform4ivImmediate* c = | 1401 gles2::cmds::Uniform4ivImmediate* c = |
1384 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4ivImmediate>(size); | 1402 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4ivImmediate>(size); |
1385 if (c) { | 1403 if (c) { |
1386 c->Init(location, count, v); | 1404 c->Init(location, count, v); |
1387 } | 1405 } |
1388 } | 1406 } |
1389 | 1407 |
1390 void UniformMatrix2fv(GLint location, | 1408 void UniformMatrix2fv(GLint location, |
1391 GLsizei count, | 1409 GLsizei count, |
1392 GLboolean transpose, | 1410 GLboolean transpose, |
1393 uint32 value_shm_id, | 1411 uint32_t value_shm_id, |
1394 uint32 value_shm_offset) { | 1412 uint32_t value_shm_offset) { |
1395 gles2::cmds::UniformMatrix2fv* c = | 1413 gles2::cmds::UniformMatrix2fv* c = |
1396 GetCmdSpace<gles2::cmds::UniformMatrix2fv>(); | 1414 GetCmdSpace<gles2::cmds::UniformMatrix2fv>(); |
1397 if (c) { | 1415 if (c) { |
1398 c->Init(location, count, transpose, value_shm_id, value_shm_offset); | 1416 c->Init(location, count, transpose, value_shm_id, value_shm_offset); |
1399 } | 1417 } |
1400 } | 1418 } |
1401 | 1419 |
1402 void UniformMatrix2fvImmediate(GLint location, | 1420 void UniformMatrix2fvImmediate(GLint location, |
1403 GLsizei count, | 1421 GLsizei count, |
1404 GLboolean transpose, | 1422 GLboolean transpose, |
1405 const GLfloat* value) { | 1423 const GLfloat* value) { |
1406 const uint32 size = | 1424 const uint32_t size = |
1407 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count); | 1425 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count); |
1408 gles2::cmds::UniformMatrix2fvImmediate* c = | 1426 gles2::cmds::UniformMatrix2fvImmediate* c = |
1409 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>( | 1427 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>( |
1410 size); | 1428 size); |
1411 if (c) { | 1429 if (c) { |
1412 c->Init(location, count, transpose, value); | 1430 c->Init(location, count, transpose, value); |
1413 } | 1431 } |
1414 } | 1432 } |
1415 | 1433 |
1416 void UniformMatrix3fv(GLint location, | 1434 void UniformMatrix3fv(GLint location, |
1417 GLsizei count, | 1435 GLsizei count, |
1418 GLboolean transpose, | 1436 GLboolean transpose, |
1419 uint32 value_shm_id, | 1437 uint32_t value_shm_id, |
1420 uint32 value_shm_offset) { | 1438 uint32_t value_shm_offset) { |
1421 gles2::cmds::UniformMatrix3fv* c = | 1439 gles2::cmds::UniformMatrix3fv* c = |
1422 GetCmdSpace<gles2::cmds::UniformMatrix3fv>(); | 1440 GetCmdSpace<gles2::cmds::UniformMatrix3fv>(); |
1423 if (c) { | 1441 if (c) { |
1424 c->Init(location, count, transpose, value_shm_id, value_shm_offset); | 1442 c->Init(location, count, transpose, value_shm_id, value_shm_offset); |
1425 } | 1443 } |
1426 } | 1444 } |
1427 | 1445 |
1428 void UniformMatrix3fvImmediate(GLint location, | 1446 void UniformMatrix3fvImmediate(GLint location, |
1429 GLsizei count, | 1447 GLsizei count, |
1430 GLboolean transpose, | 1448 GLboolean transpose, |
1431 const GLfloat* value) { | 1449 const GLfloat* value) { |
1432 const uint32 size = | 1450 const uint32_t size = |
1433 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count); | 1451 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count); |
1434 gles2::cmds::UniformMatrix3fvImmediate* c = | 1452 gles2::cmds::UniformMatrix3fvImmediate* c = |
1435 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>( | 1453 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>( |
1436 size); | 1454 size); |
1437 if (c) { | 1455 if (c) { |
1438 c->Init(location, count, transpose, value); | 1456 c->Init(location, count, transpose, value); |
1439 } | 1457 } |
1440 } | 1458 } |
1441 | 1459 |
1442 void UniformMatrix4fv(GLint location, | 1460 void UniformMatrix4fv(GLint location, |
1443 GLsizei count, | 1461 GLsizei count, |
1444 GLboolean transpose, | 1462 GLboolean transpose, |
1445 uint32 value_shm_id, | 1463 uint32_t value_shm_id, |
1446 uint32 value_shm_offset) { | 1464 uint32_t value_shm_offset) { |
1447 gles2::cmds::UniformMatrix4fv* c = | 1465 gles2::cmds::UniformMatrix4fv* c = |
1448 GetCmdSpace<gles2::cmds::UniformMatrix4fv>(); | 1466 GetCmdSpace<gles2::cmds::UniformMatrix4fv>(); |
1449 if (c) { | 1467 if (c) { |
1450 c->Init(location, count, transpose, value_shm_id, value_shm_offset); | 1468 c->Init(location, count, transpose, value_shm_id, value_shm_offset); |
1451 } | 1469 } |
1452 } | 1470 } |
1453 | 1471 |
1454 void UniformMatrix4fvImmediate(GLint location, | 1472 void UniformMatrix4fvImmediate(GLint location, |
1455 GLsizei count, | 1473 GLsizei count, |
1456 GLboolean transpose, | 1474 GLboolean transpose, |
1457 const GLfloat* value) { | 1475 const GLfloat* value) { |
1458 const uint32 size = | 1476 const uint32_t size = |
1459 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count); | 1477 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count); |
1460 gles2::cmds::UniformMatrix4fvImmediate* c = | 1478 gles2::cmds::UniformMatrix4fvImmediate* c = |
1461 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>( | 1479 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>( |
1462 size); | 1480 size); |
1463 if (c) { | 1481 if (c) { |
1464 c->Init(location, count, transpose, value); | 1482 c->Init(location, count, transpose, value); |
1465 } | 1483 } |
1466 } | 1484 } |
1467 | 1485 |
1468 void UseProgram(GLuint program) { | 1486 void UseProgram(GLuint program) { |
(...skipping 11 matching lines...) Expand all Loading... |
1480 } | 1498 } |
1481 | 1499 |
1482 void VertexAttrib1f(GLuint indx, GLfloat x) { | 1500 void VertexAttrib1f(GLuint indx, GLfloat x) { |
1483 gles2::cmds::VertexAttrib1f* c = GetCmdSpace<gles2::cmds::VertexAttrib1f>(); | 1501 gles2::cmds::VertexAttrib1f* c = GetCmdSpace<gles2::cmds::VertexAttrib1f>(); |
1484 if (c) { | 1502 if (c) { |
1485 c->Init(indx, x); | 1503 c->Init(indx, x); |
1486 } | 1504 } |
1487 } | 1505 } |
1488 | 1506 |
1489 void VertexAttrib1fv(GLuint indx, | 1507 void VertexAttrib1fv(GLuint indx, |
1490 uint32 values_shm_id, | 1508 uint32_t values_shm_id, |
1491 uint32 values_shm_offset) { | 1509 uint32_t values_shm_offset) { |
1492 gles2::cmds::VertexAttrib1fv* c = GetCmdSpace<gles2::cmds::VertexAttrib1fv>(); | 1510 gles2::cmds::VertexAttrib1fv* c = GetCmdSpace<gles2::cmds::VertexAttrib1fv>(); |
1493 if (c) { | 1511 if (c) { |
1494 c->Init(indx, values_shm_id, values_shm_offset); | 1512 c->Init(indx, values_shm_id, values_shm_offset); |
1495 } | 1513 } |
1496 } | 1514 } |
1497 | 1515 |
1498 void VertexAttrib1fvImmediate(GLuint indx, const GLfloat* values) { | 1516 void VertexAttrib1fvImmediate(GLuint indx, const GLfloat* values) { |
1499 const uint32 size = gles2::cmds::VertexAttrib1fvImmediate::ComputeSize(); | 1517 const uint32_t size = gles2::cmds::VertexAttrib1fvImmediate::ComputeSize(); |
1500 gles2::cmds::VertexAttrib1fvImmediate* c = | 1518 gles2::cmds::VertexAttrib1fvImmediate* c = |
1501 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib1fvImmediate>( | 1519 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib1fvImmediate>( |
1502 size); | 1520 size); |
1503 if (c) { | 1521 if (c) { |
1504 c->Init(indx, values); | 1522 c->Init(indx, values); |
1505 } | 1523 } |
1506 } | 1524 } |
1507 | 1525 |
1508 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { | 1526 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { |
1509 gles2::cmds::VertexAttrib2f* c = GetCmdSpace<gles2::cmds::VertexAttrib2f>(); | 1527 gles2::cmds::VertexAttrib2f* c = GetCmdSpace<gles2::cmds::VertexAttrib2f>(); |
1510 if (c) { | 1528 if (c) { |
1511 c->Init(indx, x, y); | 1529 c->Init(indx, x, y); |
1512 } | 1530 } |
1513 } | 1531 } |
1514 | 1532 |
1515 void VertexAttrib2fv(GLuint indx, | 1533 void VertexAttrib2fv(GLuint indx, |
1516 uint32 values_shm_id, | 1534 uint32_t values_shm_id, |
1517 uint32 values_shm_offset) { | 1535 uint32_t values_shm_offset) { |
1518 gles2::cmds::VertexAttrib2fv* c = GetCmdSpace<gles2::cmds::VertexAttrib2fv>(); | 1536 gles2::cmds::VertexAttrib2fv* c = GetCmdSpace<gles2::cmds::VertexAttrib2fv>(); |
1519 if (c) { | 1537 if (c) { |
1520 c->Init(indx, values_shm_id, values_shm_offset); | 1538 c->Init(indx, values_shm_id, values_shm_offset); |
1521 } | 1539 } |
1522 } | 1540 } |
1523 | 1541 |
1524 void VertexAttrib2fvImmediate(GLuint indx, const GLfloat* values) { | 1542 void VertexAttrib2fvImmediate(GLuint indx, const GLfloat* values) { |
1525 const uint32 size = gles2::cmds::VertexAttrib2fvImmediate::ComputeSize(); | 1543 const uint32_t size = gles2::cmds::VertexAttrib2fvImmediate::ComputeSize(); |
1526 gles2::cmds::VertexAttrib2fvImmediate* c = | 1544 gles2::cmds::VertexAttrib2fvImmediate* c = |
1527 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib2fvImmediate>( | 1545 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib2fvImmediate>( |
1528 size); | 1546 size); |
1529 if (c) { | 1547 if (c) { |
1530 c->Init(indx, values); | 1548 c->Init(indx, values); |
1531 } | 1549 } |
1532 } | 1550 } |
1533 | 1551 |
1534 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) { | 1552 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) { |
1535 gles2::cmds::VertexAttrib3f* c = GetCmdSpace<gles2::cmds::VertexAttrib3f>(); | 1553 gles2::cmds::VertexAttrib3f* c = GetCmdSpace<gles2::cmds::VertexAttrib3f>(); |
1536 if (c) { | 1554 if (c) { |
1537 c->Init(indx, x, y, z); | 1555 c->Init(indx, x, y, z); |
1538 } | 1556 } |
1539 } | 1557 } |
1540 | 1558 |
1541 void VertexAttrib3fv(GLuint indx, | 1559 void VertexAttrib3fv(GLuint indx, |
1542 uint32 values_shm_id, | 1560 uint32_t values_shm_id, |
1543 uint32 values_shm_offset) { | 1561 uint32_t values_shm_offset) { |
1544 gles2::cmds::VertexAttrib3fv* c = GetCmdSpace<gles2::cmds::VertexAttrib3fv>(); | 1562 gles2::cmds::VertexAttrib3fv* c = GetCmdSpace<gles2::cmds::VertexAttrib3fv>(); |
1545 if (c) { | 1563 if (c) { |
1546 c->Init(indx, values_shm_id, values_shm_offset); | 1564 c->Init(indx, values_shm_id, values_shm_offset); |
1547 } | 1565 } |
1548 } | 1566 } |
1549 | 1567 |
1550 void VertexAttrib3fvImmediate(GLuint indx, const GLfloat* values) { | 1568 void VertexAttrib3fvImmediate(GLuint indx, const GLfloat* values) { |
1551 const uint32 size = gles2::cmds::VertexAttrib3fvImmediate::ComputeSize(); | 1569 const uint32_t size = gles2::cmds::VertexAttrib3fvImmediate::ComputeSize(); |
1552 gles2::cmds::VertexAttrib3fvImmediate* c = | 1570 gles2::cmds::VertexAttrib3fvImmediate* c = |
1553 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib3fvImmediate>( | 1571 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib3fvImmediate>( |
1554 size); | 1572 size); |
1555 if (c) { | 1573 if (c) { |
1556 c->Init(indx, values); | 1574 c->Init(indx, values); |
1557 } | 1575 } |
1558 } | 1576 } |
1559 | 1577 |
1560 void VertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { | 1578 void VertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { |
1561 gles2::cmds::VertexAttrib4f* c = GetCmdSpace<gles2::cmds::VertexAttrib4f>(); | 1579 gles2::cmds::VertexAttrib4f* c = GetCmdSpace<gles2::cmds::VertexAttrib4f>(); |
1562 if (c) { | 1580 if (c) { |
1563 c->Init(indx, x, y, z, w); | 1581 c->Init(indx, x, y, z, w); |
1564 } | 1582 } |
1565 } | 1583 } |
1566 | 1584 |
1567 void VertexAttrib4fv(GLuint indx, | 1585 void VertexAttrib4fv(GLuint indx, |
1568 uint32 values_shm_id, | 1586 uint32_t values_shm_id, |
1569 uint32 values_shm_offset) { | 1587 uint32_t values_shm_offset) { |
1570 gles2::cmds::VertexAttrib4fv* c = GetCmdSpace<gles2::cmds::VertexAttrib4fv>(); | 1588 gles2::cmds::VertexAttrib4fv* c = GetCmdSpace<gles2::cmds::VertexAttrib4fv>(); |
1571 if (c) { | 1589 if (c) { |
1572 c->Init(indx, values_shm_id, values_shm_offset); | 1590 c->Init(indx, values_shm_id, values_shm_offset); |
1573 } | 1591 } |
1574 } | 1592 } |
1575 | 1593 |
1576 void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) { | 1594 void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) { |
1577 const uint32 size = gles2::cmds::VertexAttrib4fvImmediate::ComputeSize(); | 1595 const uint32_t size = gles2::cmds::VertexAttrib4fvImmediate::ComputeSize(); |
1578 gles2::cmds::VertexAttrib4fvImmediate* c = | 1596 gles2::cmds::VertexAttrib4fvImmediate* c = |
1579 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib4fvImmediate>( | 1597 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib4fvImmediate>( |
1580 size); | 1598 size); |
1581 if (c) { | 1599 if (c) { |
1582 c->Init(indx, values); | 1600 c->Init(indx, values); |
1583 } | 1601 } |
1584 } | 1602 } |
1585 | 1603 |
1586 void VertexAttribPointer(GLuint indx, | 1604 void VertexAttribPointer(GLuint indx, |
1587 GLint size, | 1605 GLint size, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1663 GLenum internalFormat, | 1681 GLenum internalFormat, |
1664 GLsizei width, | 1682 GLsizei width, |
1665 GLsizei height) { | 1683 GLsizei height) { |
1666 gles2::cmds::TexStorage2DEXT* c = GetCmdSpace<gles2::cmds::TexStorage2DEXT>(); | 1684 gles2::cmds::TexStorage2DEXT* c = GetCmdSpace<gles2::cmds::TexStorage2DEXT>(); |
1667 if (c) { | 1685 if (c) { |
1668 c->Init(target, levels, internalFormat, width, height); | 1686 c->Init(target, levels, internalFormat, width, height); |
1669 } | 1687 } |
1670 } | 1688 } |
1671 | 1689 |
1672 void GenQueriesEXT(GLsizei n, | 1690 void GenQueriesEXT(GLsizei n, |
1673 uint32 queries_shm_id, | 1691 uint32_t queries_shm_id, |
1674 uint32 queries_shm_offset) { | 1692 uint32_t queries_shm_offset) { |
1675 gles2::cmds::GenQueriesEXT* c = GetCmdSpace<gles2::cmds::GenQueriesEXT>(); | 1693 gles2::cmds::GenQueriesEXT* c = GetCmdSpace<gles2::cmds::GenQueriesEXT>(); |
1676 if (c) { | 1694 if (c) { |
1677 c->Init(n, queries_shm_id, queries_shm_offset); | 1695 c->Init(n, queries_shm_id, queries_shm_offset); |
1678 } | 1696 } |
1679 } | 1697 } |
1680 | 1698 |
1681 void GenQueriesEXTImmediate(GLsizei n, GLuint* queries) { | 1699 void GenQueriesEXTImmediate(GLsizei n, GLuint* queries) { |
1682 const uint32 size = gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n); | 1700 const uint32_t size = gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n); |
1683 gles2::cmds::GenQueriesEXTImmediate* c = | 1701 gles2::cmds::GenQueriesEXTImmediate* c = |
1684 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenQueriesEXTImmediate>(size); | 1702 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenQueriesEXTImmediate>(size); |
1685 if (c) { | 1703 if (c) { |
1686 c->Init(n, queries); | 1704 c->Init(n, queries); |
1687 } | 1705 } |
1688 } | 1706 } |
1689 | 1707 |
1690 void DeleteQueriesEXT(GLsizei n, | 1708 void DeleteQueriesEXT(GLsizei n, |
1691 uint32 queries_shm_id, | 1709 uint32_t queries_shm_id, |
1692 uint32 queries_shm_offset) { | 1710 uint32_t queries_shm_offset) { |
1693 gles2::cmds::DeleteQueriesEXT* c = | 1711 gles2::cmds::DeleteQueriesEXT* c = |
1694 GetCmdSpace<gles2::cmds::DeleteQueriesEXT>(); | 1712 GetCmdSpace<gles2::cmds::DeleteQueriesEXT>(); |
1695 if (c) { | 1713 if (c) { |
1696 c->Init(n, queries_shm_id, queries_shm_offset); | 1714 c->Init(n, queries_shm_id, queries_shm_offset); |
1697 } | 1715 } |
1698 } | 1716 } |
1699 | 1717 |
1700 void DeleteQueriesEXTImmediate(GLsizei n, const GLuint* queries) { | 1718 void DeleteQueriesEXTImmediate(GLsizei n, const GLuint* queries) { |
1701 const uint32 size = gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n); | 1719 const uint32_t size = gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n); |
1702 gles2::cmds::DeleteQueriesEXTImmediate* c = | 1720 gles2::cmds::DeleteQueriesEXTImmediate* c = |
1703 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteQueriesEXTImmediate>( | 1721 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteQueriesEXTImmediate>( |
1704 size); | 1722 size); |
1705 if (c) { | 1723 if (c) { |
1706 c->Init(n, queries); | 1724 c->Init(n, queries); |
1707 } | 1725 } |
1708 } | 1726 } |
1709 | 1727 |
1710 void BeginQueryEXT(GLenum target, | 1728 void BeginQueryEXT(GLenum target, |
1711 GLuint id, | 1729 GLuint id, |
1712 uint32 sync_data_shm_id, | 1730 uint32_t sync_data_shm_id, |
1713 uint32 sync_data_shm_offset) { | 1731 uint32_t sync_data_shm_offset) { |
1714 gles2::cmds::BeginQueryEXT* c = GetCmdSpace<gles2::cmds::BeginQueryEXT>(); | 1732 gles2::cmds::BeginQueryEXT* c = GetCmdSpace<gles2::cmds::BeginQueryEXT>(); |
1715 if (c) { | 1733 if (c) { |
1716 c->Init(target, id, sync_data_shm_id, sync_data_shm_offset); | 1734 c->Init(target, id, sync_data_shm_id, sync_data_shm_offset); |
1717 } | 1735 } |
1718 } | 1736 } |
1719 | 1737 |
1720 void EndQueryEXT(GLenum target, GLuint submit_count) { | 1738 void EndQueryEXT(GLenum target, GLuint submit_count) { |
1721 gles2::cmds::EndQueryEXT* c = GetCmdSpace<gles2::cmds::EndQueryEXT>(); | 1739 gles2::cmds::EndQueryEXT* c = GetCmdSpace<gles2::cmds::EndQueryEXT>(); |
1722 if (c) { | 1740 if (c) { |
1723 c->Init(target, submit_count); | 1741 c->Init(target, submit_count); |
(...skipping 18 matching lines...) Expand all Loading... |
1742 | 1760 |
1743 void PopGroupMarkerEXT() { | 1761 void PopGroupMarkerEXT() { |
1744 gles2::cmds::PopGroupMarkerEXT* c = | 1762 gles2::cmds::PopGroupMarkerEXT* c = |
1745 GetCmdSpace<gles2::cmds::PopGroupMarkerEXT>(); | 1763 GetCmdSpace<gles2::cmds::PopGroupMarkerEXT>(); |
1746 if (c) { | 1764 if (c) { |
1747 c->Init(); | 1765 c->Init(); |
1748 } | 1766 } |
1749 } | 1767 } |
1750 | 1768 |
1751 void GenVertexArraysOES(GLsizei n, | 1769 void GenVertexArraysOES(GLsizei n, |
1752 uint32 arrays_shm_id, | 1770 uint32_t arrays_shm_id, |
1753 uint32 arrays_shm_offset) { | 1771 uint32_t arrays_shm_offset) { |
1754 gles2::cmds::GenVertexArraysOES* c = | 1772 gles2::cmds::GenVertexArraysOES* c = |
1755 GetCmdSpace<gles2::cmds::GenVertexArraysOES>(); | 1773 GetCmdSpace<gles2::cmds::GenVertexArraysOES>(); |
1756 if (c) { | 1774 if (c) { |
1757 c->Init(n, arrays_shm_id, arrays_shm_offset); | 1775 c->Init(n, arrays_shm_id, arrays_shm_offset); |
1758 } | 1776 } |
1759 } | 1777 } |
1760 | 1778 |
1761 void GenVertexArraysOESImmediate(GLsizei n, GLuint* arrays) { | 1779 void GenVertexArraysOESImmediate(GLsizei n, GLuint* arrays) { |
1762 const uint32 size = gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n); | 1780 const uint32_t size = |
| 1781 gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n); |
1763 gles2::cmds::GenVertexArraysOESImmediate* c = | 1782 gles2::cmds::GenVertexArraysOESImmediate* c = |
1764 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenVertexArraysOESImmediate>( | 1783 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenVertexArraysOESImmediate>( |
1765 size); | 1784 size); |
1766 if (c) { | 1785 if (c) { |
1767 c->Init(n, arrays); | 1786 c->Init(n, arrays); |
1768 } | 1787 } |
1769 } | 1788 } |
1770 | 1789 |
1771 void DeleteVertexArraysOES(GLsizei n, | 1790 void DeleteVertexArraysOES(GLsizei n, |
1772 uint32 arrays_shm_id, | 1791 uint32_t arrays_shm_id, |
1773 uint32 arrays_shm_offset) { | 1792 uint32_t arrays_shm_offset) { |
1774 gles2::cmds::DeleteVertexArraysOES* c = | 1793 gles2::cmds::DeleteVertexArraysOES* c = |
1775 GetCmdSpace<gles2::cmds::DeleteVertexArraysOES>(); | 1794 GetCmdSpace<gles2::cmds::DeleteVertexArraysOES>(); |
1776 if (c) { | 1795 if (c) { |
1777 c->Init(n, arrays_shm_id, arrays_shm_offset); | 1796 c->Init(n, arrays_shm_id, arrays_shm_offset); |
1778 } | 1797 } |
1779 } | 1798 } |
1780 | 1799 |
1781 void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) { | 1800 void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) { |
1782 const uint32 size = | 1801 const uint32_t size = |
1783 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n); | 1802 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n); |
1784 gles2::cmds::DeleteVertexArraysOESImmediate* c = | 1803 gles2::cmds::DeleteVertexArraysOESImmediate* c = |
1785 GetImmediateCmdSpaceTotalSize< | 1804 GetImmediateCmdSpaceTotalSize< |
1786 gles2::cmds::DeleteVertexArraysOESImmediate>(size); | 1805 gles2::cmds::DeleteVertexArraysOESImmediate>(size); |
1787 if (c) { | 1806 if (c) { |
1788 c->Init(n, arrays); | 1807 c->Init(n, arrays); |
1789 } | 1808 } |
1790 } | 1809 } |
1791 | 1810 |
1792 void IsVertexArrayOES(GLuint array, | 1811 void IsVertexArrayOES(GLuint array, |
1793 uint32 result_shm_id, | 1812 uint32_t result_shm_id, |
1794 uint32 result_shm_offset) { | 1813 uint32_t result_shm_offset) { |
1795 gles2::cmds::IsVertexArrayOES* c = | 1814 gles2::cmds::IsVertexArrayOES* c = |
1796 GetCmdSpace<gles2::cmds::IsVertexArrayOES>(); | 1815 GetCmdSpace<gles2::cmds::IsVertexArrayOES>(); |
1797 if (c) { | 1816 if (c) { |
1798 c->Init(array, result_shm_id, result_shm_offset); | 1817 c->Init(array, result_shm_id, result_shm_offset); |
1799 } | 1818 } |
1800 } | 1819 } |
1801 | 1820 |
1802 void BindVertexArrayOES(GLuint array) { | 1821 void BindVertexArrayOES(GLuint array) { |
1803 gles2::cmds::BindVertexArrayOES* c = | 1822 gles2::cmds::BindVertexArrayOES* c = |
1804 GetCmdSpace<gles2::cmds::BindVertexArrayOES>(); | 1823 GetCmdSpace<gles2::cmds::BindVertexArrayOES>(); |
1805 if (c) { | 1824 if (c) { |
1806 c->Init(array); | 1825 c->Init(array); |
1807 } | 1826 } |
1808 } | 1827 } |
1809 | 1828 |
1810 void SwapBuffers() { | 1829 void SwapBuffers() { |
1811 gles2::cmds::SwapBuffers* c = GetCmdSpace<gles2::cmds::SwapBuffers>(); | 1830 gles2::cmds::SwapBuffers* c = GetCmdSpace<gles2::cmds::SwapBuffers>(); |
1812 if (c) { | 1831 if (c) { |
1813 c->Init(); | 1832 c->Init(); |
1814 } | 1833 } |
1815 } | 1834 } |
1816 | 1835 |
1817 void GetMaxValueInBufferCHROMIUM(GLuint buffer_id, | 1836 void GetMaxValueInBufferCHROMIUM(GLuint buffer_id, |
1818 GLsizei count, | 1837 GLsizei count, |
1819 GLenum type, | 1838 GLenum type, |
1820 GLuint offset, | 1839 GLuint offset, |
1821 uint32 result_shm_id, | 1840 uint32_t result_shm_id, |
1822 uint32 result_shm_offset) { | 1841 uint32_t result_shm_offset) { |
1823 gles2::cmds::GetMaxValueInBufferCHROMIUM* c = | 1842 gles2::cmds::GetMaxValueInBufferCHROMIUM* c = |
1824 GetCmdSpace<gles2::cmds::GetMaxValueInBufferCHROMIUM>(); | 1843 GetCmdSpace<gles2::cmds::GetMaxValueInBufferCHROMIUM>(); |
1825 if (c) { | 1844 if (c) { |
1826 c->Init(buffer_id, count, type, offset, result_shm_id, result_shm_offset); | 1845 c->Init(buffer_id, count, type, offset, result_shm_id, result_shm_offset); |
1827 } | 1846 } |
1828 } | 1847 } |
1829 | 1848 |
1830 void GenSharedIdsCHROMIUM(GLuint namespace_id, | 1849 void GenSharedIdsCHROMIUM(GLuint namespace_id, |
1831 GLuint id_offset, | 1850 GLuint id_offset, |
1832 GLsizei n, | 1851 GLsizei n, |
1833 uint32 ids_shm_id, | 1852 uint32_t ids_shm_id, |
1834 uint32 ids_shm_offset) { | 1853 uint32_t ids_shm_offset) { |
1835 gles2::cmds::GenSharedIdsCHROMIUM* c = | 1854 gles2::cmds::GenSharedIdsCHROMIUM* c = |
1836 GetCmdSpace<gles2::cmds::GenSharedIdsCHROMIUM>(); | 1855 GetCmdSpace<gles2::cmds::GenSharedIdsCHROMIUM>(); |
1837 if (c) { | 1856 if (c) { |
1838 c->Init(namespace_id, id_offset, n, ids_shm_id, ids_shm_offset); | 1857 c->Init(namespace_id, id_offset, n, ids_shm_id, ids_shm_offset); |
1839 } | 1858 } |
1840 } | 1859 } |
1841 | 1860 |
1842 void DeleteSharedIdsCHROMIUM(GLuint namespace_id, | 1861 void DeleteSharedIdsCHROMIUM(GLuint namespace_id, |
1843 GLsizei n, | 1862 GLsizei n, |
1844 uint32 ids_shm_id, | 1863 uint32_t ids_shm_id, |
1845 uint32 ids_shm_offset) { | 1864 uint32_t ids_shm_offset) { |
1846 gles2::cmds::DeleteSharedIdsCHROMIUM* c = | 1865 gles2::cmds::DeleteSharedIdsCHROMIUM* c = |
1847 GetCmdSpace<gles2::cmds::DeleteSharedIdsCHROMIUM>(); | 1866 GetCmdSpace<gles2::cmds::DeleteSharedIdsCHROMIUM>(); |
1848 if (c) { | 1867 if (c) { |
1849 c->Init(namespace_id, n, ids_shm_id, ids_shm_offset); | 1868 c->Init(namespace_id, n, ids_shm_id, ids_shm_offset); |
1850 } | 1869 } |
1851 } | 1870 } |
1852 | 1871 |
1853 void RegisterSharedIdsCHROMIUM(GLuint namespace_id, | 1872 void RegisterSharedIdsCHROMIUM(GLuint namespace_id, |
1854 GLsizei n, | 1873 GLsizei n, |
1855 uint32 ids_shm_id, | 1874 uint32_t ids_shm_id, |
1856 uint32 ids_shm_offset) { | 1875 uint32_t ids_shm_offset) { |
1857 gles2::cmds::RegisterSharedIdsCHROMIUM* c = | 1876 gles2::cmds::RegisterSharedIdsCHROMIUM* c = |
1858 GetCmdSpace<gles2::cmds::RegisterSharedIdsCHROMIUM>(); | 1877 GetCmdSpace<gles2::cmds::RegisterSharedIdsCHROMIUM>(); |
1859 if (c) { | 1878 if (c) { |
1860 c->Init(namespace_id, n, ids_shm_id, ids_shm_offset); | 1879 c->Init(namespace_id, n, ids_shm_id, ids_shm_offset); |
1861 } | 1880 } |
1862 } | 1881 } |
1863 | 1882 |
1864 void EnableFeatureCHROMIUM(GLuint bucket_id, | 1883 void EnableFeatureCHROMIUM(GLuint bucket_id, |
1865 uint32 result_shm_id, | 1884 uint32_t result_shm_id, |
1866 uint32 result_shm_offset) { | 1885 uint32_t result_shm_offset) { |
1867 gles2::cmds::EnableFeatureCHROMIUM* c = | 1886 gles2::cmds::EnableFeatureCHROMIUM* c = |
1868 GetCmdSpace<gles2::cmds::EnableFeatureCHROMIUM>(); | 1887 GetCmdSpace<gles2::cmds::EnableFeatureCHROMIUM>(); |
1869 if (c) { | 1888 if (c) { |
1870 c->Init(bucket_id, result_shm_id, result_shm_offset); | 1889 c->Init(bucket_id, result_shm_id, result_shm_offset); |
1871 } | 1890 } |
1872 } | 1891 } |
1873 | 1892 |
1874 void ResizeCHROMIUM(GLuint width, GLuint height, GLfloat scale_factor) { | 1893 void ResizeCHROMIUM(GLuint width, GLuint height, GLfloat scale_factor) { |
1875 gles2::cmds::ResizeCHROMIUM* c = GetCmdSpace<gles2::cmds::ResizeCHROMIUM>(); | 1894 gles2::cmds::ResizeCHROMIUM* c = GetCmdSpace<gles2::cmds::ResizeCHROMIUM>(); |
1876 if (c) { | 1895 if (c) { |
1877 c->Init(width, height, scale_factor); | 1896 c->Init(width, height, scale_factor); |
1878 } | 1897 } |
1879 } | 1898 } |
1880 | 1899 |
1881 void GetRequestableExtensionsCHROMIUM(uint32 bucket_id) { | 1900 void GetRequestableExtensionsCHROMIUM(uint32_t bucket_id) { |
1882 gles2::cmds::GetRequestableExtensionsCHROMIUM* c = | 1901 gles2::cmds::GetRequestableExtensionsCHROMIUM* c = |
1883 GetCmdSpace<gles2::cmds::GetRequestableExtensionsCHROMIUM>(); | 1902 GetCmdSpace<gles2::cmds::GetRequestableExtensionsCHROMIUM>(); |
1884 if (c) { | 1903 if (c) { |
1885 c->Init(bucket_id); | 1904 c->Init(bucket_id); |
1886 } | 1905 } |
1887 } | 1906 } |
1888 | 1907 |
1889 void RequestExtensionCHROMIUM(uint32 bucket_id) { | 1908 void RequestExtensionCHROMIUM(uint32_t bucket_id) { |
1890 gles2::cmds::RequestExtensionCHROMIUM* c = | 1909 gles2::cmds::RequestExtensionCHROMIUM* c = |
1891 GetCmdSpace<gles2::cmds::RequestExtensionCHROMIUM>(); | 1910 GetCmdSpace<gles2::cmds::RequestExtensionCHROMIUM>(); |
1892 if (c) { | 1911 if (c) { |
1893 c->Init(bucket_id); | 1912 c->Init(bucket_id); |
1894 } | 1913 } |
1895 } | 1914 } |
1896 | 1915 |
1897 void GetMultipleIntegervCHROMIUM(uint32 pnames_shm_id, | 1916 void GetMultipleIntegervCHROMIUM(uint32_t pnames_shm_id, |
1898 uint32 pnames_shm_offset, | 1917 uint32_t pnames_shm_offset, |
1899 GLuint count, | 1918 GLuint count, |
1900 uint32 results_shm_id, | 1919 uint32_t results_shm_id, |
1901 uint32 results_shm_offset, | 1920 uint32_t results_shm_offset, |
1902 GLsizeiptr size) { | 1921 GLsizeiptr size) { |
1903 gles2::cmds::GetMultipleIntegervCHROMIUM* c = | 1922 gles2::cmds::GetMultipleIntegervCHROMIUM* c = |
1904 GetCmdSpace<gles2::cmds::GetMultipleIntegervCHROMIUM>(); | 1923 GetCmdSpace<gles2::cmds::GetMultipleIntegervCHROMIUM>(); |
1905 if (c) { | 1924 if (c) { |
1906 c->Init(pnames_shm_id, | 1925 c->Init(pnames_shm_id, |
1907 pnames_shm_offset, | 1926 pnames_shm_offset, |
1908 count, | 1927 count, |
1909 results_shm_id, | 1928 results_shm_id, |
1910 results_shm_offset, | 1929 results_shm_offset, |
1911 size); | 1930 size); |
1912 } | 1931 } |
1913 } | 1932 } |
1914 | 1933 |
1915 void GetProgramInfoCHROMIUM(GLuint program, uint32 bucket_id) { | 1934 void GetProgramInfoCHROMIUM(GLuint program, uint32_t bucket_id) { |
1916 gles2::cmds::GetProgramInfoCHROMIUM* c = | 1935 gles2::cmds::GetProgramInfoCHROMIUM* c = |
1917 GetCmdSpace<gles2::cmds::GetProgramInfoCHROMIUM>(); | 1936 GetCmdSpace<gles2::cmds::GetProgramInfoCHROMIUM>(); |
1918 if (c) { | 1937 if (c) { |
1919 c->Init(program, bucket_id); | 1938 c->Init(program, bucket_id); |
1920 } | 1939 } |
1921 } | 1940 } |
1922 | 1941 |
1923 void GetTranslatedShaderSourceANGLE(GLuint shader, uint32 bucket_id) { | 1942 void GetTranslatedShaderSourceANGLE(GLuint shader, uint32_t bucket_id) { |
1924 gles2::cmds::GetTranslatedShaderSourceANGLE* c = | 1943 gles2::cmds::GetTranslatedShaderSourceANGLE* c = |
1925 GetCmdSpace<gles2::cmds::GetTranslatedShaderSourceANGLE>(); | 1944 GetCmdSpace<gles2::cmds::GetTranslatedShaderSourceANGLE>(); |
1926 if (c) { | 1945 if (c) { |
1927 c->Init(shader, bucket_id); | 1946 c->Init(shader, bucket_id); |
1928 } | 1947 } |
1929 } | 1948 } |
1930 | 1949 |
1931 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { | 1950 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { |
1932 gles2::cmds::PostSubBufferCHROMIUM* c = | 1951 gles2::cmds::PostSubBufferCHROMIUM* c = |
1933 GetCmdSpace<gles2::cmds::PostSubBufferCHROMIUM>(); | 1952 GetCmdSpace<gles2::cmds::PostSubBufferCHROMIUM>(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1986 | 2005 |
1987 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) { | 2006 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) { |
1988 gles2::cmds::VertexAttribDivisorANGLE* c = | 2007 gles2::cmds::VertexAttribDivisorANGLE* c = |
1989 GetCmdSpace<gles2::cmds::VertexAttribDivisorANGLE>(); | 2008 GetCmdSpace<gles2::cmds::VertexAttribDivisorANGLE>(); |
1990 if (c) { | 2009 if (c) { |
1991 c->Init(index, divisor); | 2010 c->Init(index, divisor); |
1992 } | 2011 } |
1993 } | 2012 } |
1994 | 2013 |
1995 void ProduceTextureCHROMIUM(GLenum target, | 2014 void ProduceTextureCHROMIUM(GLenum target, |
1996 uint32 mailbox_shm_id, | 2015 uint32_t mailbox_shm_id, |
1997 uint32 mailbox_shm_offset) { | 2016 uint32_t mailbox_shm_offset) { |
1998 gles2::cmds::ProduceTextureCHROMIUM* c = | 2017 gles2::cmds::ProduceTextureCHROMIUM* c = |
1999 GetCmdSpace<gles2::cmds::ProduceTextureCHROMIUM>(); | 2018 GetCmdSpace<gles2::cmds::ProduceTextureCHROMIUM>(); |
2000 if (c) { | 2019 if (c) { |
2001 c->Init(target, mailbox_shm_id, mailbox_shm_offset); | 2020 c->Init(target, mailbox_shm_id, mailbox_shm_offset); |
2002 } | 2021 } |
2003 } | 2022 } |
2004 | 2023 |
2005 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { | 2024 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { |
2006 const uint32 size = | 2025 const uint32_t size = |
2007 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize(); | 2026 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize(); |
2008 gles2::cmds::ProduceTextureCHROMIUMImmediate* c = | 2027 gles2::cmds::ProduceTextureCHROMIUMImmediate* c = |
2009 GetImmediateCmdSpaceTotalSize< | 2028 GetImmediateCmdSpaceTotalSize< |
2010 gles2::cmds::ProduceTextureCHROMIUMImmediate>(size); | 2029 gles2::cmds::ProduceTextureCHROMIUMImmediate>(size); |
2011 if (c) { | 2030 if (c) { |
2012 c->Init(target, mailbox); | 2031 c->Init(target, mailbox); |
2013 } | 2032 } |
2014 } | 2033 } |
2015 | 2034 |
2016 void ConsumeTextureCHROMIUM(GLenum target, | 2035 void ConsumeTextureCHROMIUM(GLenum target, |
2017 uint32 mailbox_shm_id, | 2036 uint32_t mailbox_shm_id, |
2018 uint32 mailbox_shm_offset) { | 2037 uint32_t mailbox_shm_offset) { |
2019 gles2::cmds::ConsumeTextureCHROMIUM* c = | 2038 gles2::cmds::ConsumeTextureCHROMIUM* c = |
2020 GetCmdSpace<gles2::cmds::ConsumeTextureCHROMIUM>(); | 2039 GetCmdSpace<gles2::cmds::ConsumeTextureCHROMIUM>(); |
2021 if (c) { | 2040 if (c) { |
2022 c->Init(target, mailbox_shm_id, mailbox_shm_offset); | 2041 c->Init(target, mailbox_shm_id, mailbox_shm_offset); |
2023 } | 2042 } |
2024 } | 2043 } |
2025 | 2044 |
2026 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { | 2045 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { |
2027 const uint32 size = | 2046 const uint32_t size = |
2028 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); | 2047 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); |
2029 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = | 2048 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = |
2030 GetImmediateCmdSpaceTotalSize< | 2049 GetImmediateCmdSpaceTotalSize< |
2031 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); | 2050 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); |
2032 if (c) { | 2051 if (c) { |
2033 c->Init(target, mailbox); | 2052 c->Init(target, mailbox); |
2034 } | 2053 } |
2035 } | 2054 } |
2036 | 2055 |
2037 void BindUniformLocationCHROMIUM(GLuint program, | 2056 void BindUniformLocationCHROMIUM(GLuint program, |
2038 GLint location, | 2057 GLint location, |
2039 uint32 name_shm_id, | 2058 uint32_t name_shm_id, |
2040 uint32 name_shm_offset, | 2059 uint32_t name_shm_offset, |
2041 uint32 data_size) { | 2060 uint32_t data_size) { |
2042 gles2::cmds::BindUniformLocationCHROMIUM* c = | 2061 gles2::cmds::BindUniformLocationCHROMIUM* c = |
2043 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUM>(); | 2062 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUM>(); |
2044 if (c) { | 2063 if (c) { |
2045 c->Init(program, location, name_shm_id, name_shm_offset, data_size); | 2064 c->Init(program, location, name_shm_id, name_shm_offset, data_size); |
2046 } | 2065 } |
2047 } | 2066 } |
2048 | 2067 |
2049 void BindUniformLocationCHROMIUMBucket(GLuint program, | 2068 void BindUniformLocationCHROMIUMBucket(GLuint program, |
2050 GLint location, | 2069 GLint location, |
2051 uint32 name_bucket_id) { | 2070 uint32_t name_bucket_id) { |
2052 gles2::cmds::BindUniformLocationCHROMIUMBucket* c = | 2071 gles2::cmds::BindUniformLocationCHROMIUMBucket* c = |
2053 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>(); | 2072 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>(); |
2054 if (c) { | 2073 if (c) { |
2055 c->Init(program, location, name_bucket_id); | 2074 c->Init(program, location, name_bucket_id); |
2056 } | 2075 } |
2057 } | 2076 } |
2058 | 2077 |
2059 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 2078 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
2060 gles2::cmds::BindTexImage2DCHROMIUM* c = | 2079 gles2::cmds::BindTexImage2DCHROMIUM* c = |
2061 GetCmdSpace<gles2::cmds::BindTexImage2DCHROMIUM>(); | 2080 GetCmdSpace<gles2::cmds::BindTexImage2DCHROMIUM>(); |
(...skipping 27 matching lines...) Expand all Loading... |
2089 } | 2108 } |
2090 | 2109 |
2091 void AsyncTexSubImage2DCHROMIUM(GLenum target, | 2110 void AsyncTexSubImage2DCHROMIUM(GLenum target, |
2092 GLint level, | 2111 GLint level, |
2093 GLint xoffset, | 2112 GLint xoffset, |
2094 GLint yoffset, | 2113 GLint yoffset, |
2095 GLsizei width, | 2114 GLsizei width, |
2096 GLsizei height, | 2115 GLsizei height, |
2097 GLenum format, | 2116 GLenum format, |
2098 GLenum type, | 2117 GLenum type, |
2099 uint32 data_shm_id, | 2118 uint32_t data_shm_id, |
2100 uint32 data_shm_offset, | 2119 uint32_t data_shm_offset, |
2101 uint32 async_upload_token, | 2120 uint32_t async_upload_token, |
2102 uint32 sync_data_shm_id, | 2121 uint32_t sync_data_shm_id, |
2103 uint32 sync_data_shm_offset) { | 2122 uint32_t sync_data_shm_offset) { |
2104 gles2::cmds::AsyncTexSubImage2DCHROMIUM* c = | 2123 gles2::cmds::AsyncTexSubImage2DCHROMIUM* c = |
2105 GetCmdSpace<gles2::cmds::AsyncTexSubImage2DCHROMIUM>(); | 2124 GetCmdSpace<gles2::cmds::AsyncTexSubImage2DCHROMIUM>(); |
2106 if (c) { | 2125 if (c) { |
2107 c->Init(target, | 2126 c->Init(target, |
2108 level, | 2127 level, |
2109 xoffset, | 2128 xoffset, |
2110 yoffset, | 2129 yoffset, |
2111 width, | 2130 width, |
2112 height, | 2131 height, |
2113 format, | 2132 format, |
2114 type, | 2133 type, |
2115 data_shm_id, | 2134 data_shm_id, |
2116 data_shm_offset, | 2135 data_shm_offset, |
2117 async_upload_token, | 2136 async_upload_token, |
2118 sync_data_shm_id, | 2137 sync_data_shm_id, |
2119 sync_data_shm_offset); | 2138 sync_data_shm_offset); |
2120 } | 2139 } |
2121 } | 2140 } |
2122 | 2141 |
2123 void AsyncTexImage2DCHROMIUM(GLenum target, | 2142 void AsyncTexImage2DCHROMIUM(GLenum target, |
2124 GLint level, | 2143 GLint level, |
2125 GLint internalformat, | 2144 GLint internalformat, |
2126 GLsizei width, | 2145 GLsizei width, |
2127 GLsizei height, | 2146 GLsizei height, |
2128 GLint border, | 2147 GLint border, |
2129 GLenum format, | 2148 GLenum format, |
2130 GLenum type, | 2149 GLenum type, |
2131 uint32 pixels_shm_id, | 2150 uint32_t pixels_shm_id, |
2132 uint32 pixels_shm_offset, | 2151 uint32_t pixels_shm_offset, |
2133 uint32 async_upload_token, | 2152 uint32_t async_upload_token, |
2134 uint32 sync_data_shm_id, | 2153 uint32_t sync_data_shm_id, |
2135 uint32 sync_data_shm_offset) { | 2154 uint32_t sync_data_shm_offset) { |
2136 gles2::cmds::AsyncTexImage2DCHROMIUM* c = | 2155 gles2::cmds::AsyncTexImage2DCHROMIUM* c = |
2137 GetCmdSpace<gles2::cmds::AsyncTexImage2DCHROMIUM>(); | 2156 GetCmdSpace<gles2::cmds::AsyncTexImage2DCHROMIUM>(); |
2138 if (c) { | 2157 if (c) { |
2139 c->Init(target, | 2158 c->Init(target, |
2140 level, | 2159 level, |
2141 internalformat, | 2160 internalformat, |
2142 width, | 2161 width, |
2143 height, | 2162 height, |
2144 border, | 2163 border, |
2145 format, | 2164 format, |
(...skipping 17 matching lines...) Expand all Loading... |
2163 void WaitAllAsyncTexImage2DCHROMIUM() { | 2182 void WaitAllAsyncTexImage2DCHROMIUM() { |
2164 gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM* c = | 2183 gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM* c = |
2165 GetCmdSpace<gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM>(); | 2184 GetCmdSpace<gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM>(); |
2166 if (c) { | 2185 if (c) { |
2167 c->Init(); | 2186 c->Init(); |
2168 } | 2187 } |
2169 } | 2188 } |
2170 | 2189 |
2171 void DiscardFramebufferEXT(GLenum target, | 2190 void DiscardFramebufferEXT(GLenum target, |
2172 GLsizei count, | 2191 GLsizei count, |
2173 uint32 attachments_shm_id, | 2192 uint32_t attachments_shm_id, |
2174 uint32 attachments_shm_offset) { | 2193 uint32_t attachments_shm_offset) { |
2175 gles2::cmds::DiscardFramebufferEXT* c = | 2194 gles2::cmds::DiscardFramebufferEXT* c = |
2176 GetCmdSpace<gles2::cmds::DiscardFramebufferEXT>(); | 2195 GetCmdSpace<gles2::cmds::DiscardFramebufferEXT>(); |
2177 if (c) { | 2196 if (c) { |
2178 c->Init(target, count, attachments_shm_id, attachments_shm_offset); | 2197 c->Init(target, count, attachments_shm_id, attachments_shm_offset); |
2179 } | 2198 } |
2180 } | 2199 } |
2181 | 2200 |
2182 void DiscardFramebufferEXTImmediate(GLenum target, | 2201 void DiscardFramebufferEXTImmediate(GLenum target, |
2183 GLsizei count, | 2202 GLsizei count, |
2184 const GLenum* attachments) { | 2203 const GLenum* attachments) { |
2185 const uint32 size = | 2204 const uint32_t size = |
2186 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count); | 2205 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count); |
2187 gles2::cmds::DiscardFramebufferEXTImmediate* c = | 2206 gles2::cmds::DiscardFramebufferEXTImmediate* c = |
2188 GetImmediateCmdSpaceTotalSize< | 2207 GetImmediateCmdSpaceTotalSize< |
2189 gles2::cmds::DiscardFramebufferEXTImmediate>(size); | 2208 gles2::cmds::DiscardFramebufferEXTImmediate>(size); |
2190 if (c) { | 2209 if (c) { |
2191 c->Init(target, count, attachments); | 2210 c->Init(target, count, attachments); |
2192 } | 2211 } |
2193 } | 2212 } |
2194 | 2213 |
2195 void LoseContextCHROMIUM(GLenum current, GLenum other) { | 2214 void LoseContextCHROMIUM(GLenum current, GLenum other) { |
2196 gles2::cmds::LoseContextCHROMIUM* c = | 2215 gles2::cmds::LoseContextCHROMIUM* c = |
2197 GetCmdSpace<gles2::cmds::LoseContextCHROMIUM>(); | 2216 GetCmdSpace<gles2::cmds::LoseContextCHROMIUM>(); |
2198 if (c) { | 2217 if (c) { |
2199 c->Init(current, other); | 2218 c->Init(current, other); |
2200 } | 2219 } |
2201 } | 2220 } |
2202 | 2221 |
2203 void WaitSyncPointCHROMIUM(GLuint sync_point) { | 2222 void WaitSyncPointCHROMIUM(GLuint sync_point) { |
2204 gles2::cmds::WaitSyncPointCHROMIUM* c = | 2223 gles2::cmds::WaitSyncPointCHROMIUM* c = |
2205 GetCmdSpace<gles2::cmds::WaitSyncPointCHROMIUM>(); | 2224 GetCmdSpace<gles2::cmds::WaitSyncPointCHROMIUM>(); |
2206 if (c) { | 2225 if (c) { |
2207 c->Init(sync_point); | 2226 c->Init(sync_point); |
2208 } | 2227 } |
2209 } | 2228 } |
2210 | 2229 |
2211 void DrawBuffersEXT(GLsizei count, uint32 bufs_shm_id, uint32 bufs_shm_offset) { | 2230 void DrawBuffersEXT(GLsizei count, |
| 2231 uint32_t bufs_shm_id, |
| 2232 uint32_t bufs_shm_offset) { |
2212 gles2::cmds::DrawBuffersEXT* c = GetCmdSpace<gles2::cmds::DrawBuffersEXT>(); | 2233 gles2::cmds::DrawBuffersEXT* c = GetCmdSpace<gles2::cmds::DrawBuffersEXT>(); |
2213 if (c) { | 2234 if (c) { |
2214 c->Init(count, bufs_shm_id, bufs_shm_offset); | 2235 c->Init(count, bufs_shm_id, bufs_shm_offset); |
2215 } | 2236 } |
2216 } | 2237 } |
2217 | 2238 |
2218 void DrawBuffersEXTImmediate(GLsizei count, const GLenum* bufs) { | 2239 void DrawBuffersEXTImmediate(GLsizei count, const GLenum* bufs) { |
2219 const uint32 size = gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count); | 2240 const uint32_t size = |
| 2241 gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count); |
2220 gles2::cmds::DrawBuffersEXTImmediate* c = | 2242 gles2::cmds::DrawBuffersEXTImmediate* c = |
2221 GetImmediateCmdSpaceTotalSize<gles2::cmds::DrawBuffersEXTImmediate>(size); | 2243 GetImmediateCmdSpaceTotalSize<gles2::cmds::DrawBuffersEXTImmediate>(size); |
2222 if (c) { | 2244 if (c) { |
2223 c->Init(count, bufs); | 2245 c->Init(count, bufs); |
2224 } | 2246 } |
2225 } | 2247 } |
2226 | 2248 |
2227 void DiscardBackbufferCHROMIUM() { | 2249 void DiscardBackbufferCHROMIUM() { |
2228 gles2::cmds::DiscardBackbufferCHROMIUM* c = | 2250 gles2::cmds::DiscardBackbufferCHROMIUM* c = |
2229 GetCmdSpace<gles2::cmds::DiscardBackbufferCHROMIUM>(); | 2251 GetCmdSpace<gles2::cmds::DiscardBackbufferCHROMIUM>(); |
(...skipping 24 matching lines...) Expand all Loading... |
2254 bounds_width, | 2276 bounds_width, |
2255 bounds_height, | 2277 bounds_height, |
2256 uv_x, | 2278 uv_x, |
2257 uv_y, | 2279 uv_y, |
2258 uv_width, | 2280 uv_width, |
2259 uv_height); | 2281 uv_height); |
2260 } | 2282 } |
2261 } | 2283 } |
2262 | 2284 |
2263 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 2285 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |