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 9572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9583 static const CommandId kCmdId = kTraceBeginCHROMIUM; | 9583 static const CommandId kCmdId = kTraceBeginCHROMIUM; |
9584 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9584 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
9585 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9585 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
9586 | 9586 |
9587 static uint32_t ComputeSize() { | 9587 static uint32_t ComputeSize() { |
9588 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9588 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
9589 } | 9589 } |
9590 | 9590 |
9591 void SetHeader() { header.SetCmd<ValueType>(); } | 9591 void SetHeader() { header.SetCmd<ValueType>(); } |
9592 | 9592 |
9593 void Init(GLuint _bucket_id) { | 9593 void Init(GLuint _category_bucket_id, GLuint _name_bucket_id) { |
9594 SetHeader(); | 9594 SetHeader(); |
9595 bucket_id = _bucket_id; | 9595 category_bucket_id = _category_bucket_id; |
| 9596 name_bucket_id = _name_bucket_id; |
9596 } | 9597 } |
9597 | 9598 |
9598 void* Set(void* cmd, GLuint _bucket_id) { | 9599 void* Set(void* cmd, GLuint _category_bucket_id, GLuint _name_bucket_id) { |
9599 static_cast<ValueType*>(cmd)->Init(_bucket_id); | 9600 static_cast<ValueType*>(cmd)->Init(_category_bucket_id, _name_bucket_id); |
9600 return NextCmdAddress<ValueType>(cmd); | 9601 return NextCmdAddress<ValueType>(cmd); |
9601 } | 9602 } |
9602 | 9603 |
9603 gpu::CommandHeader header; | 9604 gpu::CommandHeader header; |
9604 uint32_t bucket_id; | 9605 uint32_t category_bucket_id; |
| 9606 uint32_t name_bucket_id; |
9605 }; | 9607 }; |
9606 | 9608 |
9607 COMPILE_ASSERT(sizeof(TraceBeginCHROMIUM) == 8, | 9609 COMPILE_ASSERT(sizeof(TraceBeginCHROMIUM) == 12, |
9608 Sizeof_TraceBeginCHROMIUM_is_not_8); | 9610 Sizeof_TraceBeginCHROMIUM_is_not_12); |
9609 COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, header) == 0, | 9611 COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, header) == 0, |
9610 OffsetOf_TraceBeginCHROMIUM_header_not_0); | 9612 OffsetOf_TraceBeginCHROMIUM_header_not_0); |
9611 COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, bucket_id) == 4, | 9613 COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, category_bucket_id) == 4, |
9612 OffsetOf_TraceBeginCHROMIUM_bucket_id_not_4); | 9614 OffsetOf_TraceBeginCHROMIUM_category_bucket_id_not_4); |
| 9615 COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, name_bucket_id) == 8, |
| 9616 OffsetOf_TraceBeginCHROMIUM_name_bucket_id_not_8); |
9613 | 9617 |
9614 struct TraceEndCHROMIUM { | 9618 struct TraceEndCHROMIUM { |
9615 typedef TraceEndCHROMIUM ValueType; | 9619 typedef TraceEndCHROMIUM ValueType; |
9616 static const CommandId kCmdId = kTraceEndCHROMIUM; | 9620 static const CommandId kCmdId = kTraceEndCHROMIUM; |
9617 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9621 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
9618 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9622 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
9619 | 9623 |
9620 static uint32_t ComputeSize() { | 9624 static uint32_t ComputeSize() { |
9621 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9625 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
9622 } | 9626 } |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10288 } | 10292 } |
10289 | 10293 |
10290 gpu::CommandHeader header; | 10294 gpu::CommandHeader header; |
10291 }; | 10295 }; |
10292 | 10296 |
10293 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); | 10297 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); |
10294 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, | 10298 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, |
10295 OffsetOf_BlendBarrierKHR_header_not_0); | 10299 OffsetOf_BlendBarrierKHR_header_not_0); |
10296 | 10300 |
10297 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10301 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |