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 SetSurfaceVisibleCHROMIUM { |
| 9169 typedef SetSurfaceVisibleCHROMIUM ValueType; |
| 9170 static const CommandId kCmdId = kSetSurfaceVisibleCHROMIUM; |
| 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(GLboolean _visible) { |
| 9182 SetHeader(); |
| 9183 visible = _visible; |
| 9184 } |
| 9185 |
| 9186 void* Set(void* cmd, GLboolean _visible) { |
| 9187 static_cast<ValueType*>(cmd)->Init(_visible); |
| 9188 return NextCmdAddress<ValueType>(cmd); |
| 9189 } |
| 9190 |
| 9191 gpu::CommandHeader header; |
| 9192 uint32 visible; |
| 9193 }; |
| 9194 |
| 9195 COMPILE_ASSERT(sizeof(SetSurfaceVisibleCHROMIUM) == 8, |
| 9196 Sizeof_SetSurfaceVisibleCHROMIUM_is_not_8); |
| 9197 COMPILE_ASSERT(offsetof(SetSurfaceVisibleCHROMIUM, header) == 0, |
| 9198 OffsetOf_SetSurfaceVisibleCHROMIUM_header_not_0); |
| 9199 COMPILE_ASSERT(offsetof(SetSurfaceVisibleCHROMIUM, visible) == 4, |
| 9200 OffsetOf_SetSurfaceVisibleCHROMIUM_visible_not_4); |
| 9201 |
9168 | 9202 |
9169 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9203 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
9170 | 9204 |
OLD | NEW |