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 9452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9463 OffsetOf_PostSubBufferCHROMIUM_header_not_0); | 9463 OffsetOf_PostSubBufferCHROMIUM_header_not_0); |
9464 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, x) == 4, | 9464 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, x) == 4, |
9465 OffsetOf_PostSubBufferCHROMIUM_x_not_4); | 9465 OffsetOf_PostSubBufferCHROMIUM_x_not_4); |
9466 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, y) == 8, | 9466 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, y) == 8, |
9467 OffsetOf_PostSubBufferCHROMIUM_y_not_8); | 9467 OffsetOf_PostSubBufferCHROMIUM_y_not_8); |
9468 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, width) == 12, | 9468 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, width) == 12, |
9469 OffsetOf_PostSubBufferCHROMIUM_width_not_12); | 9469 OffsetOf_PostSubBufferCHROMIUM_width_not_12); |
9470 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, height) == 16, | 9470 COMPILE_ASSERT(offsetof(PostSubBufferCHROMIUM, height) == 16, |
9471 OffsetOf_PostSubBufferCHROMIUM_height_not_16); | 9471 OffsetOf_PostSubBufferCHROMIUM_height_not_16); |
9472 | 9472 |
| 9473 struct SetOverlayPlaneCHROMIUM { |
| 9474 typedef SetOverlayPlaneCHROMIUM ValueType; |
| 9475 static const CommandId kCmdId = kSetOverlayPlaneCHROMIUM; |
| 9476 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9477 |
| 9478 static uint32 ComputeSize() { |
| 9479 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 9480 } |
| 9481 |
| 9482 void SetHeader() { header.SetCmd<ValueType>(); } |
| 9483 |
| 9484 void Init(GLint _plane_id, |
| 9485 GLenum _texture_id, |
| 9486 GLint _x, |
| 9487 GLint _y, |
| 9488 GLint _width, |
| 9489 GLint _height) { |
| 9490 SetHeader(); |
| 9491 plane_id = _plane_id; |
| 9492 texture_id = _texture_id; |
| 9493 x = _x; |
| 9494 y = _y; |
| 9495 width = _width; |
| 9496 height = _height; |
| 9497 } |
| 9498 |
| 9499 void* Set(void* cmd, |
| 9500 GLint _plane_id, |
| 9501 GLenum _texture_id, |
| 9502 GLint _x, |
| 9503 GLint _y, |
| 9504 GLint _width, |
| 9505 GLint _height) { |
| 9506 static_cast<ValueType*>(cmd) |
| 9507 ->Init(_plane_id, _texture_id, _x, _y, _width, _height); |
| 9508 return NextCmdAddress<ValueType>(cmd); |
| 9509 } |
| 9510 |
| 9511 gpu::CommandHeader header; |
| 9512 int32 plane_id; |
| 9513 ; |
| 9514 uint32 texture_id; |
| 9515 int32 x; |
| 9516 int32 y; |
| 9517 int32 width; |
| 9518 int32 height; |
| 9519 }; |
| 9520 |
9473 struct TexImageIOSurface2DCHROMIUM { | 9521 struct TexImageIOSurface2DCHROMIUM { |
9474 typedef TexImageIOSurface2DCHROMIUM ValueType; | 9522 typedef TexImageIOSurface2DCHROMIUM ValueType; |
9475 static const CommandId kCmdId = kTexImageIOSurface2DCHROMIUM; | 9523 static const CommandId kCmdId = kTexImageIOSurface2DCHROMIUM; |
9476 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9524 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
9477 | 9525 |
9478 static uint32 ComputeSize() { | 9526 static uint32 ComputeSize() { |
9479 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 9527 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
9480 } | 9528 } |
9481 | 9529 |
9482 void SetHeader() { | 9530 void SetHeader() { |
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10622 }; | 10670 }; |
10623 | 10671 |
10624 COMPILE_ASSERT(sizeof(DiscardBackbufferCHROMIUM) == 4, | 10672 COMPILE_ASSERT(sizeof(DiscardBackbufferCHROMIUM) == 4, |
10625 Sizeof_DiscardBackbufferCHROMIUM_is_not_4); | 10673 Sizeof_DiscardBackbufferCHROMIUM_is_not_4); |
10626 COMPILE_ASSERT(offsetof(DiscardBackbufferCHROMIUM, header) == 0, | 10674 COMPILE_ASSERT(offsetof(DiscardBackbufferCHROMIUM, header) == 0, |
10627 OffsetOf_DiscardBackbufferCHROMIUM_header_not_0); | 10675 OffsetOf_DiscardBackbufferCHROMIUM_header_not_0); |
10628 | 10676 |
10629 | 10677 |
10630 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10678 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
10631 | 10679 |
OLD | NEW |