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 10063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10074 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, header) == 0, | 10074 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, header) == 0, |
10075 OffsetOf_BindUniformLocationCHROMIUMBucket_header_not_0); | 10075 OffsetOf_BindUniformLocationCHROMIUMBucket_header_not_0); |
10076 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, program) == 4, | 10076 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, program) == 4, |
10077 OffsetOf_BindUniformLocationCHROMIUMBucket_program_not_4); | 10077 OffsetOf_BindUniformLocationCHROMIUMBucket_program_not_4); |
10078 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, location) == 8, | 10078 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, location) == 8, |
10079 OffsetOf_BindUniformLocationCHROMIUMBucket_location_not_8); | 10079 OffsetOf_BindUniformLocationCHROMIUMBucket_location_not_8); |
10080 COMPILE_ASSERT( | 10080 COMPILE_ASSERT( |
10081 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, | 10081 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, |
10082 OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12)
; // NOLINT | 10082 OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12)
; // NOLINT |
10083 | 10083 |
| 10084 struct TexImagePixmap2DCHROMIUM { |
| 10085 typedef TexImagePixmap2DCHROMIUM ValueType; |
| 10086 static const CommandId kCmdId = kTexImagePixmap2DCHROMIUM; |
| 10087 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10088 |
| 10089 static uint32 ComputeSize() { |
| 10090 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 10091 } |
| 10092 |
| 10093 void SetHeader() { |
| 10094 header.SetCmd<ValueType>(); |
| 10095 } |
| 10096 |
| 10097 void Init(GLenum _target, GLuint _pixmapId) { |
| 10098 SetHeader(); |
| 10099 target = _target; |
| 10100 pixmapId = _pixmapId; |
| 10101 } |
| 10102 |
| 10103 void* Set(void* cmd, GLenum _target, GLuint _pixmapId) { |
| 10104 static_cast<ValueType*>(cmd)->Init(_target, _pixmapId); |
| 10105 return NextCmdAddress<ValueType>(cmd); |
| 10106 } |
| 10107 |
| 10108 gpu::CommandHeader header; |
| 10109 uint32 target; |
| 10110 uint32 pixmapId; |
| 10111 }; |
| 10112 |
| 10113 COMPILE_ASSERT(sizeof(TexImagePixmap2DCHROMIUM) == 12, |
| 10114 Sizeof_TexImagePixmap2DCHROMIUM_is_not_12); |
| 10115 COMPILE_ASSERT(offsetof(TexImagePixmap2DCHROMIUM, header) == 0, |
| 10116 OffsetOf_TexImagePixmap2DCHROMIUM_header_not_0); |
| 10117 COMPILE_ASSERT(offsetof(TexImagePixmap2DCHROMIUM, target) == 4, |
| 10118 OffsetOf_TexImagePixmap2DCHROMIUM_target_not_4); |
| 10119 COMPILE_ASSERT(offsetof(TexImagePixmap2DCHROMIUM, pixmapId) == 8, |
| 10120 OffsetOf_TexImagePixmap2DCHROMIUM_pixmapId_not_8); |
| 10121 |
10084 | 10122 |
10085 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10123 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
10086 | 10124 |
OLD | NEW |