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 10850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10861 | 10861 |
10862 COMPILE_ASSERT(sizeof(LoseContextCHROMIUM) == 12, | 10862 COMPILE_ASSERT(sizeof(LoseContextCHROMIUM) == 12, |
10863 Sizeof_LoseContextCHROMIUM_is_not_12); | 10863 Sizeof_LoseContextCHROMIUM_is_not_12); |
10864 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, header) == 0, | 10864 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, header) == 0, |
10865 OffsetOf_LoseContextCHROMIUM_header_not_0); | 10865 OffsetOf_LoseContextCHROMIUM_header_not_0); |
10866 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, current) == 4, | 10866 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, current) == 4, |
10867 OffsetOf_LoseContextCHROMIUM_current_not_4); | 10867 OffsetOf_LoseContextCHROMIUM_current_not_4); |
10868 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, other) == 8, | 10868 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, other) == 8, |
10869 OffsetOf_LoseContextCHROMIUM_other_not_8); | 10869 OffsetOf_LoseContextCHROMIUM_other_not_8); |
10870 | 10870 |
| 10871 struct WaitSyncPointCHROMIUM { |
| 10872 typedef WaitSyncPointCHROMIUM ValueType; |
| 10873 static const CommandId kCmdId = kWaitSyncPointCHROMIUM; |
| 10874 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10875 |
| 10876 static uint32 ComputeSize() { |
| 10877 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 10878 } |
| 10879 |
| 10880 void SetHeader() { |
| 10881 header.SetCmd<ValueType>(); |
| 10882 } |
| 10883 |
| 10884 void Init(GLuint _sync_point) { |
| 10885 SetHeader(); |
| 10886 sync_point = _sync_point; |
| 10887 } |
| 10888 |
| 10889 void* Set(void* cmd, GLuint _sync_point) { |
| 10890 static_cast<ValueType*>(cmd)->Init(_sync_point); |
| 10891 return NextCmdAddress<ValueType>(cmd); |
| 10892 } |
| 10893 |
| 10894 gpu::CommandHeader header; |
| 10895 uint32 sync_point; |
| 10896 }; |
| 10897 |
| 10898 COMPILE_ASSERT(sizeof(WaitSyncPointCHROMIUM) == 8, |
| 10899 Sizeof_WaitSyncPointCHROMIUM_is_not_8); |
| 10900 COMPILE_ASSERT(offsetof(WaitSyncPointCHROMIUM, header) == 0, |
| 10901 OffsetOf_WaitSyncPointCHROMIUM_header_not_0); |
| 10902 COMPILE_ASSERT(offsetof(WaitSyncPointCHROMIUM, sync_point) == 4, |
| 10903 OffsetOf_WaitSyncPointCHROMIUM_sync_point_not_4); |
| 10904 |
10871 | 10905 |
10872 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10906 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
10873 | 10907 |
OLD | NEW |