| 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 15171 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 15182     offsetof(ProgramPathFragmentInputGenCHROMIUM, components) == 16, | 15182     offsetof(ProgramPathFragmentInputGenCHROMIUM, components) == 16, | 
| 15183     "offset of ProgramPathFragmentInputGenCHROMIUM components should be 16"); | 15183     "offset of ProgramPathFragmentInputGenCHROMIUM components should be 16"); | 
| 15184 static_assert( | 15184 static_assert( | 
| 15185     offsetof(ProgramPathFragmentInputGenCHROMIUM, coeffs_shm_id) == 20, | 15185     offsetof(ProgramPathFragmentInputGenCHROMIUM, coeffs_shm_id) == 20, | 
| 15186     "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_id should be 20"); | 15186     "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_id should be 20"); | 
| 15187 static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM, | 15187 static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM, | 
| 15188                        coeffs_shm_offset) == 24, | 15188                        coeffs_shm_offset) == 24, | 
| 15189               "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset " | 15189               "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset " | 
| 15190               "should be 24"); | 15190               "should be 24"); | 
| 15191 | 15191 | 
|  | 15192 struct GetBufferSubDataAsyncCHROMIUM { | 
|  | 15193   typedef GetBufferSubDataAsyncCHROMIUM ValueType; | 
|  | 15194   static const CommandId kCmdId = kGetBufferSubDataAsyncCHROMIUM; | 
|  | 15195   static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 
|  | 15196   static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 
|  | 15197 | 
|  | 15198   static uint32_t ComputeSize() { | 
|  | 15199     return static_cast<uint32_t>(sizeof(ValueType));  // NOLINT | 
|  | 15200   } | 
|  | 15201 | 
|  | 15202   void SetHeader() { header.SetCmd<ValueType>(); } | 
|  | 15203 | 
|  | 15204   void Init(GLenum _target, | 
|  | 15205             GLintptr _offset, | 
|  | 15206             GLsizeiptr _size, | 
|  | 15207             uint32_t _data_shm_id, | 
|  | 15208             uint32_t _data_shm_offset) { | 
|  | 15209     SetHeader(); | 
|  | 15210     target = _target; | 
|  | 15211     offset = _offset; | 
|  | 15212     size = _size; | 
|  | 15213     data_shm_id = _data_shm_id; | 
|  | 15214     data_shm_offset = _data_shm_offset; | 
|  | 15215   } | 
|  | 15216 | 
|  | 15217   void* Set(void* cmd, | 
|  | 15218             GLenum _target, | 
|  | 15219             GLintptr _offset, | 
|  | 15220             GLsizeiptr _size, | 
|  | 15221             uint32_t _data_shm_id, | 
|  | 15222             uint32_t _data_shm_offset) { | 
|  | 15223     static_cast<ValueType*>(cmd)->Init(_target, _offset, _size, _data_shm_id, | 
|  | 15224                                        _data_shm_offset); | 
|  | 15225     return NextCmdAddress<ValueType>(cmd); | 
|  | 15226   } | 
|  | 15227 | 
|  | 15228   gpu::CommandHeader header; | 
|  | 15229   uint32_t target; | 
|  | 15230   int32_t offset; | 
|  | 15231   int32_t size; | 
|  | 15232   uint32_t data_shm_id; | 
|  | 15233   uint32_t data_shm_offset; | 
|  | 15234 }; | 
|  | 15235 | 
|  | 15236 static_assert(sizeof(GetBufferSubDataAsyncCHROMIUM) == 24, | 
|  | 15237               "size of GetBufferSubDataAsyncCHROMIUM should be 24"); | 
|  | 15238 static_assert(offsetof(GetBufferSubDataAsyncCHROMIUM, header) == 0, | 
|  | 15239               "offset of GetBufferSubDataAsyncCHROMIUM header should be 0"); | 
|  | 15240 static_assert(offsetof(GetBufferSubDataAsyncCHROMIUM, target) == 4, | 
|  | 15241               "offset of GetBufferSubDataAsyncCHROMIUM target should be 4"); | 
|  | 15242 static_assert(offsetof(GetBufferSubDataAsyncCHROMIUM, offset) == 8, | 
|  | 15243               "offset of GetBufferSubDataAsyncCHROMIUM offset should be 8"); | 
|  | 15244 static_assert(offsetof(GetBufferSubDataAsyncCHROMIUM, size) == 12, | 
|  | 15245               "offset of GetBufferSubDataAsyncCHROMIUM size should be 12"); | 
|  | 15246 static_assert( | 
|  | 15247     offsetof(GetBufferSubDataAsyncCHROMIUM, data_shm_id) == 16, | 
|  | 15248     "offset of GetBufferSubDataAsyncCHROMIUM data_shm_id should be 16"); | 
|  | 15249 static_assert( | 
|  | 15250     offsetof(GetBufferSubDataAsyncCHROMIUM, data_shm_offset) == 20, | 
|  | 15251     "offset of GetBufferSubDataAsyncCHROMIUM data_shm_offset should be 20"); | 
|  | 15252 | 
| 15192 struct CoverageModulationCHROMIUM { | 15253 struct CoverageModulationCHROMIUM { | 
| 15193   typedef CoverageModulationCHROMIUM ValueType; | 15254   typedef CoverageModulationCHROMIUM ValueType; | 
| 15194   static const CommandId kCmdId = kCoverageModulationCHROMIUM; | 15255   static const CommandId kCmdId = kCoverageModulationCHROMIUM; | 
| 15195   static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15256   static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 
| 15196   static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15257   static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 
| 15197 | 15258 | 
| 15198   static uint32_t ComputeSize() { | 15259   static uint32_t ComputeSize() { | 
| 15199     return static_cast<uint32_t>(sizeof(ValueType));  // NOLINT | 15260     return static_cast<uint32_t>(sizeof(ValueType));  // NOLINT | 
| 15200   } | 15261   } | 
| 15201 | 15262 | 
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 15531 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, | 15592 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, x) == 4, | 
| 15532               "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); | 15593               "offset of SwapBuffersWithDamageCHROMIUM x should be 4"); | 
| 15533 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, | 15594 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, y) == 8, | 
| 15534               "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); | 15595               "offset of SwapBuffersWithDamageCHROMIUM y should be 8"); | 
| 15535 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, | 15596 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, width) == 12, | 
| 15536               "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); | 15597               "offset of SwapBuffersWithDamageCHROMIUM width should be 12"); | 
| 15537 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, | 15598 static_assert(offsetof(SwapBuffersWithDamageCHROMIUM, height) == 16, | 
| 15538               "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); | 15599               "offset of SwapBuffersWithDamageCHROMIUM height should be 16"); | 
| 15539 | 15600 | 
| 15540 #endif  // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15601 #endif  // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 
| OLD | NEW | 
|---|