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 8208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8219 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, header) == 0, | 8219 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, header) == 0, |
8220 OffsetOf_BindUniformLocationCHROMIUMBucket_header_not_0); | 8220 OffsetOf_BindUniformLocationCHROMIUMBucket_header_not_0); |
8221 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, program) == 4, | 8221 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, program) == 4, |
8222 OffsetOf_BindUniformLocationCHROMIUMBucket_program_not_4); | 8222 OffsetOf_BindUniformLocationCHROMIUMBucket_program_not_4); |
8223 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, location) == 8, | 8223 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, location) == 8, |
8224 OffsetOf_BindUniformLocationCHROMIUMBucket_location_not_8); | 8224 OffsetOf_BindUniformLocationCHROMIUMBucket_location_not_8); |
8225 COMPILE_ASSERT( | 8225 COMPILE_ASSERT( |
8226 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, | 8226 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, |
8227 OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12); | 8227 OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12); |
8228 | 8228 |
| 8229 struct SubscribeUniformCHROMIUM { |
| 8230 typedef SubscribeUniformCHROMIUM ValueType; |
| 8231 static const CommandId kCmdId = kSubscribeUniformCHROMIUM; |
| 8232 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8233 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8234 |
| 8235 static uint32_t ComputeSize() { |
| 8236 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8237 } |
| 8238 |
| 8239 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8240 |
| 8241 void Init(GLint _location, GLenum _target) { |
| 8242 SetHeader(); |
| 8243 location = _location; |
| 8244 target = _target; |
| 8245 } |
| 8246 |
| 8247 void* Set(void* cmd, GLint _location, GLenum _target) { |
| 8248 static_cast<ValueType*>(cmd)->Init(_location, _target); |
| 8249 return NextCmdAddress<ValueType>(cmd); |
| 8250 } |
| 8251 |
| 8252 gpu::CommandHeader header; |
| 8253 int32_t location; |
| 8254 uint32_t target; |
| 8255 }; |
| 8256 |
| 8257 COMPILE_ASSERT(sizeof(SubscribeUniformCHROMIUM) == 12, |
| 8258 Sizeof_SubscribeUniformCHROMIUM_is_not_12); |
| 8259 COMPILE_ASSERT(offsetof(SubscribeUniformCHROMIUM, header) == 0, |
| 8260 OffsetOf_SubscribeUniformCHROMIUM_header_not_0); |
| 8261 COMPILE_ASSERT(offsetof(SubscribeUniformCHROMIUM, location) == 4, |
| 8262 OffsetOf_SubscribeUniformCHROMIUM_location_not_4); |
| 8263 COMPILE_ASSERT(offsetof(SubscribeUniformCHROMIUM, target) == 8, |
| 8264 OffsetOf_SubscribeUniformCHROMIUM_target_not_8); |
| 8265 |
| 8266 struct UnsubscribeUniformCHROMIUM { |
| 8267 typedef UnsubscribeUniformCHROMIUM ValueType; |
| 8268 static const CommandId kCmdId = kUnsubscribeUniformCHROMIUM; |
| 8269 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8270 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8271 |
| 8272 static uint32_t ComputeSize() { |
| 8273 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8274 } |
| 8275 |
| 8276 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8277 |
| 8278 void Init(GLint _location) { |
| 8279 SetHeader(); |
| 8280 location = _location; |
| 8281 } |
| 8282 |
| 8283 void* Set(void* cmd, GLint _location) { |
| 8284 static_cast<ValueType*>(cmd)->Init(_location); |
| 8285 return NextCmdAddress<ValueType>(cmd); |
| 8286 } |
| 8287 |
| 8288 gpu::CommandHeader header; |
| 8289 int32_t location; |
| 8290 }; |
| 8291 |
| 8292 COMPILE_ASSERT(sizeof(UnsubscribeUniformCHROMIUM) == 8, |
| 8293 Sizeof_UnsubscribeUniformCHROMIUM_is_not_8); |
| 8294 COMPILE_ASSERT(offsetof(UnsubscribeUniformCHROMIUM, header) == 0, |
| 8295 OffsetOf_UnsubscribeUniformCHROMIUM_header_not_0); |
| 8296 COMPILE_ASSERT(offsetof(UnsubscribeUniformCHROMIUM, location) == 4, |
| 8297 OffsetOf_UnsubscribeUniformCHROMIUM_location_not_4); |
| 8298 |
| 8299 struct PopulateSubscribedUniformsCHROMIUM { |
| 8300 typedef PopulateSubscribedUniformsCHROMIUM ValueType; |
| 8301 static const CommandId kCmdId = kPopulateSubscribedUniformsCHROMIUM; |
| 8302 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8303 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8304 |
| 8305 static uint32_t ComputeSize() { |
| 8306 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8307 } |
| 8308 |
| 8309 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8310 |
| 8311 void Init() { SetHeader(); } |
| 8312 |
| 8313 void* Set(void* cmd) { |
| 8314 static_cast<ValueType*>(cmd)->Init(); |
| 8315 return NextCmdAddress<ValueType>(cmd); |
| 8316 } |
| 8317 |
| 8318 gpu::CommandHeader header; |
| 8319 }; |
| 8320 |
| 8321 COMPILE_ASSERT(sizeof(PopulateSubscribedUniformsCHROMIUM) == 4, |
| 8322 Sizeof_PopulateSubscribedUniformsCHROMIUM_is_not_4); |
| 8323 COMPILE_ASSERT(offsetof(PopulateSubscribedUniformsCHROMIUM, header) == 0, |
| 8324 OffsetOf_PopulateSubscribedUniformsCHROMIUM_header_not_0); |
| 8325 |
8229 struct BindTexImage2DCHROMIUM { | 8326 struct BindTexImage2DCHROMIUM { |
8230 typedef BindTexImage2DCHROMIUM ValueType; | 8327 typedef BindTexImage2DCHROMIUM ValueType; |
8231 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; | 8328 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; |
8232 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8329 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
8233 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8330 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
8234 | 8331 |
8235 static uint32_t ComputeSize() { | 8332 static uint32_t ComputeSize() { |
8236 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8333 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
8237 } | 8334 } |
8238 | 8335 |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9008 }; | 9105 }; |
9009 | 9106 |
9010 COMPILE_ASSERT(sizeof(MatrixLoadIdentityCHROMIUM) == 8, | 9107 COMPILE_ASSERT(sizeof(MatrixLoadIdentityCHROMIUM) == 8, |
9011 Sizeof_MatrixLoadIdentityCHROMIUM_is_not_8); | 9108 Sizeof_MatrixLoadIdentityCHROMIUM_is_not_8); |
9012 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, | 9109 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, |
9013 OffsetOf_MatrixLoadIdentityCHROMIUM_header_not_0); | 9110 OffsetOf_MatrixLoadIdentityCHROMIUM_header_not_0); |
9014 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, | 9111 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, |
9015 OffsetOf_MatrixLoadIdentityCHROMIUM_matrixMode_not_4); | 9112 OffsetOf_MatrixLoadIdentityCHROMIUM_matrixMode_not_4); |
9016 | 9113 |
9017 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9114 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |