OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
9 | 9 |
10 struct ActiveTexture { | 10 struct ActiveTexture { |
(...skipping 8815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8826 | 8826 |
8827 COMPILE_ASSERT(sizeof(ResizeCHROMIUM) == 12, | 8827 COMPILE_ASSERT(sizeof(ResizeCHROMIUM) == 12, |
8828 Sizeof_ResizeCHROMIUM_is_not_12); | 8828 Sizeof_ResizeCHROMIUM_is_not_12); |
8829 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, header) == 0, | 8829 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, header) == 0, |
8830 OffsetOf_ResizeCHROMIUM_header_not_0); | 8830 OffsetOf_ResizeCHROMIUM_header_not_0); |
8831 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, width) == 4, | 8831 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, width) == 4, |
8832 OffsetOf_ResizeCHROMIUM_width_not_4); | 8832 OffsetOf_ResizeCHROMIUM_width_not_4); |
8833 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, height) == 8, | 8833 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, height) == 8, |
8834 OffsetOf_ResizeCHROMIUM_height_not_8); | 8834 OffsetOf_ResizeCHROMIUM_height_not_8); |
8835 | 8835 |
| 8836 struct GetRequestableExtensionsCHROMIUM { |
| 8837 typedef GetRequestableExtensionsCHROMIUM ValueType; |
| 8838 static const CommandId kCmdId = kGetRequestableExtensionsCHROMIUM; |
| 8839 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8840 |
| 8841 static uint32 ComputeSize() { |
| 8842 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 8843 } |
| 8844 |
| 8845 void SetHeader() { |
| 8846 header.SetCmd<ValueType>(); |
| 8847 } |
| 8848 |
| 8849 void Init(uint32 _bucket_id) { |
| 8850 SetHeader(); |
| 8851 bucket_id = _bucket_id; |
| 8852 } |
| 8853 |
| 8854 void* Set(void* cmd, uint32 _bucket_id) { |
| 8855 static_cast<ValueType*>(cmd)->Init(_bucket_id); |
| 8856 return NextCmdAddress<ValueType>(cmd); |
| 8857 } |
| 8858 |
| 8859 gpu::CommandHeader header; |
| 8860 uint32 bucket_id; |
| 8861 }; |
| 8862 |
| 8863 COMPILE_ASSERT(sizeof(GetRequestableExtensionsCHROMIUM) == 8, |
| 8864 Sizeof_GetRequestableExtensionsCHROMIUM_is_not_8); |
| 8865 COMPILE_ASSERT(offsetof(GetRequestableExtensionsCHROMIUM, header) == 0, |
| 8866 OffsetOf_GetRequestableExtensionsCHROMIUM_header_not_0); |
| 8867 COMPILE_ASSERT(offsetof(GetRequestableExtensionsCHROMIUM, bucket_id) == 4, |
| 8868 OffsetOf_GetRequestableExtensionsCHROMIUM_bucket_id_not_4); |
| 8869 |
| 8870 struct RequestExtensionCHROMIUM { |
| 8871 typedef RequestExtensionCHROMIUM ValueType; |
| 8872 static const CommandId kCmdId = kRequestExtensionCHROMIUM; |
| 8873 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8874 |
| 8875 static uint32 ComputeSize() { |
| 8876 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 8877 } |
| 8878 |
| 8879 void SetHeader() { |
| 8880 header.SetCmd<ValueType>(); |
| 8881 } |
| 8882 |
| 8883 void Init(uint32 _bucket_id) { |
| 8884 SetHeader(); |
| 8885 bucket_id = _bucket_id; |
| 8886 } |
| 8887 |
| 8888 void* Set(void* cmd, uint32 _bucket_id) { |
| 8889 static_cast<ValueType*>(cmd)->Init(_bucket_id); |
| 8890 return NextCmdAddress<ValueType>(cmd); |
| 8891 } |
| 8892 |
| 8893 gpu::CommandHeader header; |
| 8894 uint32 bucket_id; |
| 8895 }; |
| 8896 |
| 8897 COMPILE_ASSERT(sizeof(RequestExtensionCHROMIUM) == 8, |
| 8898 Sizeof_RequestExtensionCHROMIUM_is_not_8); |
| 8899 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, header) == 0, |
| 8900 OffsetOf_RequestExtensionCHROMIUM_header_not_0); |
| 8901 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, bucket_id) == 4, |
| 8902 OffsetOf_RequestExtensionCHROMIUM_bucket_id_not_4); |
| 8903 |
8836 | 8904 |
8837 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 8905 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
8838 | 8906 |
OLD | NEW |