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 13349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13360 | 13360 |
13361 static_assert(sizeof(LoseContextCHROMIUM) == 12, | 13361 static_assert(sizeof(LoseContextCHROMIUM) == 12, |
13362 "size of LoseContextCHROMIUM should be 12"); | 13362 "size of LoseContextCHROMIUM should be 12"); |
13363 static_assert(offsetof(LoseContextCHROMIUM, header) == 0, | 13363 static_assert(offsetof(LoseContextCHROMIUM, header) == 0, |
13364 "offset of LoseContextCHROMIUM header should be 0"); | 13364 "offset of LoseContextCHROMIUM header should be 0"); |
13365 static_assert(offsetof(LoseContextCHROMIUM, current) == 4, | 13365 static_assert(offsetof(LoseContextCHROMIUM, current) == 4, |
13366 "offset of LoseContextCHROMIUM current should be 4"); | 13366 "offset of LoseContextCHROMIUM current should be 4"); |
13367 static_assert(offsetof(LoseContextCHROMIUM, other) == 8, | 13367 static_assert(offsetof(LoseContextCHROMIUM, other) == 8, |
13368 "offset of LoseContextCHROMIUM other should be 8"); | 13368 "offset of LoseContextCHROMIUM other should be 8"); |
13369 | 13369 |
13370 struct WaitSyncPointCHROMIUM { | |
13371 typedef WaitSyncPointCHROMIUM ValueType; | |
13372 static const CommandId kCmdId = kWaitSyncPointCHROMIUM; | |
13373 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
13374 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | |
13375 | |
13376 static uint32_t ComputeSize() { | |
13377 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
13378 } | |
13379 | |
13380 void SetHeader() { header.SetCmd<ValueType>(); } | |
13381 | |
13382 void Init(GLuint _sync_point) { | |
13383 SetHeader(); | |
13384 sync_point = _sync_point; | |
13385 } | |
13386 | |
13387 void* Set(void* cmd, GLuint _sync_point) { | |
13388 static_cast<ValueType*>(cmd)->Init(_sync_point); | |
13389 return NextCmdAddress<ValueType>(cmd); | |
13390 } | |
13391 | |
13392 gpu::CommandHeader header; | |
13393 uint32_t sync_point; | |
13394 }; | |
13395 | |
13396 static_assert(sizeof(WaitSyncPointCHROMIUM) == 8, | |
13397 "size of WaitSyncPointCHROMIUM should be 8"); | |
13398 static_assert(offsetof(WaitSyncPointCHROMIUM, header) == 0, | |
13399 "offset of WaitSyncPointCHROMIUM header should be 0"); | |
13400 static_assert(offsetof(WaitSyncPointCHROMIUM, sync_point) == 4, | |
13401 "offset of WaitSyncPointCHROMIUM sync_point should be 4"); | |
13402 | |
13403 struct InsertFenceSyncCHROMIUM { | 13370 struct InsertFenceSyncCHROMIUM { |
13404 typedef InsertFenceSyncCHROMIUM ValueType; | 13371 typedef InsertFenceSyncCHROMIUM ValueType; |
13405 static const CommandId kCmdId = kInsertFenceSyncCHROMIUM; | 13372 static const CommandId kCmdId = kInsertFenceSyncCHROMIUM; |
13406 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13373 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
13407 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 13374 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
13408 | 13375 |
13409 static uint32_t ComputeSize() { | 13376 static uint32_t ComputeSize() { |
13410 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13377 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
13411 } | 13378 } |
13412 | 13379 |
(...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15641 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, | 15608 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, |
15642 "offset of GetFragDataIndexEXT program should be 4"); | 15609 "offset of GetFragDataIndexEXT program should be 4"); |
15643 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, | 15610 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, |
15644 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); | 15611 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); |
15645 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, | 15612 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, |
15646 "offset of GetFragDataIndexEXT index_shm_id should be 12"); | 15613 "offset of GetFragDataIndexEXT index_shm_id should be 12"); |
15647 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, | 15614 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, |
15648 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); | 15615 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); |
15649 | 15616 |
15650 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15617 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |