| 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 9728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9739 static const CommandId kCmdId = kTraceBeginCHROMIUM; | 9739 static const CommandId kCmdId = kTraceBeginCHROMIUM; |
| 9740 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9740 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9741 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9741 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9742 | 9742 |
| 9743 static uint32_t ComputeSize() { | 9743 static uint32_t ComputeSize() { |
| 9744 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9744 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9745 } | 9745 } |
| 9746 | 9746 |
| 9747 void SetHeader() { header.SetCmd<ValueType>(); } | 9747 void SetHeader() { header.SetCmd<ValueType>(); } |
| 9748 | 9748 |
| 9749 void Init(GLuint _bucket_id) { | 9749 void Init(GLuint _category_bucket_id, GLuint _name_bucket_id) { |
| 9750 SetHeader(); | 9750 SetHeader(); |
| 9751 bucket_id = _bucket_id; | 9751 category_bucket_id = _category_bucket_id; |
| 9752 name_bucket_id = _name_bucket_id; |
| 9752 } | 9753 } |
| 9753 | 9754 |
| 9754 void* Set(void* cmd, GLuint _bucket_id) { | 9755 void* Set(void* cmd, GLuint _category_bucket_id, GLuint _name_bucket_id) { |
| 9755 static_cast<ValueType*>(cmd)->Init(_bucket_id); | 9756 static_cast<ValueType*>(cmd)->Init(_category_bucket_id, _name_bucket_id); |
| 9756 return NextCmdAddress<ValueType>(cmd); | 9757 return NextCmdAddress<ValueType>(cmd); |
| 9757 } | 9758 } |
| 9758 | 9759 |
| 9759 gpu::CommandHeader header; | 9760 gpu::CommandHeader header; |
| 9760 uint32_t bucket_id; | 9761 uint32_t category_bucket_id; |
| 9762 uint32_t name_bucket_id; |
| 9761 }; | 9763 }; |
| 9762 | 9764 |
| 9763 COMPILE_ASSERT(sizeof(TraceBeginCHROMIUM) == 8, | 9765 COMPILE_ASSERT(sizeof(TraceBeginCHROMIUM) == 12, |
| 9764 Sizeof_TraceBeginCHROMIUM_is_not_8); | 9766 Sizeof_TraceBeginCHROMIUM_is_not_12); |
| 9765 COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, header) == 0, | 9767 COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, header) == 0, |
| 9766 OffsetOf_TraceBeginCHROMIUM_header_not_0); | 9768 OffsetOf_TraceBeginCHROMIUM_header_not_0); |
| 9767 COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, bucket_id) == 4, | 9769 COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, category_bucket_id) == 4, |
| 9768 OffsetOf_TraceBeginCHROMIUM_bucket_id_not_4); | 9770 OffsetOf_TraceBeginCHROMIUM_category_bucket_id_not_4); |
| 9771 COMPILE_ASSERT(offsetof(TraceBeginCHROMIUM, name_bucket_id) == 8, |
| 9772 OffsetOf_TraceBeginCHROMIUM_name_bucket_id_not_8); |
| 9769 | 9773 |
| 9770 struct TraceEndCHROMIUM { | 9774 struct TraceEndCHROMIUM { |
| 9771 typedef TraceEndCHROMIUM ValueType; | 9775 typedef TraceEndCHROMIUM ValueType; |
| 9772 static const CommandId kCmdId = kTraceEndCHROMIUM; | 9776 static const CommandId kCmdId = kTraceEndCHROMIUM; |
| 9773 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9777 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9774 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9778 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9775 | 9779 |
| 9776 static uint32_t ComputeSize() { | 9780 static uint32_t ComputeSize() { |
| 9777 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9781 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9778 } | 9782 } |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10444 } | 10448 } |
| 10445 | 10449 |
| 10446 gpu::CommandHeader header; | 10450 gpu::CommandHeader header; |
| 10447 }; | 10451 }; |
| 10448 | 10452 |
| 10449 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); | 10453 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); |
| 10450 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, | 10454 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, |
| 10451 OffsetOf_BlendBarrierKHR_header_not_0); | 10455 OffsetOf_BlendBarrierKHR_header_not_0); |
| 10452 | 10456 |
| 10453 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10457 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |