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 10812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10823 | 10823 |
10824 COMPILE_ASSERT(sizeof(DiscardFramebufferEXTImmediate) == 12, | 10824 COMPILE_ASSERT(sizeof(DiscardFramebufferEXTImmediate) == 12, |
10825 Sizeof_DiscardFramebufferEXTImmediate_is_not_12); | 10825 Sizeof_DiscardFramebufferEXTImmediate_is_not_12); |
10826 COMPILE_ASSERT(offsetof(DiscardFramebufferEXTImmediate, header) == 0, | 10826 COMPILE_ASSERT(offsetof(DiscardFramebufferEXTImmediate, header) == 0, |
10827 OffsetOf_DiscardFramebufferEXTImmediate_header_not_0); | 10827 OffsetOf_DiscardFramebufferEXTImmediate_header_not_0); |
10828 COMPILE_ASSERT(offsetof(DiscardFramebufferEXTImmediate, target) == 4, | 10828 COMPILE_ASSERT(offsetof(DiscardFramebufferEXTImmediate, target) == 4, |
10829 OffsetOf_DiscardFramebufferEXTImmediate_target_not_4); | 10829 OffsetOf_DiscardFramebufferEXTImmediate_target_not_4); |
10830 COMPILE_ASSERT(offsetof(DiscardFramebufferEXTImmediate, count) == 8, | 10830 COMPILE_ASSERT(offsetof(DiscardFramebufferEXTImmediate, count) == 8, |
10831 OffsetOf_DiscardFramebufferEXTImmediate_count_not_8); | 10831 OffsetOf_DiscardFramebufferEXTImmediate_count_not_8); |
10832 | 10832 |
| 10833 struct LoseContextCHROMIUM { |
| 10834 typedef LoseContextCHROMIUM ValueType; |
| 10835 static const CommandId kCmdId = kLoseContextCHROMIUM; |
| 10836 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10837 |
| 10838 static uint32 ComputeSize() { |
| 10839 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 10840 } |
| 10841 |
| 10842 void SetHeader() { |
| 10843 header.SetCmd<ValueType>(); |
| 10844 } |
| 10845 |
| 10846 void Init(GLenum _current, GLenum _other) { |
| 10847 SetHeader(); |
| 10848 current = _current; |
| 10849 other = _other; |
| 10850 } |
| 10851 |
| 10852 void* Set(void* cmd, GLenum _current, GLenum _other) { |
| 10853 static_cast<ValueType*>(cmd)->Init(_current, _other); |
| 10854 return NextCmdAddress<ValueType>(cmd); |
| 10855 } |
| 10856 |
| 10857 gpu::CommandHeader header; |
| 10858 uint32 current; |
| 10859 uint32 other; |
| 10860 }; |
| 10861 |
| 10862 COMPILE_ASSERT(sizeof(LoseContextCHROMIUM) == 12, |
| 10863 Sizeof_LoseContextCHROMIUM_is_not_12); |
| 10864 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, header) == 0, |
| 10865 OffsetOf_LoseContextCHROMIUM_header_not_0); |
| 10866 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, current) == 4, |
| 10867 OffsetOf_LoseContextCHROMIUM_current_not_4); |
| 10868 COMPILE_ASSERT(offsetof(LoseContextCHROMIUM, other) == 8, |
| 10869 OffsetOf_LoseContextCHROMIUM_other_not_8); |
| 10870 |
10833 | 10871 |
10834 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10872 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
10835 | 10873 |
OLD | NEW |