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 9087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9098 } | 9098 } |
9099 | 9099 |
9100 gpu::CommandHeader header; | 9100 gpu::CommandHeader header; |
9101 }; | 9101 }; |
9102 | 9102 |
9103 COMPILE_ASSERT(sizeof(Placeholder453CHROMIUM) == 4, | 9103 COMPILE_ASSERT(sizeof(Placeholder453CHROMIUM) == 4, |
9104 Sizeof_Placeholder453CHROMIUM_is_not_4); | 9104 Sizeof_Placeholder453CHROMIUM_is_not_4); |
9105 COMPILE_ASSERT(offsetof(Placeholder453CHROMIUM, header) == 0, | 9105 COMPILE_ASSERT(offsetof(Placeholder453CHROMIUM, header) == 0, |
9106 OffsetOf_Placeholder453CHROMIUM_header_not_0); | 9106 OffsetOf_Placeholder453CHROMIUM_header_not_0); |
9107 | 9107 |
| 9108 struct SetSurfaceVisibleCHROMIUM { |
| 9109 typedef SetSurfaceVisibleCHROMIUM ValueType; |
| 9110 static const CommandId kCmdId = kSetSurfaceVisibleCHROMIUM; |
| 9111 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9112 |
| 9113 static uint32 ComputeSize() { |
| 9114 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 9115 } |
| 9116 |
| 9117 void SetHeader() { |
| 9118 header.SetCmd<ValueType>(); |
| 9119 } |
| 9120 |
| 9121 void Init(GLboolean _visible) { |
| 9122 SetHeader(); |
| 9123 visible = _visible; |
| 9124 } |
| 9125 |
| 9126 void* Set(void* cmd, GLboolean _visible) { |
| 9127 static_cast<ValueType*>(cmd)->Init(_visible); |
| 9128 return NextCmdAddress<ValueType>(cmd); |
| 9129 } |
| 9130 |
| 9131 gpu::CommandHeader header; |
| 9132 uint32 visible; |
| 9133 }; |
| 9134 |
| 9135 COMPILE_ASSERT(sizeof(SetSurfaceVisibleCHROMIUM) == 8, |
| 9136 Sizeof_SetSurfaceVisibleCHROMIUM_is_not_8); |
| 9137 COMPILE_ASSERT(offsetof(SetSurfaceVisibleCHROMIUM, header) == 0, |
| 9138 OffsetOf_SetSurfaceVisibleCHROMIUM_header_not_0); |
| 9139 COMPILE_ASSERT(offsetof(SetSurfaceVisibleCHROMIUM, visible) == 4, |
| 9140 OffsetOf_SetSurfaceVisibleCHROMIUM_visible_not_4); |
| 9141 |
9108 | 9142 |
9109 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9143 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
9110 | 9144 |
OLD | NEW |