| 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 8339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8350 | 8350 |
| 8351 static uint32 ComputeSize() { | 8351 static uint32 ComputeSize() { |
| 8352 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 8352 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 8353 } | 8353 } |
| 8354 | 8354 |
| 8355 void SetHeader() { | 8355 void SetHeader() { |
| 8356 header.SetCmd<ValueType>(); | 8356 header.SetCmd<ValueType>(); |
| 8357 } | 8357 } |
| 8358 | 8358 |
| 8359 void Init( | 8359 void Init( |
| 8360 GLenum _target, GLuint _id, uint32 _sync_data_shm_id, | 8360 GLenum _target, GLuint _id, uint32 _serial, uint32 _sync_data_shm_id, |
| 8361 uint32 _sync_data_shm_offset) { | 8361 uint32 _sync_data_shm_offset) { |
| 8362 SetHeader(); | 8362 SetHeader(); |
| 8363 target = _target; | 8363 target = _target; |
| 8364 id = _id; | 8364 id = _id; |
| 8365 serial = _serial; |
| 8365 sync_data_shm_id = _sync_data_shm_id; | 8366 sync_data_shm_id = _sync_data_shm_id; |
| 8366 sync_data_shm_offset = _sync_data_shm_offset; | 8367 sync_data_shm_offset = _sync_data_shm_offset; |
| 8367 } | 8368 } |
| 8368 | 8369 |
| 8369 void* Set( | 8370 void* Set( |
| 8370 void* cmd, GLenum _target, GLuint _id, uint32 _sync_data_shm_id, | 8371 void* cmd, GLenum _target, GLuint _id, uint32 _serial, |
| 8371 uint32 _sync_data_shm_offset) { | 8372 uint32 _sync_data_shm_id, uint32 _sync_data_shm_offset) { |
| 8372 static_cast<ValueType*>( | 8373 static_cast<ValueType*>( |
| 8373 cmd)->Init(_target, _id, _sync_data_shm_id, _sync_data_shm_offset); | 8374 cmd)->Init( |
| 8375 _target, _id, _serial, _sync_data_shm_id, _sync_data_shm_offset); |
| 8374 return NextCmdAddress<ValueType>(cmd); | 8376 return NextCmdAddress<ValueType>(cmd); |
| 8375 } | 8377 } |
| 8376 | 8378 |
| 8377 gpu::CommandHeader header; | 8379 gpu::CommandHeader header; |
| 8378 uint32 target; | 8380 uint32 target; |
| 8379 uint32 id; | 8381 uint32 id; |
| 8382 uint32 serial; |
| 8380 uint32 sync_data_shm_id; | 8383 uint32 sync_data_shm_id; |
| 8381 uint32 sync_data_shm_offset; | 8384 uint32 sync_data_shm_offset; |
| 8382 }; | 8385 }; |
| 8383 | 8386 |
| 8384 COMPILE_ASSERT(sizeof(BeginQueryEXT) == 20, | 8387 COMPILE_ASSERT(sizeof(BeginQueryEXT) == 24, |
| 8385 Sizeof_BeginQueryEXT_is_not_20); | 8388 Sizeof_BeginQueryEXT_is_not_24); |
| 8386 COMPILE_ASSERT(offsetof(BeginQueryEXT, header) == 0, | 8389 COMPILE_ASSERT(offsetof(BeginQueryEXT, header) == 0, |
| 8387 OffsetOf_BeginQueryEXT_header_not_0); | 8390 OffsetOf_BeginQueryEXT_header_not_0); |
| 8388 COMPILE_ASSERT(offsetof(BeginQueryEXT, target) == 4, | 8391 COMPILE_ASSERT(offsetof(BeginQueryEXT, target) == 4, |
| 8389 OffsetOf_BeginQueryEXT_target_not_4); | 8392 OffsetOf_BeginQueryEXT_target_not_4); |
| 8390 COMPILE_ASSERT(offsetof(BeginQueryEXT, id) == 8, | 8393 COMPILE_ASSERT(offsetof(BeginQueryEXT, id) == 8, |
| 8391 OffsetOf_BeginQueryEXT_id_not_8); | 8394 OffsetOf_BeginQueryEXT_id_not_8); |
| 8392 COMPILE_ASSERT(offsetof(BeginQueryEXT, sync_data_shm_id) == 12, | 8395 COMPILE_ASSERT(offsetof(BeginQueryEXT, serial) == 12, |
| 8393 OffsetOf_BeginQueryEXT_sync_data_shm_id_not_12); | 8396 OffsetOf_BeginQueryEXT_serial_not_12); |
| 8394 COMPILE_ASSERT(offsetof(BeginQueryEXT, sync_data_shm_offset) == 16, | 8397 COMPILE_ASSERT(offsetof(BeginQueryEXT, sync_data_shm_id) == 16, |
| 8395 OffsetOf_BeginQueryEXT_sync_data_shm_offset_not_16); | 8398 OffsetOf_BeginQueryEXT_sync_data_shm_id_not_16); |
| 8399 COMPILE_ASSERT(offsetof(BeginQueryEXT, sync_data_shm_offset) == 20, |
| 8400 OffsetOf_BeginQueryEXT_sync_data_shm_offset_not_20); |
| 8396 | 8401 |
| 8397 struct EndQueryEXT { | 8402 struct EndQueryEXT { |
| 8398 typedef EndQueryEXT ValueType; | 8403 typedef EndQueryEXT ValueType; |
| 8399 static const CommandId kCmdId = kEndQueryEXT; | 8404 static const CommandId kCmdId = kEndQueryEXT; |
| 8400 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8405 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8401 | 8406 |
| 8402 static uint32 ComputeSize() { | 8407 static uint32 ComputeSize() { |
| 8403 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 8408 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 8404 } | 8409 } |
| 8405 | 8410 |
| 8406 void SetHeader() { | 8411 void SetHeader() { |
| 8407 header.SetCmd<ValueType>(); | 8412 header.SetCmd<ValueType>(); |
| 8408 } | 8413 } |
| 8409 | 8414 |
| 8410 void Init(GLenum _target, GLuint _submit_count) { | 8415 void Init(GLenum _target, uint32 _serial, GLuint _submit_count) { |
| 8411 SetHeader(); | 8416 SetHeader(); |
| 8412 target = _target; | 8417 target = _target; |
| 8418 serial = _serial; |
| 8413 submit_count = _submit_count; | 8419 submit_count = _submit_count; |
| 8414 } | 8420 } |
| 8415 | 8421 |
| 8416 void* Set(void* cmd, GLenum _target, GLuint _submit_count) { | 8422 void* Set(void* cmd, GLenum _target, uint32 _serial, GLuint _submit_count) { |
| 8417 static_cast<ValueType*>(cmd)->Init(_target, _submit_count); | 8423 static_cast<ValueType*>(cmd)->Init(_target, _serial, _submit_count); |
| 8418 return NextCmdAddress<ValueType>(cmd); | 8424 return NextCmdAddress<ValueType>(cmd); |
| 8419 } | 8425 } |
| 8420 | 8426 |
| 8421 gpu::CommandHeader header; | 8427 gpu::CommandHeader header; |
| 8422 uint32 target; | 8428 uint32 target; |
| 8429 uint32 serial; |
| 8423 uint32 submit_count; | 8430 uint32 submit_count; |
| 8424 }; | 8431 }; |
| 8425 | 8432 |
| 8426 COMPILE_ASSERT(sizeof(EndQueryEXT) == 12, | 8433 COMPILE_ASSERT(sizeof(EndQueryEXT) == 16, |
| 8427 Sizeof_EndQueryEXT_is_not_12); | 8434 Sizeof_EndQueryEXT_is_not_16); |
| 8428 COMPILE_ASSERT(offsetof(EndQueryEXT, header) == 0, | 8435 COMPILE_ASSERT(offsetof(EndQueryEXT, header) == 0, |
| 8429 OffsetOf_EndQueryEXT_header_not_0); | 8436 OffsetOf_EndQueryEXT_header_not_0); |
| 8430 COMPILE_ASSERT(offsetof(EndQueryEXT, target) == 4, | 8437 COMPILE_ASSERT(offsetof(EndQueryEXT, target) == 4, |
| 8431 OffsetOf_EndQueryEXT_target_not_4); | 8438 OffsetOf_EndQueryEXT_target_not_4); |
| 8432 COMPILE_ASSERT(offsetof(EndQueryEXT, submit_count) == 8, | 8439 COMPILE_ASSERT(offsetof(EndQueryEXT, serial) == 8, |
| 8433 OffsetOf_EndQueryEXT_submit_count_not_8); | 8440 OffsetOf_EndQueryEXT_serial_not_8); |
| 8441 COMPILE_ASSERT(offsetof(EndQueryEXT, submit_count) == 12, |
| 8442 OffsetOf_EndQueryEXT_submit_count_not_12); |
| 8434 | 8443 |
| 8435 struct InsertEventMarkerEXT { | 8444 struct InsertEventMarkerEXT { |
| 8436 typedef InsertEventMarkerEXT ValueType; | 8445 typedef InsertEventMarkerEXT ValueType; |
| 8437 static const CommandId kCmdId = kInsertEventMarkerEXT; | 8446 static const CommandId kCmdId = kInsertEventMarkerEXT; |
| 8438 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8447 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8439 | 8448 |
| 8440 static uint32 ComputeSize() { | 8449 static uint32 ComputeSize() { |
| 8441 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 8450 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 8442 } | 8451 } |
| 8443 | 8452 |
| (...skipping 2178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10622 }; | 10631 }; |
| 10623 | 10632 |
| 10624 COMPILE_ASSERT(sizeof(DiscardBackbufferCHROMIUM) == 4, | 10633 COMPILE_ASSERT(sizeof(DiscardBackbufferCHROMIUM) == 4, |
| 10625 Sizeof_DiscardBackbufferCHROMIUM_is_not_4); | 10634 Sizeof_DiscardBackbufferCHROMIUM_is_not_4); |
| 10626 COMPILE_ASSERT(offsetof(DiscardBackbufferCHROMIUM, header) == 0, | 10635 COMPILE_ASSERT(offsetof(DiscardBackbufferCHROMIUM, header) == 0, |
| 10627 OffsetOf_DiscardBackbufferCHROMIUM_header_not_0); | 10636 OffsetOf_DiscardBackbufferCHROMIUM_header_not_0); |
| 10628 | 10637 |
| 10629 | 10638 |
| 10630 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10639 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| 10631 | 10640 |
| OLD | NEW |