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 9147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9158 | 9158 |
9159 COMPILE_ASSERT(sizeof(GetTranslatedShaderSourceANGLE) == 12, | 9159 COMPILE_ASSERT(sizeof(GetTranslatedShaderSourceANGLE) == 12, |
9160 Sizeof_GetTranslatedShaderSourceANGLE_is_not_12); | 9160 Sizeof_GetTranslatedShaderSourceANGLE_is_not_12); |
9161 COMPILE_ASSERT(offsetof(GetTranslatedShaderSourceANGLE, header) == 0, | 9161 COMPILE_ASSERT(offsetof(GetTranslatedShaderSourceANGLE, header) == 0, |
9162 OffsetOf_GetTranslatedShaderSourceANGLE_header_not_0); | 9162 OffsetOf_GetTranslatedShaderSourceANGLE_header_not_0); |
9163 COMPILE_ASSERT(offsetof(GetTranslatedShaderSourceANGLE, shader) == 4, | 9163 COMPILE_ASSERT(offsetof(GetTranslatedShaderSourceANGLE, shader) == 4, |
9164 OffsetOf_GetTranslatedShaderSourceANGLE_shader_not_4); | 9164 OffsetOf_GetTranslatedShaderSourceANGLE_shader_not_4); |
9165 COMPILE_ASSERT(offsetof(GetTranslatedShaderSourceANGLE, bucket_id) == 8, | 9165 COMPILE_ASSERT(offsetof(GetTranslatedShaderSourceANGLE, bucket_id) == 8, |
9166 OffsetOf_GetTranslatedShaderSourceANGLE_bucket_id_not_8); | 9166 OffsetOf_GetTranslatedShaderSourceANGLE_bucket_id_not_8); |
9167 | 9167 |
| 9168 struct PostSubBufferCHROMIUM { |
| 9169 typedef PostSubBufferCHROMIUM ValueType; |
| 9170 static const CommandId kCmdId = kPostSubBufferCHROMIUM; |
| 9171 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9172 |
| 9173 static uint32 ComputeSize() { |
| 9174 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 9175 } |
| 9176 |
| 9177 void SetHeader() { |
| 9178 header.SetCmd<ValueType>(); |
| 9179 } |
| 9180 |
| 9181 void Init(GLint _x, GLint _y, GLint _width, GLint _height) { |
| 9182 SetHeader(); |
| 9183 x = _x; |
| 9184 y = _y; |
| 9185 width = _width; |
| 9186 height = _height; |
| 9187 } |
| 9188 |
| 9189 void* Set(void* cmd, GLint _x, GLint _y, GLint _width, GLint _height) { |
| 9190 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height); |
| 9191 return NextCmdAddress<ValueType>(cmd); |
| 9192 } |
| 9193 |
| 9194 gpu::CommandHeader header; |
| 9195 int32 x; |
| 9196 int32 y; |
| 9197 int32 width; |
| 9198 int32 height; |
| 9199 }; |
| 9200 |
| 9201 COMPILE_ASSERT(sizeof(PostSubBufferCHROMIUM) == 20, |
| 9202 Sizeof_PostSubBufferCHROMIUM_is_not_20); |
| 9203 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, header) == 0, |
| 9204 OffsetOf_PostSubBufferCHROMIUM_header_not_0); |
| 9205 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, x) == 4, |
| 9206 OffsetOf_PostSubBufferCHROMIUM_x_not_4); |
| 9207 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, y) == 8, |
| 9208 OffsetOf_PostSubBufferCHROMIUM_y_not_8); |
| 9209 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, width) == 12, |
| 9210 OffsetOf_PostSubBufferCHROMIUM_width_not_12); |
| 9211 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, height) == 16, |
| 9212 OffsetOf_PostSubBufferCHROMIUM_height_not_16); |
| 9213 |
9168 | 9214 |
9169 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9215 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
9170 | 9216 |
OLD | NEW |