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 7515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7526 uint32_t bucket_id; | 7526 uint32_t bucket_id; |
7527 }; | 7527 }; |
7528 | 7528 |
7529 COMPILE_ASSERT(sizeof(RequestExtensionCHROMIUM) == 8, | 7529 COMPILE_ASSERT(sizeof(RequestExtensionCHROMIUM) == 8, |
7530 Sizeof_RequestExtensionCHROMIUM_is_not_8); | 7530 Sizeof_RequestExtensionCHROMIUM_is_not_8); |
7531 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, header) == 0, | 7531 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, header) == 0, |
7532 OffsetOf_RequestExtensionCHROMIUM_header_not_0); | 7532 OffsetOf_RequestExtensionCHROMIUM_header_not_0); |
7533 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, bucket_id) == 4, | 7533 COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, bucket_id) == 4, |
7534 OffsetOf_RequestExtensionCHROMIUM_bucket_id_not_4); | 7534 OffsetOf_RequestExtensionCHROMIUM_bucket_id_not_4); |
7535 | 7535 |
7536 struct GetMultipleIntegervCHROMIUM { | |
7537 typedef GetMultipleIntegervCHROMIUM ValueType; | |
7538 static const CommandId kCmdId = kGetMultipleIntegervCHROMIUM; | |
7539 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
7540 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | |
7541 | |
7542 static uint32_t ComputeSize() { | |
7543 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
7544 } | |
7545 | |
7546 void SetHeader() { header.SetCmd<ValueType>(); } | |
7547 | |
7548 void Init(uint32_t _pnames_shm_id, | |
7549 uint32_t _pnames_shm_offset, | |
7550 GLuint _count, | |
7551 uint32_t _results_shm_id, | |
7552 uint32_t _results_shm_offset, | |
7553 GLsizeiptr _size) { | |
7554 SetHeader(); | |
7555 pnames_shm_id = _pnames_shm_id; | |
7556 pnames_shm_offset = _pnames_shm_offset; | |
7557 count = _count; | |
7558 results_shm_id = _results_shm_id; | |
7559 results_shm_offset = _results_shm_offset; | |
7560 size = _size; | |
7561 } | |
7562 | |
7563 void* Set(void* cmd, | |
7564 uint32_t _pnames_shm_id, | |
7565 uint32_t _pnames_shm_offset, | |
7566 GLuint _count, | |
7567 uint32_t _results_shm_id, | |
7568 uint32_t _results_shm_offset, | |
7569 GLsizeiptr _size) { | |
7570 static_cast<ValueType*>(cmd)->Init(_pnames_shm_id, _pnames_shm_offset, | |
7571 _count, _results_shm_id, | |
7572 _results_shm_offset, _size); | |
7573 return NextCmdAddress<ValueType>(cmd); | |
7574 } | |
7575 | |
7576 gpu::CommandHeader header; | |
7577 uint32_t pnames_shm_id; | |
7578 uint32_t pnames_shm_offset; | |
7579 uint32_t count; | |
7580 uint32_t results_shm_id; | |
7581 uint32_t results_shm_offset; | |
7582 int32_t size; | |
7583 }; | |
7584 | |
7585 COMPILE_ASSERT(sizeof(GetMultipleIntegervCHROMIUM) == 28, | |
7586 Sizeof_GetMultipleIntegervCHROMIUM_is_not_28); | |
7587 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, header) == 0, | |
7588 OffsetOf_GetMultipleIntegervCHROMIUM_header_not_0); | |
7589 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, pnames_shm_id) == 4, | |
7590 OffsetOf_GetMultipleIntegervCHROMIUM_pnames_shm_id_not_4); | |
7591 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, pnames_shm_offset) == 8, | |
7592 OffsetOf_GetMultipleIntegervCHROMIUM_pnames_shm_offset_not_8); | |
7593 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, count) == 12, | |
7594 OffsetOf_GetMultipleIntegervCHROMIUM_count_not_12); | |
7595 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, results_shm_id) == 16, | |
7596 OffsetOf_GetMultipleIntegervCHROMIUM_results_shm_id_not_16); | |
7597 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, results_shm_offset) == 20, | |
7598 OffsetOf_GetMultipleIntegervCHROMIUM_results_shm_offset_not_20); | |
7599 COMPILE_ASSERT(offsetof(GetMultipleIntegervCHROMIUM, size) == 24, | |
7600 OffsetOf_GetMultipleIntegervCHROMIUM_size_not_24); | |
7601 | |
7602 struct GetProgramInfoCHROMIUM { | 7536 struct GetProgramInfoCHROMIUM { |
7603 typedef GetProgramInfoCHROMIUM ValueType; | 7537 typedef GetProgramInfoCHROMIUM ValueType; |
7604 static const CommandId kCmdId = kGetProgramInfoCHROMIUM; | 7538 static const CommandId kCmdId = kGetProgramInfoCHROMIUM; |
7605 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7539 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
7606 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7540 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
7607 | 7541 |
7608 struct Result { | 7542 struct Result { |
7609 uint32_t link_status; | 7543 uint32_t link_status; |
7610 uint32_t num_attribs; | 7544 uint32_t num_attribs; |
7611 uint32_t num_uniforms; | 7545 uint32_t num_uniforms; |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8164 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, header) == 0, | 8098 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, header) == 0, |
8165 OffsetOf_BindUniformLocationCHROMIUMBucket_header_not_0); | 8099 OffsetOf_BindUniformLocationCHROMIUMBucket_header_not_0); |
8166 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, program) == 4, | 8100 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, program) == 4, |
8167 OffsetOf_BindUniformLocationCHROMIUMBucket_program_not_4); | 8101 OffsetOf_BindUniformLocationCHROMIUMBucket_program_not_4); |
8168 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, location) == 8, | 8102 COMPILE_ASSERT(offsetof(BindUniformLocationCHROMIUMBucket, location) == 8, |
8169 OffsetOf_BindUniformLocationCHROMIUMBucket_location_not_8); | 8103 OffsetOf_BindUniformLocationCHROMIUMBucket_location_not_8); |
8170 COMPILE_ASSERT( | 8104 COMPILE_ASSERT( |
8171 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, | 8105 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, |
8172 OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12); | 8106 OffsetOf_BindUniformLocationCHROMIUMBucket_name_bucket_id_not_12); |
8173 | 8107 |
| 8108 struct GenValuebuffersCHROMIUMImmediate { |
| 8109 typedef GenValuebuffersCHROMIUMImmediate ValueType; |
| 8110 static const CommandId kCmdId = kGenValuebuffersCHROMIUMImmediate; |
| 8111 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 8112 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8113 |
| 8114 static uint32_t ComputeDataSize(GLsizei n) { |
| 8115 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 8116 } |
| 8117 |
| 8118 static uint32_t ComputeSize(GLsizei n) { |
| 8119 return static_cast<uint32_t>(sizeof(ValueType) + |
| 8120 ComputeDataSize(n)); // NOLINT |
| 8121 } |
| 8122 |
| 8123 void SetHeader(GLsizei n) { |
| 8124 header.SetCmdByTotalSize<ValueType>(ComputeSize(n)); |
| 8125 } |
| 8126 |
| 8127 void Init(GLsizei _n, GLuint* _buffers) { |
| 8128 SetHeader(_n); |
| 8129 n = _n; |
| 8130 memcpy(ImmediateDataAddress(this), _buffers, ComputeDataSize(_n)); |
| 8131 } |
| 8132 |
| 8133 void* Set(void* cmd, GLsizei _n, GLuint* _buffers) { |
| 8134 static_cast<ValueType*>(cmd)->Init(_n, _buffers); |
| 8135 const uint32_t size = ComputeSize(_n); |
| 8136 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 8137 } |
| 8138 |
| 8139 gpu::CommandHeader header; |
| 8140 int32_t n; |
| 8141 }; |
| 8142 |
| 8143 COMPILE_ASSERT(sizeof(GenValuebuffersCHROMIUMImmediate) == 8, |
| 8144 Sizeof_GenValuebuffersCHROMIUMImmediate_is_not_8); |
| 8145 COMPILE_ASSERT(offsetof(GenValuebuffersCHROMIUMImmediate, header) == 0, |
| 8146 OffsetOf_GenValuebuffersCHROMIUMImmediate_header_not_0); |
| 8147 COMPILE_ASSERT(offsetof(GenValuebuffersCHROMIUMImmediate, n) == 4, |
| 8148 OffsetOf_GenValuebuffersCHROMIUMImmediate_n_not_4); |
| 8149 |
| 8150 struct DeleteValuebuffersCHROMIUMImmediate { |
| 8151 typedef DeleteValuebuffersCHROMIUMImmediate ValueType; |
| 8152 static const CommandId kCmdId = kDeleteValuebuffersCHROMIUMImmediate; |
| 8153 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 8154 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8155 |
| 8156 static uint32_t ComputeDataSize(GLsizei n) { |
| 8157 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 8158 } |
| 8159 |
| 8160 static uint32_t ComputeSize(GLsizei n) { |
| 8161 return static_cast<uint32_t>(sizeof(ValueType) + |
| 8162 ComputeDataSize(n)); // NOLINT |
| 8163 } |
| 8164 |
| 8165 void SetHeader(GLsizei n) { |
| 8166 header.SetCmdByTotalSize<ValueType>(ComputeSize(n)); |
| 8167 } |
| 8168 |
| 8169 void Init(GLsizei _n, const GLuint* _valuebuffers) { |
| 8170 SetHeader(_n); |
| 8171 n = _n; |
| 8172 memcpy(ImmediateDataAddress(this), _valuebuffers, ComputeDataSize(_n)); |
| 8173 } |
| 8174 |
| 8175 void* Set(void* cmd, GLsizei _n, const GLuint* _valuebuffers) { |
| 8176 static_cast<ValueType*>(cmd)->Init(_n, _valuebuffers); |
| 8177 const uint32_t size = ComputeSize(_n); |
| 8178 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 8179 } |
| 8180 |
| 8181 gpu::CommandHeader header; |
| 8182 int32_t n; |
| 8183 }; |
| 8184 |
| 8185 COMPILE_ASSERT(sizeof(DeleteValuebuffersCHROMIUMImmediate) == 8, |
| 8186 Sizeof_DeleteValuebuffersCHROMIUMImmediate_is_not_8); |
| 8187 COMPILE_ASSERT(offsetof(DeleteValuebuffersCHROMIUMImmediate, header) == 0, |
| 8188 OffsetOf_DeleteValuebuffersCHROMIUMImmediate_header_not_0); |
| 8189 COMPILE_ASSERT(offsetof(DeleteValuebuffersCHROMIUMImmediate, n) == 4, |
| 8190 OffsetOf_DeleteValuebuffersCHROMIUMImmediate_n_not_4); |
| 8191 |
| 8192 struct IsValuebufferCHROMIUM { |
| 8193 typedef IsValuebufferCHROMIUM ValueType; |
| 8194 static const CommandId kCmdId = kIsValuebufferCHROMIUM; |
| 8195 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8196 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8197 |
| 8198 typedef uint32_t Result; |
| 8199 |
| 8200 static uint32_t ComputeSize() { |
| 8201 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8202 } |
| 8203 |
| 8204 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8205 |
| 8206 void Init(GLuint _valuebuffer, |
| 8207 uint32_t _result_shm_id, |
| 8208 uint32_t _result_shm_offset) { |
| 8209 SetHeader(); |
| 8210 valuebuffer = _valuebuffer; |
| 8211 result_shm_id = _result_shm_id; |
| 8212 result_shm_offset = _result_shm_offset; |
| 8213 } |
| 8214 |
| 8215 void* Set(void* cmd, |
| 8216 GLuint _valuebuffer, |
| 8217 uint32_t _result_shm_id, |
| 8218 uint32_t _result_shm_offset) { |
| 8219 static_cast<ValueType*>(cmd) |
| 8220 ->Init(_valuebuffer, _result_shm_id, _result_shm_offset); |
| 8221 return NextCmdAddress<ValueType>(cmd); |
| 8222 } |
| 8223 |
| 8224 gpu::CommandHeader header; |
| 8225 uint32_t valuebuffer; |
| 8226 uint32_t result_shm_id; |
| 8227 uint32_t result_shm_offset; |
| 8228 }; |
| 8229 |
| 8230 COMPILE_ASSERT(sizeof(IsValuebufferCHROMIUM) == 16, |
| 8231 Sizeof_IsValuebufferCHROMIUM_is_not_16); |
| 8232 COMPILE_ASSERT(offsetof(IsValuebufferCHROMIUM, header) == 0, |
| 8233 OffsetOf_IsValuebufferCHROMIUM_header_not_0); |
| 8234 COMPILE_ASSERT(offsetof(IsValuebufferCHROMIUM, valuebuffer) == 4, |
| 8235 OffsetOf_IsValuebufferCHROMIUM_valuebuffer_not_4); |
| 8236 COMPILE_ASSERT(offsetof(IsValuebufferCHROMIUM, result_shm_id) == 8, |
| 8237 OffsetOf_IsValuebufferCHROMIUM_result_shm_id_not_8); |
| 8238 COMPILE_ASSERT(offsetof(IsValuebufferCHROMIUM, result_shm_offset) == 12, |
| 8239 OffsetOf_IsValuebufferCHROMIUM_result_shm_offset_not_12); |
| 8240 |
| 8241 struct BindValuebufferCHROMIUM { |
| 8242 typedef BindValuebufferCHROMIUM ValueType; |
| 8243 static const CommandId kCmdId = kBindValuebufferCHROMIUM; |
| 8244 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8245 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8246 |
| 8247 static uint32_t ComputeSize() { |
| 8248 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8249 } |
| 8250 |
| 8251 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8252 |
| 8253 void Init(GLenum _target, GLuint _valuebuffer) { |
| 8254 SetHeader(); |
| 8255 target = _target; |
| 8256 valuebuffer = _valuebuffer; |
| 8257 } |
| 8258 |
| 8259 void* Set(void* cmd, GLenum _target, GLuint _valuebuffer) { |
| 8260 static_cast<ValueType*>(cmd)->Init(_target, _valuebuffer); |
| 8261 return NextCmdAddress<ValueType>(cmd); |
| 8262 } |
| 8263 |
| 8264 gpu::CommandHeader header; |
| 8265 uint32_t target; |
| 8266 uint32_t valuebuffer; |
| 8267 }; |
| 8268 |
| 8269 COMPILE_ASSERT(sizeof(BindValuebufferCHROMIUM) == 12, |
| 8270 Sizeof_BindValuebufferCHROMIUM_is_not_12); |
| 8271 COMPILE_ASSERT(offsetof(BindValuebufferCHROMIUM, header) == 0, |
| 8272 OffsetOf_BindValuebufferCHROMIUM_header_not_0); |
| 8273 COMPILE_ASSERT(offsetof(BindValuebufferCHROMIUM, target) == 4, |
| 8274 OffsetOf_BindValuebufferCHROMIUM_target_not_4); |
| 8275 COMPILE_ASSERT(offsetof(BindValuebufferCHROMIUM, valuebuffer) == 8, |
| 8276 OffsetOf_BindValuebufferCHROMIUM_valuebuffer_not_8); |
| 8277 |
| 8278 struct SubscribeValueCHROMIUM { |
| 8279 typedef SubscribeValueCHROMIUM ValueType; |
| 8280 static const CommandId kCmdId = kSubscribeValueCHROMIUM; |
| 8281 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8282 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8283 |
| 8284 static uint32_t ComputeSize() { |
| 8285 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8286 } |
| 8287 |
| 8288 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8289 |
| 8290 void Init(GLenum _target, GLenum _subscription) { |
| 8291 SetHeader(); |
| 8292 target = _target; |
| 8293 subscription = _subscription; |
| 8294 } |
| 8295 |
| 8296 void* Set(void* cmd, GLenum _target, GLenum _subscription) { |
| 8297 static_cast<ValueType*>(cmd)->Init(_target, _subscription); |
| 8298 return NextCmdAddress<ValueType>(cmd); |
| 8299 } |
| 8300 |
| 8301 gpu::CommandHeader header; |
| 8302 uint32_t target; |
| 8303 uint32_t subscription; |
| 8304 }; |
| 8305 |
| 8306 COMPILE_ASSERT(sizeof(SubscribeValueCHROMIUM) == 12, |
| 8307 Sizeof_SubscribeValueCHROMIUM_is_not_12); |
| 8308 COMPILE_ASSERT(offsetof(SubscribeValueCHROMIUM, header) == 0, |
| 8309 OffsetOf_SubscribeValueCHROMIUM_header_not_0); |
| 8310 COMPILE_ASSERT(offsetof(SubscribeValueCHROMIUM, target) == 4, |
| 8311 OffsetOf_SubscribeValueCHROMIUM_target_not_4); |
| 8312 COMPILE_ASSERT(offsetof(SubscribeValueCHROMIUM, subscription) == 8, |
| 8313 OffsetOf_SubscribeValueCHROMIUM_subscription_not_8); |
| 8314 |
| 8315 struct PopulateSubscribedValuesCHROMIUM { |
| 8316 typedef PopulateSubscribedValuesCHROMIUM ValueType; |
| 8317 static const CommandId kCmdId = kPopulateSubscribedValuesCHROMIUM; |
| 8318 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8319 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8320 |
| 8321 static uint32_t ComputeSize() { |
| 8322 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8323 } |
| 8324 |
| 8325 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8326 |
| 8327 void Init(GLenum _target) { |
| 8328 SetHeader(); |
| 8329 target = _target; |
| 8330 } |
| 8331 |
| 8332 void* Set(void* cmd, GLenum _target) { |
| 8333 static_cast<ValueType*>(cmd)->Init(_target); |
| 8334 return NextCmdAddress<ValueType>(cmd); |
| 8335 } |
| 8336 |
| 8337 gpu::CommandHeader header; |
| 8338 uint32_t target; |
| 8339 }; |
| 8340 |
| 8341 COMPILE_ASSERT(sizeof(PopulateSubscribedValuesCHROMIUM) == 8, |
| 8342 Sizeof_PopulateSubscribedValuesCHROMIUM_is_not_8); |
| 8343 COMPILE_ASSERT(offsetof(PopulateSubscribedValuesCHROMIUM, header) == 0, |
| 8344 OffsetOf_PopulateSubscribedValuesCHROMIUM_header_not_0); |
| 8345 COMPILE_ASSERT(offsetof(PopulateSubscribedValuesCHROMIUM, target) == 4, |
| 8346 OffsetOf_PopulateSubscribedValuesCHROMIUM_target_not_4); |
| 8347 |
| 8348 struct UniformValuebufferCHROMIUM { |
| 8349 typedef UniformValuebufferCHROMIUM ValueType; |
| 8350 static const CommandId kCmdId = kUniformValuebufferCHROMIUM; |
| 8351 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8352 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8353 |
| 8354 static uint32_t ComputeSize() { |
| 8355 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8356 } |
| 8357 |
| 8358 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8359 |
| 8360 void Init(GLint _location, GLenum _target, GLenum _subscription) { |
| 8361 SetHeader(); |
| 8362 location = _location; |
| 8363 target = _target; |
| 8364 subscription = _subscription; |
| 8365 } |
| 8366 |
| 8367 void* Set(void* cmd, GLint _location, GLenum _target, GLenum _subscription) { |
| 8368 static_cast<ValueType*>(cmd)->Init(_location, _target, _subscription); |
| 8369 return NextCmdAddress<ValueType>(cmd); |
| 8370 } |
| 8371 |
| 8372 gpu::CommandHeader header; |
| 8373 int32_t location; |
| 8374 uint32_t target; |
| 8375 uint32_t subscription; |
| 8376 }; |
| 8377 |
| 8378 COMPILE_ASSERT(sizeof(UniformValuebufferCHROMIUM) == 16, |
| 8379 Sizeof_UniformValuebufferCHROMIUM_is_not_16); |
| 8380 COMPILE_ASSERT(offsetof(UniformValuebufferCHROMIUM, header) == 0, |
| 8381 OffsetOf_UniformValuebufferCHROMIUM_header_not_0); |
| 8382 COMPILE_ASSERT(offsetof(UniformValuebufferCHROMIUM, location) == 4, |
| 8383 OffsetOf_UniformValuebufferCHROMIUM_location_not_4); |
| 8384 COMPILE_ASSERT(offsetof(UniformValuebufferCHROMIUM, target) == 8, |
| 8385 OffsetOf_UniformValuebufferCHROMIUM_target_not_8); |
| 8386 COMPILE_ASSERT(offsetof(UniformValuebufferCHROMIUM, subscription) == 12, |
| 8387 OffsetOf_UniformValuebufferCHROMIUM_subscription_not_12); |
| 8388 |
8174 struct BindTexImage2DCHROMIUM { | 8389 struct BindTexImage2DCHROMIUM { |
8175 typedef BindTexImage2DCHROMIUM ValueType; | 8390 typedef BindTexImage2DCHROMIUM ValueType; |
8176 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; | 8391 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; |
8177 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8392 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
8178 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8393 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
8179 | 8394 |
8180 static uint32_t ComputeSize() { | 8395 static uint32_t ComputeSize() { |
8181 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8396 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
8182 } | 8397 } |
8183 | 8398 |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8955 } | 9170 } |
8956 | 9171 |
8957 gpu::CommandHeader header; | 9172 gpu::CommandHeader header; |
8958 }; | 9173 }; |
8959 | 9174 |
8960 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); | 9175 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); |
8961 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, | 9176 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, |
8962 OffsetOf_BlendBarrierKHR_header_not_0); | 9177 OffsetOf_BlendBarrierKHR_header_not_0); |
8963 | 9178 |
8964 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9179 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |