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 15634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15645 "offset of SwapBuffersWithDamageCHROMIUM header should be 0"); | 15645 "offset of SwapBuffersWithDamageCHROMIUM header should be 0"); |
15646 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, | 15646 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, |
15647 "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); | 15647 "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); |
15648 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, | 15648 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, |
15649 "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); | 15649 "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); |
15650 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, | 15650 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, |
15651 "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); | 15651 "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); |
15652 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, | 15652 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, |
15653 "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); | 15653 "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); |
15654 | 15654 |
| 15655 struct SetSurfaceHandleCHROMIUM { |
| 15656 typedef SetSurfaceHandleCHROMIUM ValueType; |
| 15657 static const CommandId kCmdId = kSetSurfaceHandleCHROMIUM; |
| 15658 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15659 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15660 |
| 15661 static uint32_t ComputeSize() { |
| 15662 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15663 } |
| 15664 |
| 15665 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15666 |
| 15667 void Init(GLint _surfaceHandle) { |
| 15668 SetHeader(); |
| 15669 surfaceHandle = _surfaceHandle; |
| 15670 } |
| 15671 |
| 15672 void* Set(void* cmd, GLint _surfaceHandle) { |
| 15673 static_cast<ValueType*>(cmd)->Init(_surfaceHandle); |
| 15674 return NextCmdAddress<ValueType>(cmd); |
| 15675 } |
| 15676 |
| 15677 gpu::CommandHeader header; |
| 15678 int32_t surfaceHandle; |
| 15679 }; |
| 15680 |
| 15681 static_assert(sizeof(SetSurfaceHandleCHROMIUM) == 8, |
| 15682 "size of SetSurfaceHandleCHROMIUM should be 8"); |
| 15683 static_assert(offsetof(SetSurfaceHandleCHROMIUM, header) == 0, |
| 15684 "offset of SetSurfaceHandleCHROMIUM header should be 0"); |
| 15685 static_assert(offsetof(SetSurfaceHandleCHROMIUM, surfaceHandle) == 4, |
| 15686 "offset of SetSurfaceHandleCHROMIUM surfaceHandle should be 4"); |
| 15687 |
15655 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15688 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |