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 13066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13077 | 13077 |
13078 static_assert(sizeof(BindTexImage2DCHROMIUM) == 12, | 13078 static_assert(sizeof(BindTexImage2DCHROMIUM) == 12, |
13079 "size of BindTexImage2DCHROMIUM should be 12"); | 13079 "size of BindTexImage2DCHROMIUM should be 12"); |
13080 static_assert(offsetof(BindTexImage2DCHROMIUM, header) == 0, | 13080 static_assert(offsetof(BindTexImage2DCHROMIUM, header) == 0, |
13081 "offset of BindTexImage2DCHROMIUM header should be 0"); | 13081 "offset of BindTexImage2DCHROMIUM header should be 0"); |
13082 static_assert(offsetof(BindTexImage2DCHROMIUM, target) == 4, | 13082 static_assert(offsetof(BindTexImage2DCHROMIUM, target) == 4, |
13083 "offset of BindTexImage2DCHROMIUM target should be 4"); | 13083 "offset of BindTexImage2DCHROMIUM target should be 4"); |
13084 static_assert(offsetof(BindTexImage2DCHROMIUM, imageId) == 8, | 13084 static_assert(offsetof(BindTexImage2DCHROMIUM, imageId) == 8, |
13085 "offset of BindTexImage2DCHROMIUM imageId should be 8"); | 13085 "offset of BindTexImage2DCHROMIUM imageId should be 8"); |
13086 | 13086 |
| 13087 struct BindTexImage2DWithInternalformatCHROMIUM { |
| 13088 typedef BindTexImage2DWithInternalformatCHROMIUM ValueType; |
| 13089 static const CommandId kCmdId = kBindTexImage2DWithInternalformatCHROMIUM; |
| 13090 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13091 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13092 |
| 13093 static uint32_t ComputeSize() { |
| 13094 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13095 } |
| 13096 |
| 13097 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13098 |
| 13099 void Init(GLenum _target, GLenum _internalformat, GLint _imageId) { |
| 13100 SetHeader(); |
| 13101 target = _target; |
| 13102 internalformat = _internalformat; |
| 13103 imageId = _imageId; |
| 13104 } |
| 13105 |
| 13106 void* Set(void* cmd, GLenum _target, GLenum _internalformat, GLint _imageId) { |
| 13107 static_cast<ValueType*>(cmd)->Init(_target, _internalformat, _imageId); |
| 13108 return NextCmdAddress<ValueType>(cmd); |
| 13109 } |
| 13110 |
| 13111 gpu::CommandHeader header; |
| 13112 uint32_t target; |
| 13113 uint32_t internalformat; |
| 13114 int32_t imageId; |
| 13115 }; |
| 13116 |
| 13117 static_assert(sizeof(BindTexImage2DWithInternalformatCHROMIUM) == 16, |
| 13118 "size of BindTexImage2DWithInternalformatCHROMIUM should be 16"); |
| 13119 static_assert( |
| 13120 offsetof(BindTexImage2DWithInternalformatCHROMIUM, header) == 0, |
| 13121 "offset of BindTexImage2DWithInternalformatCHROMIUM header should be 0"); |
| 13122 static_assert( |
| 13123 offsetof(BindTexImage2DWithInternalformatCHROMIUM, target) == 4, |
| 13124 "offset of BindTexImage2DWithInternalformatCHROMIUM target should be 4"); |
| 13125 static_assert(offsetof(BindTexImage2DWithInternalformatCHROMIUM, |
| 13126 internalformat) == 8, |
| 13127 "offset of BindTexImage2DWithInternalformatCHROMIUM " |
| 13128 "internalformat should be 8"); |
| 13129 static_assert( |
| 13130 offsetof(BindTexImage2DWithInternalformatCHROMIUM, imageId) == 12, |
| 13131 "offset of BindTexImage2DWithInternalformatCHROMIUM imageId should be 12"); |
| 13132 |
13087 struct ReleaseTexImage2DCHROMIUM { | 13133 struct ReleaseTexImage2DCHROMIUM { |
13088 typedef ReleaseTexImage2DCHROMIUM ValueType; | 13134 typedef ReleaseTexImage2DCHROMIUM ValueType; |
13089 static const CommandId kCmdId = kReleaseTexImage2DCHROMIUM; | 13135 static const CommandId kCmdId = kReleaseTexImage2DCHROMIUM; |
13090 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13136 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
13091 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13137 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
13092 | 13138 |
13093 static uint32_t ComputeSize() { | 13139 static uint32_t ComputeSize() { |
13094 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13140 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
13095 } | 13141 } |
13096 | 13142 |
(...skipping 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15893 }; | 15939 }; |
15894 | 15940 |
15895 static_assert(sizeof(SetEnableDCLayersCHROMIUM) == 8, | 15941 static_assert(sizeof(SetEnableDCLayersCHROMIUM) == 8, |
15896 "size of SetEnableDCLayersCHROMIUM should be 8"); | 15942 "size of SetEnableDCLayersCHROMIUM should be 8"); |
15897 static_assert(offsetof(SetEnableDCLayersCHROMIUM, header) == 0, | 15943 static_assert(offsetof(SetEnableDCLayersCHROMIUM, header) == 0, |
15898 "offset of SetEnableDCLayersCHROMIUM header should be 0"); | 15944 "offset of SetEnableDCLayersCHROMIUM header should be 0"); |
15899 static_assert(offsetof(SetEnableDCLayersCHROMIUM, enabled) == 4, | 15945 static_assert(offsetof(SetEnableDCLayersCHROMIUM, enabled) == 4, |
15900 "offset of SetEnableDCLayersCHROMIUM enabled should be 4"); | 15946 "offset of SetEnableDCLayersCHROMIUM enabled should be 4"); |
15901 | 15947 |
15902 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15948 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |