OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 15580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15591 "offset of SwapBuffersWithDamageCHROMIUM header should be 0"); | 15591 "offset of SwapBuffersWithDamageCHROMIUM header should be 0"); |
15592 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, | 15592 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, |
15593 "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); | 15593 "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); |
15594 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, | 15594 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, |
15595 "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); | 15595 "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); |
15596 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, | 15596 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, |
15597 "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); | 15597 "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); |
15598 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, | 15598 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, |
15599 "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); | 15599 "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); |
15600 | 15600 |
| 15601 struct SetSurfaceHandleCHROMIUM { |
| 15602 typedef SetSurfaceHandleCHROMIUM ValueType; |
| 15603 static const CommandId kCmdId = kSetSurfaceHandleCHROMIUM; |
| 15604 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15605 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15606 |
| 15607 static uint32_t ComputeSize() { |
| 15608 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15609 } |
| 15610 |
| 15611 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15612 |
| 15613 void Init(GLint _surfaceHandle) { |
| 15614 SetHeader(); |
| 15615 surfaceHandle = _surfaceHandle; |
| 15616 } |
| 15617 |
| 15618 void* Set(void* cmd, GLint _surfaceHandle) { |
| 15619 static_cast<ValueType*>(cmd)->Init(_surfaceHandle); |
| 15620 return NextCmdAddress<ValueType>(cmd); |
| 15621 } |
| 15622 |
| 15623 gpu::CommandHeader header; |
| 15624 int32_t surfaceHandle; |
| 15625 }; |
| 15626 |
| 15627 static_assert(sizeof(SetSurfaceHandleCHROMIUM) == 8, |
| 15628 "size of SetSurfaceHandleCHROMIUM should be 8"); |
| 15629 static_assert(offsetof(SetSurfaceHandleCHROMIUM, header) == 0, |
| 15630 "offset of SetSurfaceHandleCHROMIUM header should be 0"); |
| 15631 static_assert(offsetof(SetSurfaceHandleCHROMIUM, surfaceHandle) == 4, |
| 15632 "offset of SetSurfaceHandleCHROMIUM surfaceHandle should be 4"); |
| 15633 |
15601 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15634 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |