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 11881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11892 static const CommandId kCmdId = kResizeCHROMIUM; | 11892 static const CommandId kCmdId = kResizeCHROMIUM; |
11893 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11893 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
11894 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 11894 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
11895 | 11895 |
11896 static uint32_t ComputeSize() { | 11896 static uint32_t ComputeSize() { |
11897 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11897 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
11898 } | 11898 } |
11899 | 11899 |
11900 void SetHeader() { header.SetCmd<ValueType>(); } | 11900 void SetHeader() { header.SetCmd<ValueType>(); } |
11901 | 11901 |
11902 void Init(GLuint _width, GLuint _height, GLfloat _scale_factor) { | 11902 void Init(GLuint _width, |
| 11903 GLuint _height, |
| 11904 GLfloat _scale_factor, |
| 11905 GLboolean _alpha) { |
11903 SetHeader(); | 11906 SetHeader(); |
11904 width = _width; | 11907 width = _width; |
11905 height = _height; | 11908 height = _height; |
11906 scale_factor = _scale_factor; | 11909 scale_factor = _scale_factor; |
| 11910 alpha = _alpha; |
11907 } | 11911 } |
11908 | 11912 |
11909 void* Set(void* cmd, GLuint _width, GLuint _height, GLfloat _scale_factor) { | 11913 void* Set(void* cmd, |
11910 static_cast<ValueType*>(cmd)->Init(_width, _height, _scale_factor); | 11914 GLuint _width, |
| 11915 GLuint _height, |
| 11916 GLfloat _scale_factor, |
| 11917 GLboolean _alpha) { |
| 11918 static_cast<ValueType*>(cmd)->Init(_width, _height, _scale_factor, _alpha); |
11911 return NextCmdAddress<ValueType>(cmd); | 11919 return NextCmdAddress<ValueType>(cmd); |
11912 } | 11920 } |
11913 | 11921 |
11914 gpu::CommandHeader header; | 11922 gpu::CommandHeader header; |
11915 uint32_t width; | 11923 uint32_t width; |
11916 uint32_t height; | 11924 uint32_t height; |
11917 float scale_factor; | 11925 float scale_factor; |
| 11926 uint32_t alpha; |
11918 }; | 11927 }; |
11919 | 11928 |
11920 static_assert(sizeof(ResizeCHROMIUM) == 16, | 11929 static_assert(sizeof(ResizeCHROMIUM) == 20, |
11921 "size of ResizeCHROMIUM should be 16"); | 11930 "size of ResizeCHROMIUM should be 20"); |
11922 static_assert(offsetof(ResizeCHROMIUM, header) == 0, | 11931 static_assert(offsetof(ResizeCHROMIUM, header) == 0, |
11923 "offset of ResizeCHROMIUM header should be 0"); | 11932 "offset of ResizeCHROMIUM header should be 0"); |
11924 static_assert(offsetof(ResizeCHROMIUM, width) == 4, | 11933 static_assert(offsetof(ResizeCHROMIUM, width) == 4, |
11925 "offset of ResizeCHROMIUM width should be 4"); | 11934 "offset of ResizeCHROMIUM width should be 4"); |
11926 static_assert(offsetof(ResizeCHROMIUM, height) == 8, | 11935 static_assert(offsetof(ResizeCHROMIUM, height) == 8, |
11927 "offset of ResizeCHROMIUM height should be 8"); | 11936 "offset of ResizeCHROMIUM height should be 8"); |
11928 static_assert(offsetof(ResizeCHROMIUM, scale_factor) == 12, | 11937 static_assert(offsetof(ResizeCHROMIUM, scale_factor) == 12, |
11929 "offset of ResizeCHROMIUM scale_factor should be 12"); | 11938 "offset of ResizeCHROMIUM scale_factor should be 12"); |
| 11939 static_assert(offsetof(ResizeCHROMIUM, alpha) == 16, |
| 11940 "offset of ResizeCHROMIUM alpha should be 16"); |
11930 | 11941 |
11931 struct GetRequestableExtensionsCHROMIUM { | 11942 struct GetRequestableExtensionsCHROMIUM { |
11932 typedef GetRequestableExtensionsCHROMIUM ValueType; | 11943 typedef GetRequestableExtensionsCHROMIUM ValueType; |
11933 static const CommandId kCmdId = kGetRequestableExtensionsCHROMIUM; | 11944 static const CommandId kCmdId = kGetRequestableExtensionsCHROMIUM; |
11934 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11945 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
11935 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11946 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
11936 | 11947 |
11937 static uint32_t ComputeSize() { | 11948 static uint32_t ComputeSize() { |
11938 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11949 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
11939 } | 11950 } |
(...skipping 3450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15390 gpu::CommandHeader header; | 15401 gpu::CommandHeader header; |
15391 }; | 15402 }; |
15392 | 15403 |
15393 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, | 15404 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, |
15394 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); | 15405 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); |
15395 static_assert( | 15406 static_assert( |
15396 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, | 15407 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, |
15397 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); | 15408 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); |
15398 | 15409 |
15399 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15410 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |