OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 7412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7423 OffsetOf_GetMaxValueInBufferCHROMIUM_count_not_8); | 7423 OffsetOf_GetMaxValueInBufferCHROMIUM_count_not_8); |
7424 COMPILE_ASSERT(offsetof(GetMaxValueInBufferCHROMIUM, type) == 12, | 7424 COMPILE_ASSERT(offsetof(GetMaxValueInBufferCHROMIUM, type) == 12, |
7425 OffsetOf_GetMaxValueInBufferCHROMIUM_type_not_12); | 7425 OffsetOf_GetMaxValueInBufferCHROMIUM_type_not_12); |
7426 COMPILE_ASSERT(offsetof(GetMaxValueInBufferCHROMIUM, offset) == 16, | 7426 COMPILE_ASSERT(offsetof(GetMaxValueInBufferCHROMIUM, offset) == 16, |
7427 OffsetOf_GetMaxValueInBufferCHROMIUM_offset_not_16); | 7427 OffsetOf_GetMaxValueInBufferCHROMIUM_offset_not_16); |
7428 COMPILE_ASSERT(offsetof(GetMaxValueInBufferCHROMIUM, result_shm_id) == 20, | 7428 COMPILE_ASSERT(offsetof(GetMaxValueInBufferCHROMIUM, result_shm_id) == 20, |
7429 OffsetOf_GetMaxValueInBufferCHROMIUM_result_shm_id_not_20); | 7429 OffsetOf_GetMaxValueInBufferCHROMIUM_result_shm_id_not_20); |
7430 COMPILE_ASSERT(offsetof(GetMaxValueInBufferCHROMIUM, result_shm_offset) == 24, | 7430 COMPILE_ASSERT(offsetof(GetMaxValueInBufferCHROMIUM, result_shm_offset) == 24, |
7431 OffsetOf_GetMaxValueInBufferCHROMIUM_result_shm_offset_not_24); | 7431 OffsetOf_GetMaxValueInBufferCHROMIUM_result_shm_offset_not_24); |
7432 | 7432 |
7433 struct GenSharedIdsCHROMIUM { | |
7434 typedef GenSharedIdsCHROMIUM ValueType; | |
7435 static const CommandId kCmdId = kGenSharedIdsCHROMIUM; | |
7436 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
7437 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | |
7438 | |
7439 static uint32_t ComputeSize() { | |
7440 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
7441 } | |
7442 | |
7443 void SetHeader() { header.SetCmd<ValueType>(); } | |
7444 | |
7445 void Init(GLuint _namespace_id, | |
7446 GLuint _id_offset, | |
7447 GLsizei _n, | |
7448 uint32_t _ids_shm_id, | |
7449 uint32_t _ids_shm_offset) { | |
7450 SetHeader(); | |
7451 namespace_id = _namespace_id; | |
7452 id_offset = _id_offset; | |
7453 n = _n; | |
7454 ids_shm_id = _ids_shm_id; | |
7455 ids_shm_offset = _ids_shm_offset; | |
7456 } | |
7457 | |
7458 void* Set(void* cmd, | |
7459 GLuint _namespace_id, | |
7460 GLuint _id_offset, | |
7461 GLsizei _n, | |
7462 uint32_t _ids_shm_id, | |
7463 uint32_t _ids_shm_offset) { | |
7464 static_cast<ValueType*>(cmd) | |
7465 ->Init(_namespace_id, _id_offset, _n, _ids_shm_id, _ids_shm_offset); | |
7466 return NextCmdAddress<ValueType>(cmd); | |
7467 } | |
7468 | |
7469 gpu::CommandHeader header; | |
7470 uint32_t namespace_id; | |
7471 uint32_t id_offset; | |
7472 int32_t n; | |
7473 uint32_t ids_shm_id; | |
7474 uint32_t ids_shm_offset; | |
7475 }; | |
7476 | |
7477 COMPILE_ASSERT(sizeof(GenSharedIdsCHROMIUM) == 24, | |
7478 Sizeof_GenSharedIdsCHROMIUM_is_not_24); | |
7479 COMPILE_ASSERT(offsetof(GenSharedIdsCHROMIUM, header) == 0, | |
7480 OffsetOf_GenSharedIdsCHROMIUM_header_not_0); | |
7481 COMPILE_ASSERT(offsetof(GenSharedIdsCHROMIUM, namespace_id) == 4, | |
7482 OffsetOf_GenSharedIdsCHROMIUM_namespace_id_not_4); | |
7483 COMPILE_ASSERT(offsetof(GenSharedIdsCHROMIUM, id_offset) == 8, | |
7484 OffsetOf_GenSharedIdsCHROMIUM_id_offset_not_8); | |
7485 COMPILE_ASSERT(offsetof(GenSharedIdsCHROMIUM, n) == 12, | |
7486 OffsetOf_GenSharedIdsCHROMIUM_n_not_12); | |
7487 COMPILE_ASSERT(offsetof(GenSharedIdsCHROMIUM, ids_shm_id) == 16, | |
7488 OffsetOf_GenSharedIdsCHROMIUM_ids_shm_id_not_16); | |
7489 COMPILE_ASSERT(offsetof(GenSharedIdsCHROMIUM, ids_shm_offset) == 20, | |
7490 OffsetOf_GenSharedIdsCHROMIUM_ids_shm_offset_not_20); | |
7491 | |
7492 struct DeleteSharedIdsCHROMIUM { | |
7493 typedef DeleteSharedIdsCHROMIUM ValueType; | |
7494 static const CommandId kCmdId = kDeleteSharedIdsCHROMIUM; | |
7495 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
7496 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | |
7497 | |
7498 static uint32_t ComputeSize() { | |
7499 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
7500 } | |
7501 | |
7502 void SetHeader() { header.SetCmd<ValueType>(); } | |
7503 | |
7504 void Init(GLuint _namespace_id, | |
7505 GLsizei _n, | |
7506 uint32_t _ids_shm_id, | |
7507 uint32_t _ids_shm_offset) { | |
7508 SetHeader(); | |
7509 namespace_id = _namespace_id; | |
7510 n = _n; | |
7511 ids_shm_id = _ids_shm_id; | |
7512 ids_shm_offset = _ids_shm_offset; | |
7513 } | |
7514 | |
7515 void* Set(void* cmd, | |
7516 GLuint _namespace_id, | |
7517 GLsizei _n, | |
7518 uint32_t _ids_shm_id, | |
7519 uint32_t _ids_shm_offset) { | |
7520 static_cast<ValueType*>(cmd) | |
7521 ->Init(_namespace_id, _n, _ids_shm_id, _ids_shm_offset); | |
7522 return NextCmdAddress<ValueType>(cmd); | |
7523 } | |
7524 | |
7525 gpu::CommandHeader header; | |
7526 uint32_t namespace_id; | |
7527 int32_t n; | |
7528 uint32_t ids_shm_id; | |
7529 uint32_t ids_shm_offset; | |
7530 }; | |
7531 | |
7532 COMPILE_ASSERT(sizeof(DeleteSharedIdsCHROMIUM) == 20, | |
7533 Sizeof_DeleteSharedIdsCHROMIUM_is_not_20); | |
7534 COMPILE_ASSERT(offsetof(DeleteSharedIdsCHROMIUM, header) == 0, | |
7535 OffsetOf_DeleteSharedIdsCHROMIUM_header_not_0); | |
7536 COMPILE_ASSERT(offsetof(DeleteSharedIdsCHROMIUM, namespace_id) == 4, | |
7537 OffsetOf_DeleteSharedIdsCHROMIUM_namespace_id_not_4); | |
7538 COMPILE_ASSERT(offsetof(DeleteSharedIdsCHROMIUM, n) == 8, | |
7539 OffsetOf_DeleteSharedIdsCHROMIUM_n_not_8); | |
7540 COMPILE_ASSERT(offsetof(DeleteSharedIdsCHROMIUM, ids_shm_id) == 12, | |
7541 OffsetOf_DeleteSharedIdsCHROMIUM_ids_shm_id_not_12); | |
7542 COMPILE_ASSERT(offsetof(DeleteSharedIdsCHROMIUM, ids_shm_offset) == 16, | |
7543 OffsetOf_DeleteSharedIdsCHROMIUM_ids_shm_offset_not_16); | |
7544 | |
7545 struct RegisterSharedIdsCHROMIUM { | |
7546 typedef RegisterSharedIdsCHROMIUM ValueType; | |
7547 static const CommandId kCmdId = kRegisterSharedIdsCHROMIUM; | |
7548 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
7549 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | |
7550 | |
7551 static uint32_t ComputeSize() { | |
7552 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
7553 } | |
7554 | |
7555 void SetHeader() { header.SetCmd<ValueType>(); } | |
7556 | |
7557 void Init(GLuint _namespace_id, | |
7558 GLsizei _n, | |
7559 uint32_t _ids_shm_id, | |
7560 uint32_t _ids_shm_offset) { | |
7561 SetHeader(); | |
7562 namespace_id = _namespace_id; | |
7563 n = _n; | |
7564 ids_shm_id = _ids_shm_id; | |
7565 ids_shm_offset = _ids_shm_offset; | |
7566 } | |
7567 | |
7568 void* Set(void* cmd, | |
7569 GLuint _namespace_id, | |
7570 GLsizei _n, | |
7571 uint32_t _ids_shm_id, | |
7572 uint32_t _ids_shm_offset) { | |
7573 static_cast<ValueType*>(cmd) | |
7574 ->Init(_namespace_id, _n, _ids_shm_id, _ids_shm_offset); | |
7575 return NextCmdAddress<ValueType>(cmd); | |
7576 } | |
7577 | |
7578 gpu::CommandHeader header; | |
7579 uint32_t namespace_id; | |
7580 int32_t n; | |
7581 uint32_t ids_shm_id; | |
7582 uint32_t ids_shm_offset; | |
7583 }; | |
7584 | |
7585 COMPILE_ASSERT(sizeof(RegisterSharedIdsCHROMIUM) == 20, | |
7586 Sizeof_RegisterSharedIdsCHROMIUM_is_not_20); | |
7587 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, header) == 0, | |
7588 OffsetOf_RegisterSharedIdsCHROMIUM_header_not_0); | |
7589 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, namespace_id) == 4, | |
7590 OffsetOf_RegisterSharedIdsCHROMIUM_namespace_id_not_4); | |
7591 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, n) == 8, | |
7592 OffsetOf_RegisterSharedIdsCHROMIUM_n_not_8); | |
7593 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, ids_shm_id) == 12, | |
7594 OffsetOf_RegisterSharedIdsCHROMIUM_ids_shm_id_not_12); | |
7595 COMPILE_ASSERT(offsetof(RegisterSharedIdsCHROMIUM, ids_shm_offset) == 16, | |
7596 OffsetOf_RegisterSharedIdsCHROMIUM_ids_shm_offset_not_16); | |
7597 | |
7598 struct EnableFeatureCHROMIUM { | 7433 struct EnableFeatureCHROMIUM { |
7599 typedef EnableFeatureCHROMIUM ValueType; | 7434 typedef EnableFeatureCHROMIUM ValueType; |
7600 static const CommandId kCmdId = kEnableFeatureCHROMIUM; | 7435 static const CommandId kCmdId = kEnableFeatureCHROMIUM; |
7601 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7436 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
7602 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7437 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
7603 | 7438 |
7604 typedef GLint Result; | 7439 typedef GLint Result; |
7605 | 7440 |
7606 static uint32_t ComputeSize() { | 7441 static uint32_t ComputeSize() { |
7607 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7442 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9173 }; | 9008 }; |
9174 | 9009 |
9175 COMPILE_ASSERT(sizeof(MatrixLoadIdentityCHROMIUM) == 8, | 9010 COMPILE_ASSERT(sizeof(MatrixLoadIdentityCHROMIUM) == 8, |
9176 Sizeof_MatrixLoadIdentityCHROMIUM_is_not_8); | 9011 Sizeof_MatrixLoadIdentityCHROMIUM_is_not_8); |
9177 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, | 9012 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, |
9178 OffsetOf_MatrixLoadIdentityCHROMIUM_header_not_0); | 9013 OffsetOf_MatrixLoadIdentityCHROMIUM_header_not_0); |
9179 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, | 9014 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, |
9180 OffsetOf_MatrixLoadIdentityCHROMIUM_matrixMode_not_4); | 9015 OffsetOf_MatrixLoadIdentityCHROMIUM_matrixMode_not_4); |
9181 | 9016 |
9182 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9017 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |