| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 9062 | 9022 |
| 9063 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9023 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| 9064 | 9024 |
| OLD | NEW |