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 9431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9442 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9442 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
9443 | 9443 |
9444 static uint32 ComputeSize() { | 9444 static uint32 ComputeSize() { |
9445 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 9445 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
9446 } | 9446 } |
9447 | 9447 |
9448 void SetHeader() { | 9448 void SetHeader() { |
9449 header.SetCmd<ValueType>(); | 9449 header.SetCmd<ValueType>(); |
9450 } | 9450 } |
9451 | 9451 |
9452 void Init(GLuint _width, GLuint _height) { | 9452 void Init(GLuint _width, GLuint _height, GLfloat _scale_factor) { |
9453 SetHeader(); | 9453 SetHeader(); |
9454 width = _width; | 9454 width = _width; |
9455 height = _height; | 9455 height = _height; |
| 9456 scale_factor = _scale_factor; |
9456 } | 9457 } |
9457 | 9458 |
9458 void* Set(void* cmd, GLuint _width, GLuint _height) { | 9459 void* Set(void* cmd, GLuint _width, GLuint _height, GLfloat _scale_factor) { |
9459 static_cast<ValueType*>(cmd)->Init(_width, _height); | 9460 static_cast<ValueType*>(cmd)->Init(_width, _height, _scale_factor); |
9460 return NextCmdAddress<ValueType>(cmd); | 9461 return NextCmdAddress<ValueType>(cmd); |
9461 } | 9462 } |
9462 | 9463 |
9463 gpu::CommandHeader header; | 9464 gpu::CommandHeader header; |
9464 uint32 width; | 9465 uint32 width; |
9465 uint32 height; | 9466 uint32 height; |
| 9467 float scale_factor; |
9466 }; | 9468 }; |
9467 | 9469 |
9468 COMPILE_ASSERT(sizeof(ResizeCHROMIUM) == 12, | 9470 COMPILE_ASSERT(sizeof(ResizeCHROMIUM) == 16, |
9469 Sizeof_ResizeCHROMIUM_is_not_12); | 9471 Sizeof_ResizeCHROMIUM_is_not_16); |
9470 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, header) == 0, | 9472 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, header) == 0, |
9471 OffsetOf_ResizeCHROMIUM_header_not_0); | 9473 OffsetOf_ResizeCHROMIUM_header_not_0); |
9472 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, width) == 4, | 9474 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, width) == 4, |
9473 OffsetOf_ResizeCHROMIUM_width_not_4); | 9475 OffsetOf_ResizeCHROMIUM_width_not_4); |
9474 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, height) == 8, | 9476 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, height) == 8, |
9475 OffsetOf_ResizeCHROMIUM_height_not_8); | 9477 OffsetOf_ResizeCHROMIUM_height_not_8); |
| 9478 COMPILE_ASSERT(offsetof(ResizeCHROMIUM, scale_factor) == 12, |
| 9479 OffsetOf_ResizeCHROMIUM_scale_factor_not_12); |
9476 | 9480 |
9477 struct GetRequestableExtensionsCHROMIUM { | 9481 struct GetRequestableExtensionsCHROMIUM { |
9478 typedef GetRequestableExtensionsCHROMIUM ValueType; | 9482 typedef GetRequestableExtensionsCHROMIUM ValueType; |
9479 static const CommandId kCmdId = kGetRequestableExtensionsCHROMIUM; | 9483 static const CommandId kCmdId = kGetRequestableExtensionsCHROMIUM; |
9480 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9484 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
9481 | 9485 |
9482 static uint32 ComputeSize() { | 9486 static uint32 ComputeSize() { |
9483 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 9487 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
9484 } | 9488 } |
9485 | 9489 |
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11025 COMPILE_ASSERT(sizeof(DrawBuffersEXTImmediate) == 8, | 11029 COMPILE_ASSERT(sizeof(DrawBuffersEXTImmediate) == 8, |
11026 Sizeof_DrawBuffersEXTImmediate_is_not_8); | 11030 Sizeof_DrawBuffersEXTImmediate_is_not_8); |
11027 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, header) == 0, | 11031 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, header) == 0, |
11028 OffsetOf_DrawBuffersEXTImmediate_header_not_0); | 11032 OffsetOf_DrawBuffersEXTImmediate_header_not_0); |
11029 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, count) == 4, | 11033 COMPILE_ASSERT(offsetof(DrawBuffersEXTImmediate, count) == 4, |
11030 OffsetOf_DrawBuffersEXTImmediate_count_not_4); | 11034 OffsetOf_DrawBuffersEXTImmediate_count_not_4); |
11031 | 11035 |
11032 | 11036 |
11033 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 11037 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
11034 | 11038 |
OLD | NEW |