| 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 11037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11048 int32_t n; | 11048 int32_t n; |
| 11049 }; | 11049 }; |
| 11050 | 11050 |
| 11051 static_assert(sizeof(DeleteQueriesEXTImmediate) == 8, | 11051 static_assert(sizeof(DeleteQueriesEXTImmediate) == 8, |
| 11052 "size of DeleteQueriesEXTImmediate should be 8"); | 11052 "size of DeleteQueriesEXTImmediate should be 8"); |
| 11053 static_assert(offsetof(DeleteQueriesEXTImmediate, header) == 0, | 11053 static_assert(offsetof(DeleteQueriesEXTImmediate, header) == 0, |
| 11054 "offset of DeleteQueriesEXTImmediate header should be 0"); | 11054 "offset of DeleteQueriesEXTImmediate header should be 0"); |
| 11055 static_assert(offsetof(DeleteQueriesEXTImmediate, n) == 4, | 11055 static_assert(offsetof(DeleteQueriesEXTImmediate, n) == 4, |
| 11056 "offset of DeleteQueriesEXTImmediate n should be 4"); | 11056 "offset of DeleteQueriesEXTImmediate n should be 4"); |
| 11057 | 11057 |
| 11058 struct QueryCounterEXT { |
| 11059 typedef QueryCounterEXT ValueType; |
| 11060 static const CommandId kCmdId = kQueryCounterEXT; |
| 11061 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11062 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11063 |
| 11064 static uint32_t ComputeSize() { |
| 11065 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11066 } |
| 11067 |
| 11068 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11069 |
| 11070 void Init(GLuint _id, |
| 11071 GLenum _target, |
| 11072 uint32_t _sync_data_shm_id, |
| 11073 uint32_t _sync_data_shm_offset, |
| 11074 GLuint _submit_count) { |
| 11075 SetHeader(); |
| 11076 id = _id; |
| 11077 target = _target; |
| 11078 sync_data_shm_id = _sync_data_shm_id; |
| 11079 sync_data_shm_offset = _sync_data_shm_offset; |
| 11080 submit_count = _submit_count; |
| 11081 } |
| 11082 |
| 11083 void* Set(void* cmd, |
| 11084 GLuint _id, |
| 11085 GLenum _target, |
| 11086 uint32_t _sync_data_shm_id, |
| 11087 uint32_t _sync_data_shm_offset, |
| 11088 GLuint _submit_count) { |
| 11089 static_cast<ValueType*>(cmd)->Init(_id, _target, _sync_data_shm_id, |
| 11090 _sync_data_shm_offset, _submit_count); |
| 11091 return NextCmdAddress<ValueType>(cmd); |
| 11092 } |
| 11093 |
| 11094 gpu::CommandHeader header; |
| 11095 uint32_t id; |
| 11096 uint32_t target; |
| 11097 uint32_t sync_data_shm_id; |
| 11098 uint32_t sync_data_shm_offset; |
| 11099 uint32_t submit_count; |
| 11100 }; |
| 11101 |
| 11102 static_assert(sizeof(QueryCounterEXT) == 24, |
| 11103 "size of QueryCounterEXT should be 24"); |
| 11104 static_assert(offsetof(QueryCounterEXT, header) == 0, |
| 11105 "offset of QueryCounterEXT header should be 0"); |
| 11106 static_assert(offsetof(QueryCounterEXT, id) == 4, |
| 11107 "offset of QueryCounterEXT id should be 4"); |
| 11108 static_assert(offsetof(QueryCounterEXT, target) == 8, |
| 11109 "offset of QueryCounterEXT target should be 8"); |
| 11110 static_assert(offsetof(QueryCounterEXT, sync_data_shm_id) == 12, |
| 11111 "offset of QueryCounterEXT sync_data_shm_id should be 12"); |
| 11112 static_assert(offsetof(QueryCounterEXT, sync_data_shm_offset) == 16, |
| 11113 "offset of QueryCounterEXT sync_data_shm_offset should be 16"); |
| 11114 static_assert(offsetof(QueryCounterEXT, submit_count) == 20, |
| 11115 "offset of QueryCounterEXT submit_count should be 20"); |
| 11116 |
| 11058 struct BeginQueryEXT { | 11117 struct BeginQueryEXT { |
| 11059 typedef BeginQueryEXT ValueType; | 11118 typedef BeginQueryEXT ValueType; |
| 11060 static const CommandId kCmdId = kBeginQueryEXT; | 11119 static const CommandId kCmdId = kBeginQueryEXT; |
| 11061 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11120 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11062 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11121 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11063 | 11122 |
| 11064 static uint32_t ComputeSize() { | 11123 static uint32_t ComputeSize() { |
| 11065 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11124 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11066 } | 11125 } |
| 11067 | 11126 |
| (...skipping 3344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14412 | 14471 |
| 14413 gpu::CommandHeader header; | 14472 gpu::CommandHeader header; |
| 14414 }; | 14473 }; |
| 14415 | 14474 |
| 14416 static_assert(sizeof(BlendBarrierKHR) == 4, | 14475 static_assert(sizeof(BlendBarrierKHR) == 4, |
| 14417 "size of BlendBarrierKHR should be 4"); | 14476 "size of BlendBarrierKHR should be 4"); |
| 14418 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 14477 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
| 14419 "offset of BlendBarrierKHR header should be 0"); | 14478 "offset of BlendBarrierKHR header should be 0"); |
| 14420 | 14479 |
| 14421 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 14480 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |