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 PopulateSubscribedUniformsCHROMIUM { |
| 8267 typedef PopulateSubscribedUniformsCHROMIUM ValueType; |
| 8268 static const CommandId kCmdId = kPopulateSubscribedUniformsCHROMIUM; |
| 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() { SetHeader(); } |
| 8279 |
| 8280 void* Set(void* cmd) { |
| 8281 static_cast<ValueType*>(cmd)->Init(); |
| 8282 return NextCmdAddress<ValueType>(cmd); |
| 8283 } |
| 8284 |
| 8285 gpu::CommandHeader header; |
| 8286 }; |
| 8287 |
| 8288 COMPILE_ASSERT(sizeof(PopulateSubscribedUniformsCHROMIUM) == 4, |
| 8289 Sizeof_PopulateSubscribedUniformsCHROMIUM_is_not_4); |
| 8290 COMPILE_ASSERT(offsetof(PopulateSubscribedUniformsCHROMIUM, header) == 0, |
| 8291 OffsetOf_PopulateSubscribedUniformsCHROMIUM_header_not_0); |
| 8292 |
8229 struct BindTexImage2DCHROMIUM { | 8293 struct BindTexImage2DCHROMIUM { |
8230 typedef BindTexImage2DCHROMIUM ValueType; | 8294 typedef BindTexImage2DCHROMIUM ValueType; |
8231 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; | 8295 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; |
8232 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8296 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
8233 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8297 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
8234 | 8298 |
8235 static uint32_t ComputeSize() { | 8299 static uint32_t ComputeSize() { |
8236 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8300 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
8237 } | 8301 } |
8238 | 8302 |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9008 }; | 9072 }; |
9009 | 9073 |
9010 COMPILE_ASSERT(sizeof(MatrixLoadIdentityCHROMIUM) == 8, | 9074 COMPILE_ASSERT(sizeof(MatrixLoadIdentityCHROMIUM) == 8, |
9011 Sizeof_MatrixLoadIdentityCHROMIUM_is_not_8); | 9075 Sizeof_MatrixLoadIdentityCHROMIUM_is_not_8); |
9012 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, | 9076 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, |
9013 OffsetOf_MatrixLoadIdentityCHROMIUM_header_not_0); | 9077 OffsetOf_MatrixLoadIdentityCHROMIUM_header_not_0); |
9014 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, | 9078 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, |
9015 OffsetOf_MatrixLoadIdentityCHROMIUM_matrixMode_not_4); | 9079 OffsetOf_MatrixLoadIdentityCHROMIUM_matrixMode_not_4); |
9016 | 9080 |
9017 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9081 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |