| 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 12203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12214 static uint32_t ComputeSize() { | 12214 static uint32_t ComputeSize() { |
| 12215 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12215 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12216 } | 12216 } |
| 12217 | 12217 |
| 12218 void SetHeader() { header.SetCmd<ValueType>(); } | 12218 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12219 | 12219 |
| 12220 void Init(GLenum _target, | 12220 void Init(GLenum _target, |
| 12221 GLenum _source_id, | 12221 GLenum _source_id, |
| 12222 GLenum _dest_id, | 12222 GLenum _dest_id, |
| 12223 GLint _xoffset, | 12223 GLint _xoffset, |
| 12224 GLint _yoffset) { | 12224 GLint _yoffset, |
| 12225 GLint _x, |
| 12226 GLint _y, |
| 12227 GLsizei _width, |
| 12228 GLsizei _height) { |
| 12225 SetHeader(); | 12229 SetHeader(); |
| 12226 target = _target; | 12230 target = _target; |
| 12227 source_id = _source_id; | 12231 source_id = _source_id; |
| 12228 dest_id = _dest_id; | 12232 dest_id = _dest_id; |
| 12229 xoffset = _xoffset; | 12233 xoffset = _xoffset; |
| 12230 yoffset = _yoffset; | 12234 yoffset = _yoffset; |
| 12235 x = _x; |
| 12236 y = _y; |
| 12237 width = _width; |
| 12238 height = _height; |
| 12231 } | 12239 } |
| 12232 | 12240 |
| 12233 void* Set(void* cmd, | 12241 void* Set(void* cmd, |
| 12234 GLenum _target, | 12242 GLenum _target, |
| 12235 GLenum _source_id, | 12243 GLenum _source_id, |
| 12236 GLenum _dest_id, | 12244 GLenum _dest_id, |
| 12237 GLint _xoffset, | 12245 GLint _xoffset, |
| 12238 GLint _yoffset) { | 12246 GLint _yoffset, |
| 12239 static_cast<ValueType*>(cmd) | 12247 GLint _x, |
| 12240 ->Init(_target, _source_id, _dest_id, _xoffset, _yoffset); | 12248 GLint _y, |
| 12249 GLsizei _width, |
| 12250 GLsizei _height) { |
| 12251 static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id, _xoffset, |
| 12252 _yoffset, _x, _y, _width, _height); |
| 12241 return NextCmdAddress<ValueType>(cmd); | 12253 return NextCmdAddress<ValueType>(cmd); |
| 12242 } | 12254 } |
| 12243 | 12255 |
| 12244 gpu::CommandHeader header; | 12256 gpu::CommandHeader header; |
| 12245 uint32_t target; | 12257 uint32_t target; |
| 12246 uint32_t source_id; | 12258 uint32_t source_id; |
| 12247 uint32_t dest_id; | 12259 uint32_t dest_id; |
| 12248 int32_t xoffset; | 12260 int32_t xoffset; |
| 12249 int32_t yoffset; | 12261 int32_t yoffset; |
| 12262 int32_t x; |
| 12263 int32_t y; |
| 12264 int32_t width; |
| 12265 int32_t height; |
| 12250 }; | 12266 }; |
| 12251 | 12267 |
| 12252 static_assert(sizeof(CopySubTextureCHROMIUM) == 24, | 12268 static_assert(sizeof(CopySubTextureCHROMIUM) == 40, |
| 12253 "size of CopySubTextureCHROMIUM should be 24"); | 12269 "size of CopySubTextureCHROMIUM should be 40"); |
| 12254 static_assert(offsetof(CopySubTextureCHROMIUM, header) == 0, | 12270 static_assert(offsetof(CopySubTextureCHROMIUM, header) == 0, |
| 12255 "offset of CopySubTextureCHROMIUM header should be 0"); | 12271 "offset of CopySubTextureCHROMIUM header should be 0"); |
| 12256 static_assert(offsetof(CopySubTextureCHROMIUM, target) == 4, | 12272 static_assert(offsetof(CopySubTextureCHROMIUM, target) == 4, |
| 12257 "offset of CopySubTextureCHROMIUM target should be 4"); | 12273 "offset of CopySubTextureCHROMIUM target should be 4"); |
| 12258 static_assert(offsetof(CopySubTextureCHROMIUM, source_id) == 8, | 12274 static_assert(offsetof(CopySubTextureCHROMIUM, source_id) == 8, |
| 12259 "offset of CopySubTextureCHROMIUM source_id should be 8"); | 12275 "offset of CopySubTextureCHROMIUM source_id should be 8"); |
| 12260 static_assert(offsetof(CopySubTextureCHROMIUM, dest_id) == 12, | 12276 static_assert(offsetof(CopySubTextureCHROMIUM, dest_id) == 12, |
| 12261 "offset of CopySubTextureCHROMIUM dest_id should be 12"); | 12277 "offset of CopySubTextureCHROMIUM dest_id should be 12"); |
| 12262 static_assert(offsetof(CopySubTextureCHROMIUM, xoffset) == 16, | 12278 static_assert(offsetof(CopySubTextureCHROMIUM, xoffset) == 16, |
| 12263 "offset of CopySubTextureCHROMIUM xoffset should be 16"); | 12279 "offset of CopySubTextureCHROMIUM xoffset should be 16"); |
| 12264 static_assert(offsetof(CopySubTextureCHROMIUM, yoffset) == 20, | 12280 static_assert(offsetof(CopySubTextureCHROMIUM, yoffset) == 20, |
| 12265 "offset of CopySubTextureCHROMIUM yoffset should be 20"); | 12281 "offset of CopySubTextureCHROMIUM yoffset should be 20"); |
| 12282 static_assert(offsetof(CopySubTextureCHROMIUM, x) == 24, |
| 12283 "offset of CopySubTextureCHROMIUM x should be 24"); |
| 12284 static_assert(offsetof(CopySubTextureCHROMIUM, y) == 28, |
| 12285 "offset of CopySubTextureCHROMIUM y should be 28"); |
| 12286 static_assert(offsetof(CopySubTextureCHROMIUM, width) == 32, |
| 12287 "offset of CopySubTextureCHROMIUM width should be 32"); |
| 12288 static_assert(offsetof(CopySubTextureCHROMIUM, height) == 36, |
| 12289 "offset of CopySubTextureCHROMIUM height should be 36"); |
| 12266 | 12290 |
| 12267 struct DrawArraysInstancedANGLE { | 12291 struct DrawArraysInstancedANGLE { |
| 12268 typedef DrawArraysInstancedANGLE ValueType; | 12292 typedef DrawArraysInstancedANGLE ValueType; |
| 12269 static const CommandId kCmdId = kDrawArraysInstancedANGLE; | 12293 static const CommandId kCmdId = kDrawArraysInstancedANGLE; |
| 12270 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12294 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12271 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12295 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12272 | 12296 |
| 12273 static uint32_t ComputeSize() { | 12297 static uint32_t ComputeSize() { |
| 12274 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12298 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12275 } | 12299 } |
| (...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13699 | 13723 |
| 13700 gpu::CommandHeader header; | 13724 gpu::CommandHeader header; |
| 13701 }; | 13725 }; |
| 13702 | 13726 |
| 13703 static_assert(sizeof(BlendBarrierKHR) == 4, | 13727 static_assert(sizeof(BlendBarrierKHR) == 4, |
| 13704 "size of BlendBarrierKHR should be 4"); | 13728 "size of BlendBarrierKHR should be 4"); |
| 13705 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 13729 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
| 13706 "offset of BlendBarrierKHR header should be 0"); | 13730 "offset of BlendBarrierKHR header should be 0"); |
| 13707 | 13731 |
| 13708 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 13732 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |