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 9506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9517 OffsetOf_TexImageIOSurface2DCHROMIUM_target_not_4); | 9517 OffsetOf_TexImageIOSurface2DCHROMIUM_target_not_4); |
9518 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, width) == 8, | 9518 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, width) == 8, |
9519 OffsetOf_TexImageIOSurface2DCHROMIUM_width_not_8); | 9519 OffsetOf_TexImageIOSurface2DCHROMIUM_width_not_8); |
9520 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, height) == 12, | 9520 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, height) == 12, |
9521 OffsetOf_TexImageIOSurface2DCHROMIUM_height_not_12); | 9521 OffsetOf_TexImageIOSurface2DCHROMIUM_height_not_12); |
9522 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, ioSurfaceId) == 16, | 9522 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, ioSurfaceId) == 16, |
9523 OffsetOf_TexImageIOSurface2DCHROMIUM_ioSurfaceId_not_16); | 9523 OffsetOf_TexImageIOSurface2DCHROMIUM_ioSurfaceId_not_16); |
9524 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, plane) == 20, | 9524 COMPILE_ASSERT(offsetof(TexImageIOSurface2DCHROMIUM, plane) == 20, |
9525 OffsetOf_TexImageIOSurface2DCHROMIUM_plane_not_20); | 9525 OffsetOf_TexImageIOSurface2DCHROMIUM_plane_not_20); |
9526 | 9526 |
| 9527 struct CopyTextureCHROMIUM { |
| 9528 typedef CopyTextureCHROMIUM ValueType; |
| 9529 static const CommandId kCmdId = kCopyTextureCHROMIUM; |
| 9530 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9531 |
| 9532 static uint32 ComputeSize() { |
| 9533 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 9534 } |
| 9535 |
| 9536 void SetHeader() { |
| 9537 header.SetCmd<ValueType>(); |
| 9538 } |
| 9539 |
| 9540 void Init(GLenum _target, GLenum _source_id, GLenum _dest_id, GLint _level) { |
| 9541 SetHeader(); |
| 9542 target = _target; |
| 9543 source_id = _source_id; |
| 9544 dest_id = _dest_id; |
| 9545 level = _level; |
| 9546 } |
| 9547 |
| 9548 void* Set( |
| 9549 void* cmd, GLenum _target, GLenum _source_id, GLenum _dest_id, |
| 9550 GLint _level) { |
| 9551 static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id, _level); |
| 9552 return NextCmdAddress<ValueType>(cmd); |
| 9553 } |
| 9554 |
| 9555 gpu::CommandHeader header; |
| 9556 uint32 target; |
| 9557 uint32 source_id; |
| 9558 uint32 dest_id; |
| 9559 int32 level; |
| 9560 }; |
| 9561 |
| 9562 COMPILE_ASSERT(sizeof(CopyTextureCHROMIUM) == 20, |
| 9563 Sizeof_CopyTextureCHROMIUM_is_not_20); |
| 9564 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, header) == 0, |
| 9565 OffsetOf_CopyTextureCHROMIUM_header_not_0); |
| 9566 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, target) == 4, |
| 9567 OffsetOf_CopyTextureCHROMIUM_target_not_4); |
| 9568 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, source_id) == 8, |
| 9569 OffsetOf_CopyTextureCHROMIUM_source_id_not_8); |
| 9570 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, dest_id) == 12, |
| 9571 OffsetOf_CopyTextureCHROMIUM_dest_id_not_12); |
| 9572 COMPILE_ASSERT(offsetof(CopyTextureCHROMIUM, level) == 16, |
| 9573 OffsetOf_CopyTextureCHROMIUM_level_not_16); |
| 9574 |
9527 struct DrawArraysInstancedANGLE { | 9575 struct DrawArraysInstancedANGLE { |
9528 typedef DrawArraysInstancedANGLE ValueType; | 9576 typedef DrawArraysInstancedANGLE ValueType; |
9529 static const CommandId kCmdId = kDrawArraysInstancedANGLE; | 9577 static const CommandId kCmdId = kDrawArraysInstancedANGLE; |
9530 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9578 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
9531 | 9579 |
9532 static uint32 ComputeSize() { | 9580 static uint32 ComputeSize() { |
9533 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 9581 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
9534 } | 9582 } |
9535 | 9583 |
9536 void SetHeader() { | 9584 void SetHeader() { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9661 COMPILE_ASSERT(offsetof(VertexAttribDivisorANGLE, header) == 0, | 9709 COMPILE_ASSERT(offsetof(VertexAttribDivisorANGLE, header) == 0, |
9662 OffsetOf_VertexAttribDivisorANGLE_header_not_0); | 9710 OffsetOf_VertexAttribDivisorANGLE_header_not_0); |
9663 COMPILE_ASSERT(offsetof(VertexAttribDivisorANGLE, index) == 4, | 9711 COMPILE_ASSERT(offsetof(VertexAttribDivisorANGLE, index) == 4, |
9664 OffsetOf_VertexAttribDivisorANGLE_index_not_4); | 9712 OffsetOf_VertexAttribDivisorANGLE_index_not_4); |
9665 COMPILE_ASSERT(offsetof(VertexAttribDivisorANGLE, divisor) == 8, | 9713 COMPILE_ASSERT(offsetof(VertexAttribDivisorANGLE, divisor) == 8, |
9666 OffsetOf_VertexAttribDivisorANGLE_divisor_not_8); | 9714 OffsetOf_VertexAttribDivisorANGLE_divisor_not_8); |
9667 | 9715 |
9668 | 9716 |
9669 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9717 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
9670 | 9718 |
OLD | NEW |