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

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

Issue 863253002: Update from https://crrev.com/312600 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 420
421 void DeleteSamplersImmediate(GLsizei n, const GLuint* samplers) { 421 void DeleteSamplersImmediate(GLsizei n, const GLuint* samplers) {
422 const uint32_t size = gles2::cmds::DeleteSamplersImmediate::ComputeSize(n); 422 const uint32_t size = gles2::cmds::DeleteSamplersImmediate::ComputeSize(n);
423 gles2::cmds::DeleteSamplersImmediate* c = 423 gles2::cmds::DeleteSamplersImmediate* c =
424 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteSamplersImmediate>(size); 424 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteSamplersImmediate>(size);
425 if (c) { 425 if (c) {
426 c->Init(n, samplers); 426 c->Init(n, samplers);
427 } 427 }
428 } 428 }
429 429
430 void DeleteSync(GLuint sync) {
431 gles2::cmds::DeleteSync* c = GetCmdSpace<gles2::cmds::DeleteSync>();
432 if (c) {
433 c->Init(sync);
434 }
435 }
436
430 void DeleteShader(GLuint shader) { 437 void DeleteShader(GLuint shader) {
431 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>(); 438 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>();
432 if (c) { 439 if (c) {
433 c->Init(shader); 440 c->Init(shader);
434 } 441 }
435 } 442 }
436 443
437 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) { 444 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) {
438 const uint32_t size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n); 445 const uint32_t size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n);
439 gles2::cmds::DeleteTexturesImmediate* c = 446 gles2::cmds::DeleteTexturesImmediate* c =
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 } 529 }
523 530
524 void EnableVertexAttribArray(GLuint index) { 531 void EnableVertexAttribArray(GLuint index) {
525 gles2::cmds::EnableVertexAttribArray* c = 532 gles2::cmds::EnableVertexAttribArray* c =
526 GetCmdSpace<gles2::cmds::EnableVertexAttribArray>(); 533 GetCmdSpace<gles2::cmds::EnableVertexAttribArray>();
527 if (c) { 534 if (c) {
528 c->Init(index); 535 c->Init(index);
529 } 536 }
530 } 537 }
531 538
539 void FenceSync(uint32_t client_id) {
540 gles2::cmds::FenceSync* c = GetCmdSpace<gles2::cmds::FenceSync>();
541 if (c) {
542 c->Init(client_id);
543 }
544 }
545
532 void Finish() { 546 void Finish() {
533 gles2::cmds::Finish* c = GetCmdSpace<gles2::cmds::Finish>(); 547 gles2::cmds::Finish* c = GetCmdSpace<gles2::cmds::Finish>();
534 if (c) { 548 if (c) {
535 c->Init(); 549 c->Init();
536 } 550 }
537 } 551 }
538 552
539 void Flush() { 553 void Flush() {
540 gles2::cmds::Flush* c = GetCmdSpace<gles2::cmds::Flush>(); 554 gles2::cmds::Flush* c = GetCmdSpace<gles2::cmds::Flush>();
541 if (c) { 555 if (c) {
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 1049
1036 void IsShader(GLuint shader, 1050 void IsShader(GLuint shader,
1037 uint32_t result_shm_id, 1051 uint32_t result_shm_id,
1038 uint32_t result_shm_offset) { 1052 uint32_t result_shm_offset) {
1039 gles2::cmds::IsShader* c = GetCmdSpace<gles2::cmds::IsShader>(); 1053 gles2::cmds::IsShader* c = GetCmdSpace<gles2::cmds::IsShader>();
1040 if (c) { 1054 if (c) {
1041 c->Init(shader, result_shm_id, result_shm_offset); 1055 c->Init(shader, result_shm_id, result_shm_offset);
1042 } 1056 }
1043 } 1057 }
1044 1058
1059 void IsSync(GLuint sync, uint32_t result_shm_id, uint32_t result_shm_offset) {
1060 gles2::cmds::IsSync* c = GetCmdSpace<gles2::cmds::IsSync>();
1061 if (c) {
1062 c->Init(sync, result_shm_id, result_shm_offset);
1063 }
1064 }
1065
1045 void IsTexture(GLuint texture, 1066 void IsTexture(GLuint texture,
1046 uint32_t result_shm_id, 1067 uint32_t result_shm_id,
1047 uint32_t result_shm_offset) { 1068 uint32_t result_shm_offset) {
1048 gles2::cmds::IsTexture* c = GetCmdSpace<gles2::cmds::IsTexture>(); 1069 gles2::cmds::IsTexture* c = GetCmdSpace<gles2::cmds::IsTexture>();
1049 if (c) { 1070 if (c) {
1050 c->Init(texture, result_shm_id, result_shm_offset); 1071 c->Init(texture, result_shm_id, result_shm_offset);
1051 } 1072 }
1052 } 1073 }
1053 1074
1054 void IsTransformFeedback(GLuint transformfeedback, 1075 void IsTransformFeedback(GLuint transformfeedback,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 uint32_t binary_shm_id, 1231 uint32_t binary_shm_id,
1211 uint32_t binary_shm_offset, 1232 uint32_t binary_shm_offset,
1212 GLsizei length) { 1233 GLsizei length) {
1213 gles2::cmds::ShaderBinary* c = GetCmdSpace<gles2::cmds::ShaderBinary>(); 1234 gles2::cmds::ShaderBinary* c = GetCmdSpace<gles2::cmds::ShaderBinary>();
1214 if (c) { 1235 if (c) {
1215 c->Init(n, shaders_shm_id, shaders_shm_offset, binaryformat, binary_shm_id, 1236 c->Init(n, shaders_shm_id, shaders_shm_offset, binaryformat, binary_shm_id,
1216 binary_shm_offset, length); 1237 binary_shm_offset, length);
1217 } 1238 }
1218 } 1239 }
1219 1240
1220 void ShaderSourceBucket(GLuint shader, uint32_t data_bucket_id) { 1241 void ShaderSourceBucket(GLuint shader, uint32_t str_bucket_id) {
1221 gles2::cmds::ShaderSourceBucket* c = 1242 gles2::cmds::ShaderSourceBucket* c =
1222 GetCmdSpace<gles2::cmds::ShaderSourceBucket>(); 1243 GetCmdSpace<gles2::cmds::ShaderSourceBucket>();
1223 if (c) { 1244 if (c) {
1224 c->Init(shader, data_bucket_id); 1245 c->Init(shader, str_bucket_id);
1225 } 1246 }
1226 } 1247 }
1227 1248
1228 void StencilFunc(GLenum func, GLint ref, GLuint mask) { 1249 void StencilFunc(GLenum func, GLint ref, GLuint mask) {
1229 gles2::cmds::StencilFunc* c = GetCmdSpace<gles2::cmds::StencilFunc>(); 1250 gles2::cmds::StencilFunc* c = GetCmdSpace<gles2::cmds::StencilFunc>();
1230 if (c) { 1251 if (c) {
1231 c->Init(func, ref, mask); 1252 c->Init(func, ref, mask);
1232 } 1253 }
1233 } 1254 }
1234 1255
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 } 2477 }
2457 2478
2458 void BlendBarrierKHR() { 2479 void BlendBarrierKHR() {
2459 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); 2480 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>();
2460 if (c) { 2481 if (c) {
2461 c->Init(); 2482 c->Init();
2462 } 2483 }
2463 } 2484 }
2464 2485
2465 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 2486 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698