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(GLenum _target, GLuint _bucket_id) { |
| 8242 SetHeader(); |
| 8243 target = _target; |
| 8244 bucket_id = _bucket_id; |
| 8245 } |
| 8246 |
| 8247 void* Set(void* cmd, GLenum _target, GLuint _bucket_id) { |
| 8248 static_cast<ValueType*>(cmd)->Init(_target, _bucket_id); |
| 8249 return NextCmdAddress<ValueType>(cmd); |
| 8250 } |
| 8251 |
| 8252 gpu::CommandHeader header; |
| 8253 uint32_t target; |
| 8254 uint32_t bucket_id; |
| 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, target) == 4, |
| 8262 OffsetOf_SubscribeUniformCHROMIUM_target_not_4); |
| 8263 COMPILE_ASSERT(offsetof(SubscribeUniformCHROMIUM, bucket_id) == 8, |
| 8264 OffsetOf_SubscribeUniformCHROMIUM_bucket_id_not_8); |
| 8265 |
8229 struct BindTexImage2DCHROMIUM { | 8266 struct BindTexImage2DCHROMIUM { |
8230 typedef BindTexImage2DCHROMIUM ValueType; | 8267 typedef BindTexImage2DCHROMIUM ValueType; |
8231 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; | 8268 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; |
8232 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8269 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
8233 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8270 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
8234 | 8271 |
8235 static uint32_t ComputeSize() { | 8272 static uint32_t ComputeSize() { |
8236 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8273 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
8237 } | 8274 } |
8238 | 8275 |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9008 }; | 9045 }; |
9009 | 9046 |
9010 COMPILE_ASSERT(sizeof(MatrixLoadIdentityCHROMIUM) == 8, | 9047 COMPILE_ASSERT(sizeof(MatrixLoadIdentityCHROMIUM) == 8, |
9011 Sizeof_MatrixLoadIdentityCHROMIUM_is_not_8); | 9048 Sizeof_MatrixLoadIdentityCHROMIUM_is_not_8); |
9012 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, | 9049 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, |
9013 OffsetOf_MatrixLoadIdentityCHROMIUM_header_not_0); | 9050 OffsetOf_MatrixLoadIdentityCHROMIUM_header_not_0); |
9014 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, | 9051 COMPILE_ASSERT(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, |
9015 OffsetOf_MatrixLoadIdentityCHROMIUM_matrixMode_not_4); | 9052 OffsetOf_MatrixLoadIdentityCHROMIUM_matrixMode_not_4); |
9016 | 9053 |
9017 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9054 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |