OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 11005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11016 int32 count; | 11016 int32 count; |
11017 }; | 11017 }; |
11018 | 11018 |
11019 COMPILE_ASSERT(sizeof(DrawBuffersEXTImmediate) == 8, | 11019 COMPILE_ASSERT(sizeof(DrawBuffersEXTImmediate) == 8, |
11020 Sizeof_DrawBuffersEXTImmediate_is_not_8); | 11020 Sizeof_DrawBuffersEXTImmediate_is_not_8); |
11021 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, header) == 0, | 11021 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, header) == 0, |
11022 OffsetOf_DrawBuffersEXTImmediate_header_not_0); | 11022 OffsetOf_DrawBuffersEXTImmediate_header_not_0); |
11023 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, count) == 4, | 11023 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, count) == 4, |
11024 OffsetOf_DrawBuffersEXTImmediate_count_not_4); | 11024 OffsetOf_DrawBuffersEXTImmediate_count_not_4); |
11025 | 11025 |
| 11026 struct EncodeBackbufferCHROMIUM { |
| 11027 typedef EncodeBackbufferCHROMIUM ValueType; |
| 11028 static const CommandId kCmdId = kEncodeBackbufferCHROMIUM; |
| 11029 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11030 |
| 11031 static uint32 ComputeSize() { |
| 11032 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 11033 } |
| 11034 |
| 11035 void SetHeader() { |
| 11036 header.SetCmd<ValueType>(); |
| 11037 } |
| 11038 |
| 11039 void Init() { |
| 11040 SetHeader(); |
| 11041 } |
| 11042 |
| 11043 void* Set(void* cmd) { |
| 11044 static_cast<ValueType*>(cmd)->Init(); |
| 11045 return NextCmdAddress<ValueType>(cmd); |
| 11046 } |
| 11047 |
| 11048 gpu::CommandHeader header; |
| 11049 }; |
| 11050 |
| 11051 COMPILE_ASSERT(sizeof(EncodeBackbufferCHROMIUM) == 4, |
| 11052 Sizeof_EncodeBackbufferCHROMIUM_is_not_4); |
| 11053 COMPILE_ASSERT(offsetof(EncodeBackbufferCHROMIUM, header) == 0, |
| 11054 OffsetOf_EncodeBackbufferCHROMIUM_header_not_0); |
| 11055 |
11026 | 11056 |
11027 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 11057 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
11028 | 11058 |
OLD | NEW |