OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
(...skipping 8749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8760 Sizeof_CommandBufferEnableCHROMIUM_is_not_16); | 8760 Sizeof_CommandBufferEnableCHROMIUM_is_not_16); |
8761 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, header) == 0, | 8761 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, header) == 0, |
8762 OffsetOf_CommandBufferEnableCHROMIUM_header_not_0); | 8762 OffsetOf_CommandBufferEnableCHROMIUM_header_not_0); |
8763 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, bucket_id) == 4, | 8763 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, bucket_id) == 4, |
8764 OffsetOf_CommandBufferEnableCHROMIUM_bucket_id_not_4); | 8764 OffsetOf_CommandBufferEnableCHROMIUM_bucket_id_not_4); |
8765 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, result_shm_id) == 8, | 8765 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, result_shm_id) == 8, |
8766 OffsetOf_CommandBufferEnableCHROMIUM_result_shm_id_not_8); | 8766 OffsetOf_CommandBufferEnableCHROMIUM_result_shm_id_not_8); |
8767 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, result_shm_offset) == 12, | 8767 COMPILE_ASSERT(offsetof(CommandBufferEnableCHROMIUM, result_shm_offset) == 12, |
8768 OffsetOf_CommandBufferEnableCHROMIUM_result_shm_offset_not_12); | 8768 OffsetOf_CommandBufferEnableCHROMIUM_result_shm_offset_not_12); |
8769 | 8769 |
8770 struct CopyTextureToParentTextureCHROMIUM { | |
8771 typedef CopyTextureToParentTextureCHROMIUM ValueType; | |
8772 static const CommandId kCmdId = kCopyTextureToParentTextureCHROMIUM; | |
8773 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
8774 | |
8775 static uint32 ComputeSize() { | |
8776 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | |
8777 } | |
8778 | |
8779 void SetHeader() { | |
8780 header.SetCmd<ValueType>(); | |
8781 } | |
8782 | |
8783 void Init(GLuint _client_child_id, GLuint _client_parent_id) { | |
8784 SetHeader(); | |
8785 client_child_id = _client_child_id; | |
8786 client_parent_id = _client_parent_id; | |
8787 } | |
8788 | |
8789 void* Set(void* cmd, GLuint _client_child_id, GLuint _client_parent_id) { | |
8790 static_cast<ValueType*>(cmd)->Init(_client_child_id, _client_parent_id); | |
8791 return NextCmdAddress<ValueType>(cmd); | |
8792 } | |
8793 | |
8794 gpu::CommandHeader header; | |
8795 uint32 client_child_id; | |
8796 uint32 client_parent_id; | |
8797 }; | |
8798 | |
8799 COMPILE_ASSERT(sizeof(CopyTextureToParentTextureCHROMIUM) == 12, | |
8800 Sizeof_CopyTextureToParentTextureCHROMIUM_is_not_12); | |
8801 COMPILE_ASSERT(offsetof(CopyTextureToParentTextureCHROMIUM, header) == 0, | |
8802 OffsetOf_CopyTextureToParentTextureCHROMIUM_header_not_0); | |
8803 COMPILE_ASSERT( | |
8804 offsetof(CopyTextureToParentTextureCHROMIUM, client_child_id) == 4, | |
8805 OffsetOf_CopyTextureToParentTextureCHROMIUM_client_child_id_not_4
); // NOLINT | |
8806 COMPILE_ASSERT( | |
8807 offsetof(CopyTextureToParentTextureCHROMIUM, client_parent_id) == 8, | |
8808 OffsetOf_CopyTextureToParentTextureCHROMIUM_client_parent_id_not_
8); // NOLINT | |
8809 | |
8810 struct ResizeCHROMIUM { | 8770 struct ResizeCHROMIUM { |
8811 typedef ResizeCHROMIUM ValueType; | 8771 typedef ResizeCHROMIUM ValueType; |
8812 static const CommandId kCmdId = kResizeCHROMIUM; | 8772 static const CommandId kCmdId = kResizeCHROMIUM; |
8813 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8773 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
8814 | 8774 |
8815 static uint32 ComputeSize() { | 8775 static uint32 ComputeSize() { |
8816 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 8776 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
8817 } | 8777 } |
8818 | 8778 |
8819 void SetHeader() { | 8779 void SetHeader() { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9052 OffsetOf_GetProgramInfoCHROMIUM_program_not_4); | 9012 OffsetOf_GetProgramInfoCHROMIUM_program_not_4); |
9053 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM, bucket_id) == 8, | 9013 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM, bucket_id) == 8, |
9054 OffsetOf_GetProgramInfoCHROMIUM_bucket_id_not_8); | 9014 OffsetOf_GetProgramInfoCHROMIUM_bucket_id_not_8); |
9055 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, link_status) == 0, | 9015 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, link_status) == 0, |
9056 OffsetOf_GetProgramInfoCHROMIUM_Result_link_status_not_0); | 9016 OffsetOf_GetProgramInfoCHROMIUM_Result_link_status_not_0); |
9057 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, num_attribs) == 4, | 9017 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, num_attribs) == 4, |
9058 OffsetOf_GetProgramInfoCHROMIUM_Result_num_attribs_not_4); | 9018 OffsetOf_GetProgramInfoCHROMIUM_Result_num_attribs_not_4); |
9059 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, num_uniforms) == 8, | 9019 COMPILE_ASSERT(offsetof(GetProgramInfoCHROMIUM::Result, num_uniforms) == 8, |
9060 OffsetOf_GetProgramInfoCHROMIUM_Result_num_uniforms_not_8); | 9020 OffsetOf_GetProgramInfoCHROMIUM_Result_num_uniforms_not_8); |
9061 | 9021 |
| 9022 struct Placeholder447CHROMIUM { |
| 9023 typedef Placeholder447CHROMIUM ValueType; |
| 9024 static const CommandId kCmdId = kPlaceholder447CHROMIUM; |
| 9025 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9026 |
| 9027 static uint32 ComputeSize() { |
| 9028 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 9029 } |
| 9030 |
| 9031 void SetHeader() { |
| 9032 header.SetCmd<ValueType>(); |
| 9033 } |
| 9034 |
| 9035 void Init() { |
| 9036 SetHeader(); |
| 9037 } |
| 9038 |
| 9039 void* Set(void* cmd) { |
| 9040 static_cast<ValueType*>(cmd)->Init(); |
| 9041 return NextCmdAddress<ValueType>(cmd); |
| 9042 } |
| 9043 |
| 9044 gpu::CommandHeader header; |
| 9045 }; |
| 9046 |
| 9047 COMPILE_ASSERT(sizeof(Placeholder447CHROMIUM) == 4, |
| 9048 Sizeof_Placeholder447CHROMIUM_is_not_4); |
| 9049 COMPILE_ASSERT(offsetof(Placeholder447CHROMIUM, header) == 0, |
| 9050 OffsetOf_Placeholder447CHROMIUM_header_not_0); |
| 9051 |
| 9052 struct Placeholder451CHROMIUM { |
| 9053 typedef Placeholder451CHROMIUM ValueType; |
| 9054 static const CommandId kCmdId = kPlaceholder451CHROMIUM; |
| 9055 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9056 |
| 9057 static uint32 ComputeSize() { |
| 9058 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 9059 } |
| 9060 |
| 9061 void SetHeader() { |
| 9062 header.SetCmd<ValueType>(); |
| 9063 } |
| 9064 |
| 9065 void Init() { |
| 9066 SetHeader(); |
| 9067 } |
| 9068 |
| 9069 void* Set(void* cmd) { |
| 9070 static_cast<ValueType*>(cmd)->Init(); |
| 9071 return NextCmdAddress<ValueType>(cmd); |
| 9072 } |
| 9073 |
| 9074 gpu::CommandHeader header; |
| 9075 }; |
| 9076 |
| 9077 COMPILE_ASSERT(sizeof(Placeholder451CHROMIUM) == 4, |
| 9078 Sizeof_Placeholder451CHROMIUM_is_not_4); |
| 9079 COMPILE_ASSERT(offsetof(Placeholder451CHROMIUM, header) == 0, |
| 9080 OffsetOf_Placeholder451CHROMIUM_header_not_0); |
| 9081 |
| 9082 struct Placeholder452CHROMIUM { |
| 9083 typedef Placeholder452CHROMIUM ValueType; |
| 9084 static const CommandId kCmdId = kPlaceholder452CHROMIUM; |
| 9085 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9086 |
| 9087 static uint32 ComputeSize() { |
| 9088 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 9089 } |
| 9090 |
| 9091 void SetHeader() { |
| 9092 header.SetCmd<ValueType>(); |
| 9093 } |
| 9094 |
| 9095 void Init() { |
| 9096 SetHeader(); |
| 9097 } |
| 9098 |
| 9099 void* Set(void* cmd) { |
| 9100 static_cast<ValueType*>(cmd)->Init(); |
| 9101 return NextCmdAddress<ValueType>(cmd); |
| 9102 } |
| 9103 |
| 9104 gpu::CommandHeader header; |
| 9105 }; |
| 9106 |
| 9107 COMPILE_ASSERT(sizeof(Placeholder452CHROMIUM) == 4, |
| 9108 Sizeof_Placeholder452CHROMIUM_is_not_4); |
| 9109 COMPILE_ASSERT(offsetof(Placeholder452CHROMIUM, header) == 0, |
| 9110 OffsetOf_Placeholder452CHROMIUM_header_not_0); |
| 9111 |
9062 | 9112 |
9063 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9113 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
9064 | 9114 |
OLD | NEW |