| 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 |
| 11 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 11 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| 12 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 12 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| 13 | 13 |
| 14 #define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 | 14 #define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001 |
| 15 #define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 | 15 #define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117 |
| 16 | 16 |
| 17 struct ActiveTexture { | 17 struct ActiveTexture { |
| 18 typedef ActiveTexture ValueType; | 18 typedef ActiveTexture ValueType; |
| 19 static const CommandId kCmdId = kActiveTexture; | 19 static const CommandId kCmdId = kActiveTexture; |
| 20 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 20 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 21 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 21 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 22 | 22 |
| 23 static uint32_t ComputeSize() { | 23 static uint32_t ComputeSize() { |
| 24 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 24 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 25 } | 25 } |
| 26 | 26 |
| 27 void SetHeader() { header.SetCmd<ValueType>(); } | 27 void SetHeader() { header.SetCmd<ValueType>(); } |
| 28 | 28 |
| 29 void Init(GLenum _texture) { | 29 void Init(GLenum _texture) { |
| 30 SetHeader(); | 30 SetHeader(); |
| 31 texture = _texture; | 31 texture = _texture; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 43 static_assert(sizeof(ActiveTexture) == 8, "size of ActiveTexture should be 8"); | 43 static_assert(sizeof(ActiveTexture) == 8, "size of ActiveTexture should be 8"); |
| 44 static_assert(offsetof(ActiveTexture, header) == 0, | 44 static_assert(offsetof(ActiveTexture, header) == 0, |
| 45 "offset of ActiveTexture header should be 0"); | 45 "offset of ActiveTexture header should be 0"); |
| 46 static_assert(offsetof(ActiveTexture, texture) == 4, | 46 static_assert(offsetof(ActiveTexture, texture) == 4, |
| 47 "offset of ActiveTexture texture should be 4"); | 47 "offset of ActiveTexture texture should be 4"); |
| 48 | 48 |
| 49 struct AttachShader { | 49 struct AttachShader { |
| 50 typedef AttachShader ValueType; | 50 typedef AttachShader ValueType; |
| 51 static const CommandId kCmdId = kAttachShader; | 51 static const CommandId kCmdId = kAttachShader; |
| 52 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 52 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 53 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 53 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 54 | 54 |
| 55 static uint32_t ComputeSize() { | 55 static uint32_t ComputeSize() { |
| 56 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 56 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 57 } | 57 } |
| 58 | 58 |
| 59 void SetHeader() { header.SetCmd<ValueType>(); } | 59 void SetHeader() { header.SetCmd<ValueType>(); } |
| 60 | 60 |
| 61 void Init(GLuint _program, GLuint _shader) { | 61 void Init(GLuint _program, GLuint _shader) { |
| 62 SetHeader(); | 62 SetHeader(); |
| 63 program = _program; | 63 program = _program; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 79 "offset of AttachShader header should be 0"); | 79 "offset of AttachShader header should be 0"); |
| 80 static_assert(offsetof(AttachShader, program) == 4, | 80 static_assert(offsetof(AttachShader, program) == 4, |
| 81 "offset of AttachShader program should be 4"); | 81 "offset of AttachShader program should be 4"); |
| 82 static_assert(offsetof(AttachShader, shader) == 8, | 82 static_assert(offsetof(AttachShader, shader) == 8, |
| 83 "offset of AttachShader shader should be 8"); | 83 "offset of AttachShader shader should be 8"); |
| 84 | 84 |
| 85 struct BindAttribLocationBucket { | 85 struct BindAttribLocationBucket { |
| 86 typedef BindAttribLocationBucket ValueType; | 86 typedef BindAttribLocationBucket ValueType; |
| 87 static const CommandId kCmdId = kBindAttribLocationBucket; | 87 static const CommandId kCmdId = kBindAttribLocationBucket; |
| 88 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 88 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 89 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 89 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 90 | 90 |
| 91 static uint32_t ComputeSize() { | 91 static uint32_t ComputeSize() { |
| 92 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 92 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 93 } | 93 } |
| 94 | 94 |
| 95 void SetHeader() { header.SetCmd<ValueType>(); } | 95 void SetHeader() { header.SetCmd<ValueType>(); } |
| 96 | 96 |
| 97 void Init(GLuint _program, GLuint _index, uint32_t _name_bucket_id) { | 97 void Init(GLuint _program, GLuint _index, uint32_t _name_bucket_id) { |
| 98 SetHeader(); | 98 SetHeader(); |
| 99 program = _program; | 99 program = _program; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 123 "offset of BindAttribLocationBucket program should be 4"); | 123 "offset of BindAttribLocationBucket program should be 4"); |
| 124 static_assert(offsetof(BindAttribLocationBucket, index) == 8, | 124 static_assert(offsetof(BindAttribLocationBucket, index) == 8, |
| 125 "offset of BindAttribLocationBucket index should be 8"); | 125 "offset of BindAttribLocationBucket index should be 8"); |
| 126 static_assert(offsetof(BindAttribLocationBucket, name_bucket_id) == 12, | 126 static_assert(offsetof(BindAttribLocationBucket, name_bucket_id) == 12, |
| 127 "offset of BindAttribLocationBucket name_bucket_id should be 12"); | 127 "offset of BindAttribLocationBucket name_bucket_id should be 12"); |
| 128 | 128 |
| 129 struct BindBuffer { | 129 struct BindBuffer { |
| 130 typedef BindBuffer ValueType; | 130 typedef BindBuffer ValueType; |
| 131 static const CommandId kCmdId = kBindBuffer; | 131 static const CommandId kCmdId = kBindBuffer; |
| 132 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 132 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 133 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 133 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 134 | 134 |
| 135 static uint32_t ComputeSize() { | 135 static uint32_t ComputeSize() { |
| 136 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 136 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 137 } | 137 } |
| 138 | 138 |
| 139 void SetHeader() { header.SetCmd<ValueType>(); } | 139 void SetHeader() { header.SetCmd<ValueType>(); } |
| 140 | 140 |
| 141 void Init(GLenum _target, GLuint _buffer) { | 141 void Init(GLenum _target, GLuint _buffer) { |
| 142 SetHeader(); | 142 SetHeader(); |
| 143 target = _target; | 143 target = _target; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 159 "offset of BindBuffer header should be 0"); | 159 "offset of BindBuffer header should be 0"); |
| 160 static_assert(offsetof(BindBuffer, target) == 4, | 160 static_assert(offsetof(BindBuffer, target) == 4, |
| 161 "offset of BindBuffer target should be 4"); | 161 "offset of BindBuffer target should be 4"); |
| 162 static_assert(offsetof(BindBuffer, buffer) == 8, | 162 static_assert(offsetof(BindBuffer, buffer) == 8, |
| 163 "offset of BindBuffer buffer should be 8"); | 163 "offset of BindBuffer buffer should be 8"); |
| 164 | 164 |
| 165 struct BindBufferBase { | 165 struct BindBufferBase { |
| 166 typedef BindBufferBase ValueType; | 166 typedef BindBufferBase ValueType; |
| 167 static const CommandId kCmdId = kBindBufferBase; | 167 static const CommandId kCmdId = kBindBufferBase; |
| 168 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 168 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 169 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 169 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 170 | 170 |
| 171 static uint32_t ComputeSize() { | 171 static uint32_t ComputeSize() { |
| 172 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 172 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 173 } | 173 } |
| 174 | 174 |
| 175 void SetHeader() { header.SetCmd<ValueType>(); } | 175 void SetHeader() { header.SetCmd<ValueType>(); } |
| 176 | 176 |
| 177 void Init(GLenum _target, GLuint _index, GLuint _buffer) { | 177 void Init(GLenum _target, GLuint _index, GLuint _buffer) { |
| 178 SetHeader(); | 178 SetHeader(); |
| 179 target = _target; | 179 target = _target; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 200 "offset of BindBufferBase target should be 4"); | 200 "offset of BindBufferBase target should be 4"); |
| 201 static_assert(offsetof(BindBufferBase, index) == 8, | 201 static_assert(offsetof(BindBufferBase, index) == 8, |
| 202 "offset of BindBufferBase index should be 8"); | 202 "offset of BindBufferBase index should be 8"); |
| 203 static_assert(offsetof(BindBufferBase, buffer) == 12, | 203 static_assert(offsetof(BindBufferBase, buffer) == 12, |
| 204 "offset of BindBufferBase buffer should be 12"); | 204 "offset of BindBufferBase buffer should be 12"); |
| 205 | 205 |
| 206 struct BindBufferRange { | 206 struct BindBufferRange { |
| 207 typedef BindBufferRange ValueType; | 207 typedef BindBufferRange ValueType; |
| 208 static const CommandId kCmdId = kBindBufferRange; | 208 static const CommandId kCmdId = kBindBufferRange; |
| 209 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 209 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 210 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 210 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 211 | 211 |
| 212 static uint32_t ComputeSize() { | 212 static uint32_t ComputeSize() { |
| 213 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 213 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 214 } | 214 } |
| 215 | 215 |
| 216 void SetHeader() { header.SetCmd<ValueType>(); } | 216 void SetHeader() { header.SetCmd<ValueType>(); } |
| 217 | 217 |
| 218 void Init(GLenum _target, | 218 void Init(GLenum _target, |
| 219 GLuint _index, | 219 GLuint _index, |
| 220 GLuint _buffer, | 220 GLuint _buffer, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 "offset of BindBufferRange buffer should be 12"); | 259 "offset of BindBufferRange buffer should be 12"); |
| 260 static_assert(offsetof(BindBufferRange, offset) == 16, | 260 static_assert(offsetof(BindBufferRange, offset) == 16, |
| 261 "offset of BindBufferRange offset should be 16"); | 261 "offset of BindBufferRange offset should be 16"); |
| 262 static_assert(offsetof(BindBufferRange, size) == 20, | 262 static_assert(offsetof(BindBufferRange, size) == 20, |
| 263 "offset of BindBufferRange size should be 20"); | 263 "offset of BindBufferRange size should be 20"); |
| 264 | 264 |
| 265 struct BindFramebuffer { | 265 struct BindFramebuffer { |
| 266 typedef BindFramebuffer ValueType; | 266 typedef BindFramebuffer ValueType; |
| 267 static const CommandId kCmdId = kBindFramebuffer; | 267 static const CommandId kCmdId = kBindFramebuffer; |
| 268 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 268 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 269 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 269 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 270 | 270 |
| 271 static uint32_t ComputeSize() { | 271 static uint32_t ComputeSize() { |
| 272 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 272 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 273 } | 273 } |
| 274 | 274 |
| 275 void SetHeader() { header.SetCmd<ValueType>(); } | 275 void SetHeader() { header.SetCmd<ValueType>(); } |
| 276 | 276 |
| 277 void Init(GLenum _target, GLuint _framebuffer) { | 277 void Init(GLenum _target, GLuint _framebuffer) { |
| 278 SetHeader(); | 278 SetHeader(); |
| 279 target = _target; | 279 target = _target; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 296 "offset of BindFramebuffer header should be 0"); | 296 "offset of BindFramebuffer header should be 0"); |
| 297 static_assert(offsetof(BindFramebuffer, target) == 4, | 297 static_assert(offsetof(BindFramebuffer, target) == 4, |
| 298 "offset of BindFramebuffer target should be 4"); | 298 "offset of BindFramebuffer target should be 4"); |
| 299 static_assert(offsetof(BindFramebuffer, framebuffer) == 8, | 299 static_assert(offsetof(BindFramebuffer, framebuffer) == 8, |
| 300 "offset of BindFramebuffer framebuffer should be 8"); | 300 "offset of BindFramebuffer framebuffer should be 8"); |
| 301 | 301 |
| 302 struct BindRenderbuffer { | 302 struct BindRenderbuffer { |
| 303 typedef BindRenderbuffer ValueType; | 303 typedef BindRenderbuffer ValueType; |
| 304 static const CommandId kCmdId = kBindRenderbuffer; | 304 static const CommandId kCmdId = kBindRenderbuffer; |
| 305 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 305 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 306 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 306 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 307 | 307 |
| 308 static uint32_t ComputeSize() { | 308 static uint32_t ComputeSize() { |
| 309 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 309 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 310 } | 310 } |
| 311 | 311 |
| 312 void SetHeader() { header.SetCmd<ValueType>(); } | 312 void SetHeader() { header.SetCmd<ValueType>(); } |
| 313 | 313 |
| 314 void Init(GLenum _target, GLuint _renderbuffer) { | 314 void Init(GLenum _target, GLuint _renderbuffer) { |
| 315 SetHeader(); | 315 SetHeader(); |
| 316 target = _target; | 316 target = _target; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 333 "offset of BindRenderbuffer header should be 0"); | 333 "offset of BindRenderbuffer header should be 0"); |
| 334 static_assert(offsetof(BindRenderbuffer, target) == 4, | 334 static_assert(offsetof(BindRenderbuffer, target) == 4, |
| 335 "offset of BindRenderbuffer target should be 4"); | 335 "offset of BindRenderbuffer target should be 4"); |
| 336 static_assert(offsetof(BindRenderbuffer, renderbuffer) == 8, | 336 static_assert(offsetof(BindRenderbuffer, renderbuffer) == 8, |
| 337 "offset of BindRenderbuffer renderbuffer should be 8"); | 337 "offset of BindRenderbuffer renderbuffer should be 8"); |
| 338 | 338 |
| 339 struct BindSampler { | 339 struct BindSampler { |
| 340 typedef BindSampler ValueType; | 340 typedef BindSampler ValueType; |
| 341 static const CommandId kCmdId = kBindSampler; | 341 static const CommandId kCmdId = kBindSampler; |
| 342 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 342 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 343 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 343 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 344 | 344 |
| 345 static uint32_t ComputeSize() { | 345 static uint32_t ComputeSize() { |
| 346 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 346 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 347 } | 347 } |
| 348 | 348 |
| 349 void SetHeader() { header.SetCmd<ValueType>(); } | 349 void SetHeader() { header.SetCmd<ValueType>(); } |
| 350 | 350 |
| 351 void Init(GLuint _unit, GLuint _sampler) { | 351 void Init(GLuint _unit, GLuint _sampler) { |
| 352 SetHeader(); | 352 SetHeader(); |
| 353 unit = _unit; | 353 unit = _unit; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 369 "offset of BindSampler header should be 0"); | 369 "offset of BindSampler header should be 0"); |
| 370 static_assert(offsetof(BindSampler, unit) == 4, | 370 static_assert(offsetof(BindSampler, unit) == 4, |
| 371 "offset of BindSampler unit should be 4"); | 371 "offset of BindSampler unit should be 4"); |
| 372 static_assert(offsetof(BindSampler, sampler) == 8, | 372 static_assert(offsetof(BindSampler, sampler) == 8, |
| 373 "offset of BindSampler sampler should be 8"); | 373 "offset of BindSampler sampler should be 8"); |
| 374 | 374 |
| 375 struct BindTexture { | 375 struct BindTexture { |
| 376 typedef BindTexture ValueType; | 376 typedef BindTexture ValueType; |
| 377 static const CommandId kCmdId = kBindTexture; | 377 static const CommandId kCmdId = kBindTexture; |
| 378 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 378 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 379 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 379 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 380 | 380 |
| 381 static uint32_t ComputeSize() { | 381 static uint32_t ComputeSize() { |
| 382 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 382 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 383 } | 383 } |
| 384 | 384 |
| 385 void SetHeader() { header.SetCmd<ValueType>(); } | 385 void SetHeader() { header.SetCmd<ValueType>(); } |
| 386 | 386 |
| 387 void Init(GLenum _target, GLuint _texture) { | 387 void Init(GLenum _target, GLuint _texture) { |
| 388 SetHeader(); | 388 SetHeader(); |
| 389 target = _target; | 389 target = _target; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 405 "offset of BindTexture header should be 0"); | 405 "offset of BindTexture header should be 0"); |
| 406 static_assert(offsetof(BindTexture, target) == 4, | 406 static_assert(offsetof(BindTexture, target) == 4, |
| 407 "offset of BindTexture target should be 4"); | 407 "offset of BindTexture target should be 4"); |
| 408 static_assert(offsetof(BindTexture, texture) == 8, | 408 static_assert(offsetof(BindTexture, texture) == 8, |
| 409 "offset of BindTexture texture should be 8"); | 409 "offset of BindTexture texture should be 8"); |
| 410 | 410 |
| 411 struct BindTransformFeedback { | 411 struct BindTransformFeedback { |
| 412 typedef BindTransformFeedback ValueType; | 412 typedef BindTransformFeedback ValueType; |
| 413 static const CommandId kCmdId = kBindTransformFeedback; | 413 static const CommandId kCmdId = kBindTransformFeedback; |
| 414 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 414 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 415 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 415 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 416 | 416 |
| 417 static uint32_t ComputeSize() { | 417 static uint32_t ComputeSize() { |
| 418 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 418 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 419 } | 419 } |
| 420 | 420 |
| 421 void SetHeader() { header.SetCmd<ValueType>(); } | 421 void SetHeader() { header.SetCmd<ValueType>(); } |
| 422 | 422 |
| 423 void Init(GLenum _target, GLuint _transformfeedback) { | 423 void Init(GLenum _target, GLuint _transformfeedback) { |
| 424 SetHeader(); | 424 SetHeader(); |
| 425 target = _target; | 425 target = _target; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 442 "offset of BindTransformFeedback header should be 0"); | 442 "offset of BindTransformFeedback header should be 0"); |
| 443 static_assert(offsetof(BindTransformFeedback, target) == 4, | 443 static_assert(offsetof(BindTransformFeedback, target) == 4, |
| 444 "offset of BindTransformFeedback target should be 4"); | 444 "offset of BindTransformFeedback target should be 4"); |
| 445 static_assert(offsetof(BindTransformFeedback, transformfeedback) == 8, | 445 static_assert(offsetof(BindTransformFeedback, transformfeedback) == 8, |
| 446 "offset of BindTransformFeedback transformfeedback should be 8"); | 446 "offset of BindTransformFeedback transformfeedback should be 8"); |
| 447 | 447 |
| 448 struct BlendColor { | 448 struct BlendColor { |
| 449 typedef BlendColor ValueType; | 449 typedef BlendColor ValueType; |
| 450 static const CommandId kCmdId = kBlendColor; | 450 static const CommandId kCmdId = kBlendColor; |
| 451 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 451 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 452 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 452 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 453 | 453 |
| 454 static uint32_t ComputeSize() { | 454 static uint32_t ComputeSize() { |
| 455 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 455 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 456 } | 456 } |
| 457 | 457 |
| 458 void SetHeader() { header.SetCmd<ValueType>(); } | 458 void SetHeader() { header.SetCmd<ValueType>(); } |
| 459 | 459 |
| 460 void Init(GLclampf _red, GLclampf _green, GLclampf _blue, GLclampf _alpha) { | 460 void Init(GLclampf _red, GLclampf _green, GLclampf _blue, GLclampf _alpha) { |
| 461 SetHeader(); | 461 SetHeader(); |
| 462 red = _red; | 462 red = _red; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 490 "offset of BlendColor green should be 8"); | 490 "offset of BlendColor green should be 8"); |
| 491 static_assert(offsetof(BlendColor, blue) == 12, | 491 static_assert(offsetof(BlendColor, blue) == 12, |
| 492 "offset of BlendColor blue should be 12"); | 492 "offset of BlendColor blue should be 12"); |
| 493 static_assert(offsetof(BlendColor, alpha) == 16, | 493 static_assert(offsetof(BlendColor, alpha) == 16, |
| 494 "offset of BlendColor alpha should be 16"); | 494 "offset of BlendColor alpha should be 16"); |
| 495 | 495 |
| 496 struct BlendEquation { | 496 struct BlendEquation { |
| 497 typedef BlendEquation ValueType; | 497 typedef BlendEquation ValueType; |
| 498 static const CommandId kCmdId = kBlendEquation; | 498 static const CommandId kCmdId = kBlendEquation; |
| 499 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 499 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 500 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 500 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 501 | 501 |
| 502 static uint32_t ComputeSize() { | 502 static uint32_t ComputeSize() { |
| 503 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 503 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 504 } | 504 } |
| 505 | 505 |
| 506 void SetHeader() { header.SetCmd<ValueType>(); } | 506 void SetHeader() { header.SetCmd<ValueType>(); } |
| 507 | 507 |
| 508 void Init(GLenum _mode) { | 508 void Init(GLenum _mode) { |
| 509 SetHeader(); | 509 SetHeader(); |
| 510 mode = _mode; | 510 mode = _mode; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 522 static_assert(sizeof(BlendEquation) == 8, "size of BlendEquation should be 8"); | 522 static_assert(sizeof(BlendEquation) == 8, "size of BlendEquation should be 8"); |
| 523 static_assert(offsetof(BlendEquation, header) == 0, | 523 static_assert(offsetof(BlendEquation, header) == 0, |
| 524 "offset of BlendEquation header should be 0"); | 524 "offset of BlendEquation header should be 0"); |
| 525 static_assert(offsetof(BlendEquation, mode) == 4, | 525 static_assert(offsetof(BlendEquation, mode) == 4, |
| 526 "offset of BlendEquation mode should be 4"); | 526 "offset of BlendEquation mode should be 4"); |
| 527 | 527 |
| 528 struct BlendEquationSeparate { | 528 struct BlendEquationSeparate { |
| 529 typedef BlendEquationSeparate ValueType; | 529 typedef BlendEquationSeparate ValueType; |
| 530 static const CommandId kCmdId = kBlendEquationSeparate; | 530 static const CommandId kCmdId = kBlendEquationSeparate; |
| 531 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 531 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 532 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 532 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 533 | 533 |
| 534 static uint32_t ComputeSize() { | 534 static uint32_t ComputeSize() { |
| 535 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 535 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 536 } | 536 } |
| 537 | 537 |
| 538 void SetHeader() { header.SetCmd<ValueType>(); } | 538 void SetHeader() { header.SetCmd<ValueType>(); } |
| 539 | 539 |
| 540 void Init(GLenum _modeRGB, GLenum _modeAlpha) { | 540 void Init(GLenum _modeRGB, GLenum _modeAlpha) { |
| 541 SetHeader(); | 541 SetHeader(); |
| 542 modeRGB = _modeRGB; | 542 modeRGB = _modeRGB; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 559 "offset of BlendEquationSeparate header should be 0"); | 559 "offset of BlendEquationSeparate header should be 0"); |
| 560 static_assert(offsetof(BlendEquationSeparate, modeRGB) == 4, | 560 static_assert(offsetof(BlendEquationSeparate, modeRGB) == 4, |
| 561 "offset of BlendEquationSeparate modeRGB should be 4"); | 561 "offset of BlendEquationSeparate modeRGB should be 4"); |
| 562 static_assert(offsetof(BlendEquationSeparate, modeAlpha) == 8, | 562 static_assert(offsetof(BlendEquationSeparate, modeAlpha) == 8, |
| 563 "offset of BlendEquationSeparate modeAlpha should be 8"); | 563 "offset of BlendEquationSeparate modeAlpha should be 8"); |
| 564 | 564 |
| 565 struct BlendFunc { | 565 struct BlendFunc { |
| 566 typedef BlendFunc ValueType; | 566 typedef BlendFunc ValueType; |
| 567 static const CommandId kCmdId = kBlendFunc; | 567 static const CommandId kCmdId = kBlendFunc; |
| 568 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 568 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 569 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 569 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 570 | 570 |
| 571 static uint32_t ComputeSize() { | 571 static uint32_t ComputeSize() { |
| 572 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 572 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 573 } | 573 } |
| 574 | 574 |
| 575 void SetHeader() { header.SetCmd<ValueType>(); } | 575 void SetHeader() { header.SetCmd<ValueType>(); } |
| 576 | 576 |
| 577 void Init(GLenum _sfactor, GLenum _dfactor) { | 577 void Init(GLenum _sfactor, GLenum _dfactor) { |
| 578 SetHeader(); | 578 SetHeader(); |
| 579 sfactor = _sfactor; | 579 sfactor = _sfactor; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 595 "offset of BlendFunc header should be 0"); | 595 "offset of BlendFunc header should be 0"); |
| 596 static_assert(offsetof(BlendFunc, sfactor) == 4, | 596 static_assert(offsetof(BlendFunc, sfactor) == 4, |
| 597 "offset of BlendFunc sfactor should be 4"); | 597 "offset of BlendFunc sfactor should be 4"); |
| 598 static_assert(offsetof(BlendFunc, dfactor) == 8, | 598 static_assert(offsetof(BlendFunc, dfactor) == 8, |
| 599 "offset of BlendFunc dfactor should be 8"); | 599 "offset of BlendFunc dfactor should be 8"); |
| 600 | 600 |
| 601 struct BlendFuncSeparate { | 601 struct BlendFuncSeparate { |
| 602 typedef BlendFuncSeparate ValueType; | 602 typedef BlendFuncSeparate ValueType; |
| 603 static const CommandId kCmdId = kBlendFuncSeparate; | 603 static const CommandId kCmdId = kBlendFuncSeparate; |
| 604 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 604 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 605 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 605 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 606 | 606 |
| 607 static uint32_t ComputeSize() { | 607 static uint32_t ComputeSize() { |
| 608 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 608 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 609 } | 609 } |
| 610 | 610 |
| 611 void SetHeader() { header.SetCmd<ValueType>(); } | 611 void SetHeader() { header.SetCmd<ValueType>(); } |
| 612 | 612 |
| 613 void Init(GLenum _srcRGB, | 613 void Init(GLenum _srcRGB, |
| 614 GLenum _dstRGB, | 614 GLenum _dstRGB, |
| 615 GLenum _srcAlpha, | 615 GLenum _srcAlpha, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 "offset of BlendFuncSeparate dstRGB should be 8"); | 647 "offset of BlendFuncSeparate dstRGB should be 8"); |
| 648 static_assert(offsetof(BlendFuncSeparate, srcAlpha) == 12, | 648 static_assert(offsetof(BlendFuncSeparate, srcAlpha) == 12, |
| 649 "offset of BlendFuncSeparate srcAlpha should be 12"); | 649 "offset of BlendFuncSeparate srcAlpha should be 12"); |
| 650 static_assert(offsetof(BlendFuncSeparate, dstAlpha) == 16, | 650 static_assert(offsetof(BlendFuncSeparate, dstAlpha) == 16, |
| 651 "offset of BlendFuncSeparate dstAlpha should be 16"); | 651 "offset of BlendFuncSeparate dstAlpha should be 16"); |
| 652 | 652 |
| 653 struct BufferData { | 653 struct BufferData { |
| 654 typedef BufferData ValueType; | 654 typedef BufferData ValueType; |
| 655 static const CommandId kCmdId = kBufferData; | 655 static const CommandId kCmdId = kBufferData; |
| 656 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 656 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 657 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 657 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 658 | 658 |
| 659 static uint32_t ComputeSize() { | 659 static uint32_t ComputeSize() { |
| 660 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 660 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 661 } | 661 } |
| 662 | 662 |
| 663 void SetHeader() { header.SetCmd<ValueType>(); } | 663 void SetHeader() { header.SetCmd<ValueType>(); } |
| 664 | 664 |
| 665 void Init(GLenum _target, | 665 void Init(GLenum _target, |
| 666 GLsizeiptr _size, | 666 GLsizeiptr _size, |
| 667 uint32_t _data_shm_id, | 667 uint32_t _data_shm_id, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 "offset of BufferData data_shm_id should be 12"); | 705 "offset of BufferData data_shm_id should be 12"); |
| 706 static_assert(offsetof(BufferData, data_shm_offset) == 16, | 706 static_assert(offsetof(BufferData, data_shm_offset) == 16, |
| 707 "offset of BufferData data_shm_offset should be 16"); | 707 "offset of BufferData data_shm_offset should be 16"); |
| 708 static_assert(offsetof(BufferData, usage) == 20, | 708 static_assert(offsetof(BufferData, usage) == 20, |
| 709 "offset of BufferData usage should be 20"); | 709 "offset of BufferData usage should be 20"); |
| 710 | 710 |
| 711 struct BufferSubData { | 711 struct BufferSubData { |
| 712 typedef BufferSubData ValueType; | 712 typedef BufferSubData ValueType; |
| 713 static const CommandId kCmdId = kBufferSubData; | 713 static const CommandId kCmdId = kBufferSubData; |
| 714 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 714 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 715 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 715 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 716 | 716 |
| 717 static uint32_t ComputeSize() { | 717 static uint32_t ComputeSize() { |
| 718 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 718 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 719 } | 719 } |
| 720 | 720 |
| 721 void SetHeader() { header.SetCmd<ValueType>(); } | 721 void SetHeader() { header.SetCmd<ValueType>(); } |
| 722 | 722 |
| 723 void Init(GLenum _target, | 723 void Init(GLenum _target, |
| 724 GLintptr _offset, | 724 GLintptr _offset, |
| 725 GLsizeiptr _size, | 725 GLsizeiptr _size, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 "offset of BufferSubData size should be 12"); | 764 "offset of BufferSubData size should be 12"); |
| 765 static_assert(offsetof(BufferSubData, data_shm_id) == 16, | 765 static_assert(offsetof(BufferSubData, data_shm_id) == 16, |
| 766 "offset of BufferSubData data_shm_id should be 16"); | 766 "offset of BufferSubData data_shm_id should be 16"); |
| 767 static_assert(offsetof(BufferSubData, data_shm_offset) == 20, | 767 static_assert(offsetof(BufferSubData, data_shm_offset) == 20, |
| 768 "offset of BufferSubData data_shm_offset should be 20"); | 768 "offset of BufferSubData data_shm_offset should be 20"); |
| 769 | 769 |
| 770 struct CheckFramebufferStatus { | 770 struct CheckFramebufferStatus { |
| 771 typedef CheckFramebufferStatus ValueType; | 771 typedef CheckFramebufferStatus ValueType; |
| 772 static const CommandId kCmdId = kCheckFramebufferStatus; | 772 static const CommandId kCmdId = kCheckFramebufferStatus; |
| 773 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 773 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 774 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 774 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 775 | 775 |
| 776 typedef GLenum Result; | 776 typedef GLenum Result; |
| 777 | 777 |
| 778 static uint32_t ComputeSize() { | 778 static uint32_t ComputeSize() { |
| 779 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 779 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 780 } | 780 } |
| 781 | 781 |
| 782 void SetHeader() { header.SetCmd<ValueType>(); } | 782 void SetHeader() { header.SetCmd<ValueType>(); } |
| 783 | 783 |
| 784 void Init(GLenum _target, | 784 void Init(GLenum _target, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 814 static_assert(offsetof(CheckFramebufferStatus, result_shm_id) == 8, | 814 static_assert(offsetof(CheckFramebufferStatus, result_shm_id) == 8, |
| 815 "offset of CheckFramebufferStatus result_shm_id should be 8"); | 815 "offset of CheckFramebufferStatus result_shm_id should be 8"); |
| 816 static_assert( | 816 static_assert( |
| 817 offsetof(CheckFramebufferStatus, result_shm_offset) == 12, | 817 offsetof(CheckFramebufferStatus, result_shm_offset) == 12, |
| 818 "offset of CheckFramebufferStatus result_shm_offset should be 12"); | 818 "offset of CheckFramebufferStatus result_shm_offset should be 12"); |
| 819 | 819 |
| 820 struct Clear { | 820 struct Clear { |
| 821 typedef Clear ValueType; | 821 typedef Clear ValueType; |
| 822 static const CommandId kCmdId = kClear; | 822 static const CommandId kCmdId = kClear; |
| 823 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 823 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 824 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 824 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 825 | 825 |
| 826 static uint32_t ComputeSize() { | 826 static uint32_t ComputeSize() { |
| 827 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 827 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 828 } | 828 } |
| 829 | 829 |
| 830 void SetHeader() { header.SetCmd<ValueType>(); } | 830 void SetHeader() { header.SetCmd<ValueType>(); } |
| 831 | 831 |
| 832 void Init(GLbitfield _mask) { | 832 void Init(GLbitfield _mask) { |
| 833 SetHeader(); | 833 SetHeader(); |
| 834 mask = _mask; | 834 mask = _mask; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 845 | 845 |
| 846 static_assert(sizeof(Clear) == 8, "size of Clear should be 8"); | 846 static_assert(sizeof(Clear) == 8, "size of Clear should be 8"); |
| 847 static_assert(offsetof(Clear, header) == 0, | 847 static_assert(offsetof(Clear, header) == 0, |
| 848 "offset of Clear header should be 0"); | 848 "offset of Clear header should be 0"); |
| 849 static_assert(offsetof(Clear, mask) == 4, "offset of Clear mask should be 4"); | 849 static_assert(offsetof(Clear, mask) == 4, "offset of Clear mask should be 4"); |
| 850 | 850 |
| 851 struct ClearBufferfi { | 851 struct ClearBufferfi { |
| 852 typedef ClearBufferfi ValueType; | 852 typedef ClearBufferfi ValueType; |
| 853 static const CommandId kCmdId = kClearBufferfi; | 853 static const CommandId kCmdId = kClearBufferfi; |
| 854 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 854 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 855 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 855 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 856 | 856 |
| 857 static uint32_t ComputeSize() { | 857 static uint32_t ComputeSize() { |
| 858 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 858 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 859 } | 859 } |
| 860 | 860 |
| 861 void SetHeader() { header.SetCmd<ValueType>(); } | 861 void SetHeader() { header.SetCmd<ValueType>(); } |
| 862 | 862 |
| 863 void Init(GLenum _buffer, | 863 void Init(GLenum _buffer, |
| 864 GLint _drawbuffers, | 864 GLint _drawbuffers, |
| 865 GLfloat _depth, | 865 GLfloat _depth, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 "offset of ClearBufferfi drawbuffers should be 8"); | 897 "offset of ClearBufferfi drawbuffers should be 8"); |
| 898 static_assert(offsetof(ClearBufferfi, depth) == 12, | 898 static_assert(offsetof(ClearBufferfi, depth) == 12, |
| 899 "offset of ClearBufferfi depth should be 12"); | 899 "offset of ClearBufferfi depth should be 12"); |
| 900 static_assert(offsetof(ClearBufferfi, stencil) == 16, | 900 static_assert(offsetof(ClearBufferfi, stencil) == 16, |
| 901 "offset of ClearBufferfi stencil should be 16"); | 901 "offset of ClearBufferfi stencil should be 16"); |
| 902 | 902 |
| 903 struct ClearBufferfvImmediate { | 903 struct ClearBufferfvImmediate { |
| 904 typedef ClearBufferfvImmediate ValueType; | 904 typedef ClearBufferfvImmediate ValueType; |
| 905 static const CommandId kCmdId = kClearBufferfvImmediate; | 905 static const CommandId kCmdId = kClearBufferfvImmediate; |
| 906 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 906 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 907 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 907 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 908 | 908 |
| 909 static uint32_t ComputeDataSize() { | 909 static uint32_t ComputeDataSize() { |
| 910 return static_cast<uint32_t>(sizeof(GLfloat) * 4); | 910 return static_cast<uint32_t>(sizeof(GLfloat) * 4); |
| 911 } | 911 } |
| 912 | 912 |
| 913 static uint32_t ComputeEffectiveDataSize(GLenum buffer) { | 913 static uint32_t ComputeEffectiveDataSize(GLenum buffer) { |
| 914 return static_cast<uint32_t>(sizeof(GLfloat) * | 914 return static_cast<uint32_t>(sizeof(GLfloat) * |
| 915 GLES2Util::CalcClearBufferfvDataCount(buffer)); | 915 GLES2Util::CalcClearBufferfvDataCount(buffer)); |
| 916 } | 916 } |
| 917 | 917 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 "offset of ClearBufferfvImmediate header should be 0"); | 953 "offset of ClearBufferfvImmediate header should be 0"); |
| 954 static_assert(offsetof(ClearBufferfvImmediate, buffer) == 4, | 954 static_assert(offsetof(ClearBufferfvImmediate, buffer) == 4, |
| 955 "offset of ClearBufferfvImmediate buffer should be 4"); | 955 "offset of ClearBufferfvImmediate buffer should be 4"); |
| 956 static_assert(offsetof(ClearBufferfvImmediate, drawbuffers) == 8, | 956 static_assert(offsetof(ClearBufferfvImmediate, drawbuffers) == 8, |
| 957 "offset of ClearBufferfvImmediate drawbuffers should be 8"); | 957 "offset of ClearBufferfvImmediate drawbuffers should be 8"); |
| 958 | 958 |
| 959 struct ClearBufferivImmediate { | 959 struct ClearBufferivImmediate { |
| 960 typedef ClearBufferivImmediate ValueType; | 960 typedef ClearBufferivImmediate ValueType; |
| 961 static const CommandId kCmdId = kClearBufferivImmediate; | 961 static const CommandId kCmdId = kClearBufferivImmediate; |
| 962 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 962 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 963 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 963 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 964 | 964 |
| 965 static uint32_t ComputeDataSize() { | 965 static uint32_t ComputeDataSize() { |
| 966 return static_cast<uint32_t>(sizeof(GLint) * 4); | 966 return static_cast<uint32_t>(sizeof(GLint) * 4); |
| 967 } | 967 } |
| 968 | 968 |
| 969 static uint32_t ComputeEffectiveDataSize(GLenum buffer) { | 969 static uint32_t ComputeEffectiveDataSize(GLenum buffer) { |
| 970 return static_cast<uint32_t>(sizeof(GLint) * | 970 return static_cast<uint32_t>(sizeof(GLint) * |
| 971 GLES2Util::CalcClearBufferivDataCount(buffer)); | 971 GLES2Util::CalcClearBufferivDataCount(buffer)); |
| 972 } | 972 } |
| 973 | 973 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 "offset of ClearBufferivImmediate header should be 0"); | 1009 "offset of ClearBufferivImmediate header should be 0"); |
| 1010 static_assert(offsetof(ClearBufferivImmediate, buffer) == 4, | 1010 static_assert(offsetof(ClearBufferivImmediate, buffer) == 4, |
| 1011 "offset of ClearBufferivImmediate buffer should be 4"); | 1011 "offset of ClearBufferivImmediate buffer should be 4"); |
| 1012 static_assert(offsetof(ClearBufferivImmediate, drawbuffers) == 8, | 1012 static_assert(offsetof(ClearBufferivImmediate, drawbuffers) == 8, |
| 1013 "offset of ClearBufferivImmediate drawbuffers should be 8"); | 1013 "offset of ClearBufferivImmediate drawbuffers should be 8"); |
| 1014 | 1014 |
| 1015 struct ClearBufferuivImmediate { | 1015 struct ClearBufferuivImmediate { |
| 1016 typedef ClearBufferuivImmediate ValueType; | 1016 typedef ClearBufferuivImmediate ValueType; |
| 1017 static const CommandId kCmdId = kClearBufferuivImmediate; | 1017 static const CommandId kCmdId = kClearBufferuivImmediate; |
| 1018 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 1018 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 1019 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 1019 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 1020 | 1020 |
| 1021 static uint32_t ComputeDataSize() { | 1021 static uint32_t ComputeDataSize() { |
| 1022 return static_cast<uint32_t>(sizeof(GLuint) * 4); | 1022 return static_cast<uint32_t>(sizeof(GLuint) * 4); |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 static uint32_t ComputeSize() { | 1025 static uint32_t ComputeSize() { |
| 1026 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 1026 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 1029 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1055 "offset of ClearBufferuivImmediate header should be 0"); | 1055 "offset of ClearBufferuivImmediate header should be 0"); |
| 1056 static_assert(offsetof(ClearBufferuivImmediate, buffer) == 4, | 1056 static_assert(offsetof(ClearBufferuivImmediate, buffer) == 4, |
| 1057 "offset of ClearBufferuivImmediate buffer should be 4"); | 1057 "offset of ClearBufferuivImmediate buffer should be 4"); |
| 1058 static_assert(offsetof(ClearBufferuivImmediate, drawbuffers) == 8, | 1058 static_assert(offsetof(ClearBufferuivImmediate, drawbuffers) == 8, |
| 1059 "offset of ClearBufferuivImmediate drawbuffers should be 8"); | 1059 "offset of ClearBufferuivImmediate drawbuffers should be 8"); |
| 1060 | 1060 |
| 1061 struct ClearColor { | 1061 struct ClearColor { |
| 1062 typedef ClearColor ValueType; | 1062 typedef ClearColor ValueType; |
| 1063 static const CommandId kCmdId = kClearColor; | 1063 static const CommandId kCmdId = kClearColor; |
| 1064 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1064 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1065 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 1065 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 1066 | 1066 |
| 1067 static uint32_t ComputeSize() { | 1067 static uint32_t ComputeSize() { |
| 1068 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1068 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 void SetHeader() { header.SetCmd<ValueType>(); } | 1071 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1072 | 1072 |
| 1073 void Init(GLclampf _red, GLclampf _green, GLclampf _blue, GLclampf _alpha) { | 1073 void Init(GLclampf _red, GLclampf _green, GLclampf _blue, GLclampf _alpha) { |
| 1074 SetHeader(); | 1074 SetHeader(); |
| 1075 red = _red; | 1075 red = _red; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1103 "offset of ClearColor green should be 8"); | 1103 "offset of ClearColor green should be 8"); |
| 1104 static_assert(offsetof(ClearColor, blue) == 12, | 1104 static_assert(offsetof(ClearColor, blue) == 12, |
| 1105 "offset of ClearColor blue should be 12"); | 1105 "offset of ClearColor blue should be 12"); |
| 1106 static_assert(offsetof(ClearColor, alpha) == 16, | 1106 static_assert(offsetof(ClearColor, alpha) == 16, |
| 1107 "offset of ClearColor alpha should be 16"); | 1107 "offset of ClearColor alpha should be 16"); |
| 1108 | 1108 |
| 1109 struct ClearDepthf { | 1109 struct ClearDepthf { |
| 1110 typedef ClearDepthf ValueType; | 1110 typedef ClearDepthf ValueType; |
| 1111 static const CommandId kCmdId = kClearDepthf; | 1111 static const CommandId kCmdId = kClearDepthf; |
| 1112 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1112 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1113 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 1113 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 1114 | 1114 |
| 1115 static uint32_t ComputeSize() { | 1115 static uint32_t ComputeSize() { |
| 1116 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1116 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1117 } | 1117 } |
| 1118 | 1118 |
| 1119 void SetHeader() { header.SetCmd<ValueType>(); } | 1119 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1120 | 1120 |
| 1121 void Init(GLclampf _depth) { | 1121 void Init(GLclampf _depth) { |
| 1122 SetHeader(); | 1122 SetHeader(); |
| 1123 depth = _depth; | 1123 depth = _depth; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1135 static_assert(sizeof(ClearDepthf) == 8, "size of ClearDepthf should be 8"); | 1135 static_assert(sizeof(ClearDepthf) == 8, "size of ClearDepthf should be 8"); |
| 1136 static_assert(offsetof(ClearDepthf, header) == 0, | 1136 static_assert(offsetof(ClearDepthf, header) == 0, |
| 1137 "offset of ClearDepthf header should be 0"); | 1137 "offset of ClearDepthf header should be 0"); |
| 1138 static_assert(offsetof(ClearDepthf, depth) == 4, | 1138 static_assert(offsetof(ClearDepthf, depth) == 4, |
| 1139 "offset of ClearDepthf depth should be 4"); | 1139 "offset of ClearDepthf depth should be 4"); |
| 1140 | 1140 |
| 1141 struct ClearStencil { | 1141 struct ClearStencil { |
| 1142 typedef ClearStencil ValueType; | 1142 typedef ClearStencil ValueType; |
| 1143 static const CommandId kCmdId = kClearStencil; | 1143 static const CommandId kCmdId = kClearStencil; |
| 1144 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1144 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1145 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 1145 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 1146 | 1146 |
| 1147 static uint32_t ComputeSize() { | 1147 static uint32_t ComputeSize() { |
| 1148 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1148 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 void SetHeader() { header.SetCmd<ValueType>(); } | 1151 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1152 | 1152 |
| 1153 void Init(GLint _s) { | 1153 void Init(GLint _s) { |
| 1154 SetHeader(); | 1154 SetHeader(); |
| 1155 s = _s; | 1155 s = _s; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1167 static_assert(sizeof(ClearStencil) == 8, "size of ClearStencil should be 8"); | 1167 static_assert(sizeof(ClearStencil) == 8, "size of ClearStencil should be 8"); |
| 1168 static_assert(offsetof(ClearStencil, header) == 0, | 1168 static_assert(offsetof(ClearStencil, header) == 0, |
| 1169 "offset of ClearStencil header should be 0"); | 1169 "offset of ClearStencil header should be 0"); |
| 1170 static_assert(offsetof(ClearStencil, s) == 4, | 1170 static_assert(offsetof(ClearStencil, s) == 4, |
| 1171 "offset of ClearStencil s should be 4"); | 1171 "offset of ClearStencil s should be 4"); |
| 1172 | 1172 |
| 1173 struct ClientWaitSync { | 1173 struct ClientWaitSync { |
| 1174 typedef ClientWaitSync ValueType; | 1174 typedef ClientWaitSync ValueType; |
| 1175 static const CommandId kCmdId = kClientWaitSync; | 1175 static const CommandId kCmdId = kClientWaitSync; |
| 1176 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1176 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1177 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 1177 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 1178 | 1178 |
| 1179 typedef GLenum Result; | 1179 typedef GLenum Result; |
| 1180 | 1180 |
| 1181 static uint32_t ComputeSize() { | 1181 static uint32_t ComputeSize() { |
| 1182 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1182 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1183 } | 1183 } |
| 1184 | 1184 |
| 1185 void SetHeader() { header.SetCmd<ValueType>(); } | 1185 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1186 | 1186 |
| 1187 void Init(GLuint _sync, | 1187 void Init(GLuint _sync, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 "offset of ClientWaitSync timeout_1 should be 16"); | 1237 "offset of ClientWaitSync timeout_1 should be 16"); |
| 1238 static_assert(offsetof(ClientWaitSync, result_shm_id) == 20, | 1238 static_assert(offsetof(ClientWaitSync, result_shm_id) == 20, |
| 1239 "offset of ClientWaitSync result_shm_id should be 20"); | 1239 "offset of ClientWaitSync result_shm_id should be 20"); |
| 1240 static_assert(offsetof(ClientWaitSync, result_shm_offset) == 24, | 1240 static_assert(offsetof(ClientWaitSync, result_shm_offset) == 24, |
| 1241 "offset of ClientWaitSync result_shm_offset should be 24"); | 1241 "offset of ClientWaitSync result_shm_offset should be 24"); |
| 1242 | 1242 |
| 1243 struct ColorMask { | 1243 struct ColorMask { |
| 1244 typedef ColorMask ValueType; | 1244 typedef ColorMask ValueType; |
| 1245 static const CommandId kCmdId = kColorMask; | 1245 static const CommandId kCmdId = kColorMask; |
| 1246 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1246 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1247 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 1247 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 1248 | 1248 |
| 1249 static uint32_t ComputeSize() { | 1249 static uint32_t ComputeSize() { |
| 1250 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1250 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1251 } | 1251 } |
| 1252 | 1252 |
| 1253 void SetHeader() { header.SetCmd<ValueType>(); } | 1253 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1254 | 1254 |
| 1255 void Init(GLboolean _red, | 1255 void Init(GLboolean _red, |
| 1256 GLboolean _green, | 1256 GLboolean _green, |
| 1257 GLboolean _blue, | 1257 GLboolean _blue, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1288 "offset of ColorMask green should be 8"); | 1288 "offset of ColorMask green should be 8"); |
| 1289 static_assert(offsetof(ColorMask, blue) == 12, | 1289 static_assert(offsetof(ColorMask, blue) == 12, |
| 1290 "offset of ColorMask blue should be 12"); | 1290 "offset of ColorMask blue should be 12"); |
| 1291 static_assert(offsetof(ColorMask, alpha) == 16, | 1291 static_assert(offsetof(ColorMask, alpha) == 16, |
| 1292 "offset of ColorMask alpha should be 16"); | 1292 "offset of ColorMask alpha should be 16"); |
| 1293 | 1293 |
| 1294 struct CompileShader { | 1294 struct CompileShader { |
| 1295 typedef CompileShader ValueType; | 1295 typedef CompileShader ValueType; |
| 1296 static const CommandId kCmdId = kCompileShader; | 1296 static const CommandId kCmdId = kCompileShader; |
| 1297 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1297 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1298 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 1298 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 1299 | 1299 |
| 1300 static uint32_t ComputeSize() { | 1300 static uint32_t ComputeSize() { |
| 1301 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1301 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 void SetHeader() { header.SetCmd<ValueType>(); } | 1304 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1305 | 1305 |
| 1306 void Init(GLuint _shader) { | 1306 void Init(GLuint _shader) { |
| 1307 SetHeader(); | 1307 SetHeader(); |
| 1308 shader = _shader; | 1308 shader = _shader; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1320 static_assert(sizeof(CompileShader) == 8, "size of CompileShader should be 8"); | 1320 static_assert(sizeof(CompileShader) == 8, "size of CompileShader should be 8"); |
| 1321 static_assert(offsetof(CompileShader, header) == 0, | 1321 static_assert(offsetof(CompileShader, header) == 0, |
| 1322 "offset of CompileShader header should be 0"); | 1322 "offset of CompileShader header should be 0"); |
| 1323 static_assert(offsetof(CompileShader, shader) == 4, | 1323 static_assert(offsetof(CompileShader, shader) == 4, |
| 1324 "offset of CompileShader shader should be 4"); | 1324 "offset of CompileShader shader should be 4"); |
| 1325 | 1325 |
| 1326 struct CompressedTexImage2DBucket { | 1326 struct CompressedTexImage2DBucket { |
| 1327 typedef CompressedTexImage2DBucket ValueType; | 1327 typedef CompressedTexImage2DBucket ValueType; |
| 1328 static const CommandId kCmdId = kCompressedTexImage2DBucket; | 1328 static const CommandId kCmdId = kCompressedTexImage2DBucket; |
| 1329 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1329 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1330 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 1330 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 1331 | 1331 |
| 1332 static uint32_t ComputeSize() { | 1332 static uint32_t ComputeSize() { |
| 1333 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1333 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1334 } | 1334 } |
| 1335 | 1335 |
| 1336 void SetHeader() { header.SetCmd<ValueType>(); } | 1336 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1337 | 1337 |
| 1338 void Init(GLenum _target, | 1338 void Init(GLenum _target, |
| 1339 GLint _level, | 1339 GLint _level, |
| 1340 GLenum _internalformat, | 1340 GLenum _internalformat, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1387 "offset of CompressedTexImage2DBucket width should be 16"); | 1387 "offset of CompressedTexImage2DBucket width should be 16"); |
| 1388 static_assert(offsetof(CompressedTexImage2DBucket, height) == 20, | 1388 static_assert(offsetof(CompressedTexImage2DBucket, height) == 20, |
| 1389 "offset of CompressedTexImage2DBucket height should be 20"); | 1389 "offset of CompressedTexImage2DBucket height should be 20"); |
| 1390 static_assert(offsetof(CompressedTexImage2DBucket, bucket_id) == 24, | 1390 static_assert(offsetof(CompressedTexImage2DBucket, bucket_id) == 24, |
| 1391 "offset of CompressedTexImage2DBucket bucket_id should be 24"); | 1391 "offset of CompressedTexImage2DBucket bucket_id should be 24"); |
| 1392 | 1392 |
| 1393 struct CompressedTexImage2D { | 1393 struct CompressedTexImage2D { |
| 1394 typedef CompressedTexImage2D ValueType; | 1394 typedef CompressedTexImage2D ValueType; |
| 1395 static const CommandId kCmdId = kCompressedTexImage2D; | 1395 static const CommandId kCmdId = kCompressedTexImage2D; |
| 1396 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1396 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1397 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 1397 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 1398 | 1398 |
| 1399 static uint32_t ComputeSize() { | 1399 static uint32_t ComputeSize() { |
| 1400 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1400 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1401 } | 1401 } |
| 1402 | 1402 |
| 1403 void SetHeader() { header.SetCmd<ValueType>(); } | 1403 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1404 | 1404 |
| 1405 void Init(GLenum _target, | 1405 void Init(GLenum _target, |
| 1406 GLint _level, | 1406 GLint _level, |
| 1407 GLenum _internalformat, | 1407 GLenum _internalformat, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1466 "offset of CompressedTexImage2D imageSize should be 24"); | 1466 "offset of CompressedTexImage2D imageSize should be 24"); |
| 1467 static_assert(offsetof(CompressedTexImage2D, data_shm_id) == 28, | 1467 static_assert(offsetof(CompressedTexImage2D, data_shm_id) == 28, |
| 1468 "offset of CompressedTexImage2D data_shm_id should be 28"); | 1468 "offset of CompressedTexImage2D data_shm_id should be 28"); |
| 1469 static_assert(offsetof(CompressedTexImage2D, data_shm_offset) == 32, | 1469 static_assert(offsetof(CompressedTexImage2D, data_shm_offset) == 32, |
| 1470 "offset of CompressedTexImage2D data_shm_offset should be 32"); | 1470 "offset of CompressedTexImage2D data_shm_offset should be 32"); |
| 1471 | 1471 |
| 1472 struct CompressedTexSubImage2DBucket { | 1472 struct CompressedTexSubImage2DBucket { |
| 1473 typedef CompressedTexSubImage2DBucket ValueType; | 1473 typedef CompressedTexSubImage2DBucket ValueType; |
| 1474 static const CommandId kCmdId = kCompressedTexSubImage2DBucket; | 1474 static const CommandId kCmdId = kCompressedTexSubImage2DBucket; |
| 1475 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1475 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1476 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 1476 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 1477 | 1477 |
| 1478 static uint32_t ComputeSize() { | 1478 static uint32_t ComputeSize() { |
| 1479 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1479 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1480 } | 1480 } |
| 1481 | 1481 |
| 1482 void SetHeader() { header.SetCmd<ValueType>(); } | 1482 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1483 | 1483 |
| 1484 void Init(GLenum _target, | 1484 void Init(GLenum _target, |
| 1485 GLint _level, | 1485 GLint _level, |
| 1486 GLint _xoffset, | 1486 GLint _xoffset, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1543 "offset of CompressedTexSubImage2DBucket height should be 24"); | 1543 "offset of CompressedTexSubImage2DBucket height should be 24"); |
| 1544 static_assert(offsetof(CompressedTexSubImage2DBucket, format) == 28, | 1544 static_assert(offsetof(CompressedTexSubImage2DBucket, format) == 28, |
| 1545 "offset of CompressedTexSubImage2DBucket format should be 28"); | 1545 "offset of CompressedTexSubImage2DBucket format should be 28"); |
| 1546 static_assert(offsetof(CompressedTexSubImage2DBucket, bucket_id) == 32, | 1546 static_assert(offsetof(CompressedTexSubImage2DBucket, bucket_id) == 32, |
| 1547 "offset of CompressedTexSubImage2DBucket bucket_id should be 32"); | 1547 "offset of CompressedTexSubImage2DBucket bucket_id should be 32"); |
| 1548 | 1548 |
| 1549 struct CompressedTexSubImage2D { | 1549 struct CompressedTexSubImage2D { |
| 1550 typedef CompressedTexSubImage2D ValueType; | 1550 typedef CompressedTexSubImage2D ValueType; |
| 1551 static const CommandId kCmdId = kCompressedTexSubImage2D; | 1551 static const CommandId kCmdId = kCompressedTexSubImage2D; |
| 1552 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1552 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1553 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 1553 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 1554 | 1554 |
| 1555 static uint32_t ComputeSize() { | 1555 static uint32_t ComputeSize() { |
| 1556 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1556 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1557 } | 1557 } |
| 1558 | 1558 |
| 1559 void SetHeader() { header.SetCmd<ValueType>(); } | 1559 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1560 | 1560 |
| 1561 void Init(GLenum _target, | 1561 void Init(GLenum _target, |
| 1562 GLint _level, | 1562 GLint _level, |
| 1563 GLint _xoffset, | 1563 GLint _xoffset, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1633 "offset of CompressedTexSubImage2D imageSize should be 32"); | 1633 "offset of CompressedTexSubImage2D imageSize should be 32"); |
| 1634 static_assert(offsetof(CompressedTexSubImage2D, data_shm_id) == 36, | 1634 static_assert(offsetof(CompressedTexSubImage2D, data_shm_id) == 36, |
| 1635 "offset of CompressedTexSubImage2D data_shm_id should be 36"); | 1635 "offset of CompressedTexSubImage2D data_shm_id should be 36"); |
| 1636 static_assert(offsetof(CompressedTexSubImage2D, data_shm_offset) == 40, | 1636 static_assert(offsetof(CompressedTexSubImage2D, data_shm_offset) == 40, |
| 1637 "offset of CompressedTexSubImage2D data_shm_offset should be 40"); | 1637 "offset of CompressedTexSubImage2D data_shm_offset should be 40"); |
| 1638 | 1638 |
| 1639 struct CompressedTexImage3DBucket { | 1639 struct CompressedTexImage3DBucket { |
| 1640 typedef CompressedTexImage3DBucket ValueType; | 1640 typedef CompressedTexImage3DBucket ValueType; |
| 1641 static const CommandId kCmdId = kCompressedTexImage3DBucket; | 1641 static const CommandId kCmdId = kCompressedTexImage3DBucket; |
| 1642 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1642 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1643 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 1643 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 1644 | 1644 |
| 1645 static uint32_t ComputeSize() { | 1645 static uint32_t ComputeSize() { |
| 1646 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1646 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1647 } | 1647 } |
| 1648 | 1648 |
| 1649 void SetHeader() { header.SetCmd<ValueType>(); } | 1649 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1650 | 1650 |
| 1651 void Init(GLenum _target, | 1651 void Init(GLenum _target, |
| 1652 GLint _level, | 1652 GLint _level, |
| 1653 GLenum _internalformat, | 1653 GLenum _internalformat, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1706 "offset of CompressedTexImage3DBucket height should be 20"); | 1706 "offset of CompressedTexImage3DBucket height should be 20"); |
| 1707 static_assert(offsetof(CompressedTexImage3DBucket, depth) == 24, | 1707 static_assert(offsetof(CompressedTexImage3DBucket, depth) == 24, |
| 1708 "offset of CompressedTexImage3DBucket depth should be 24"); | 1708 "offset of CompressedTexImage3DBucket depth should be 24"); |
| 1709 static_assert(offsetof(CompressedTexImage3DBucket, bucket_id) == 28, | 1709 static_assert(offsetof(CompressedTexImage3DBucket, bucket_id) == 28, |
| 1710 "offset of CompressedTexImage3DBucket bucket_id should be 28"); | 1710 "offset of CompressedTexImage3DBucket bucket_id should be 28"); |
| 1711 | 1711 |
| 1712 struct CompressedTexImage3D { | 1712 struct CompressedTexImage3D { |
| 1713 typedef CompressedTexImage3D ValueType; | 1713 typedef CompressedTexImage3D ValueType; |
| 1714 static const CommandId kCmdId = kCompressedTexImage3D; | 1714 static const CommandId kCmdId = kCompressedTexImage3D; |
| 1715 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1715 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1716 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 1716 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 1717 | 1717 |
| 1718 static uint32_t ComputeSize() { | 1718 static uint32_t ComputeSize() { |
| 1719 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1719 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1720 } | 1720 } |
| 1721 | 1721 |
| 1722 void SetHeader() { header.SetCmd<ValueType>(); } | 1722 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1723 | 1723 |
| 1724 void Init(GLenum _target, | 1724 void Init(GLenum _target, |
| 1725 GLint _level, | 1725 GLint _level, |
| 1726 GLenum _internalformat, | 1726 GLenum _internalformat, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1791 "offset of CompressedTexImage3D imageSize should be 28"); | 1791 "offset of CompressedTexImage3D imageSize should be 28"); |
| 1792 static_assert(offsetof(CompressedTexImage3D, data_shm_id) == 32, | 1792 static_assert(offsetof(CompressedTexImage3D, data_shm_id) == 32, |
| 1793 "offset of CompressedTexImage3D data_shm_id should be 32"); | 1793 "offset of CompressedTexImage3D data_shm_id should be 32"); |
| 1794 static_assert(offsetof(CompressedTexImage3D, data_shm_offset) == 36, | 1794 static_assert(offsetof(CompressedTexImage3D, data_shm_offset) == 36, |
| 1795 "offset of CompressedTexImage3D data_shm_offset should be 36"); | 1795 "offset of CompressedTexImage3D data_shm_offset should be 36"); |
| 1796 | 1796 |
| 1797 struct CompressedTexSubImage3DBucket { | 1797 struct CompressedTexSubImage3DBucket { |
| 1798 typedef CompressedTexSubImage3DBucket ValueType; | 1798 typedef CompressedTexSubImage3DBucket ValueType; |
| 1799 static const CommandId kCmdId = kCompressedTexSubImage3DBucket; | 1799 static const CommandId kCmdId = kCompressedTexSubImage3DBucket; |
| 1800 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1800 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1801 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 1801 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 1802 | 1802 |
| 1803 static uint32_t ComputeSize() { | 1803 static uint32_t ComputeSize() { |
| 1804 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1804 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 void SetHeader() { header.SetCmd<ValueType>(); } | 1807 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1808 | 1808 |
| 1809 void Init(GLenum _target, | 1809 void Init(GLenum _target, |
| 1810 GLint _level, | 1810 GLint _level, |
| 1811 GLint _xoffset, | 1811 GLint _xoffset, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1881 "offset of CompressedTexSubImage3DBucket depth should be 32"); | 1881 "offset of CompressedTexSubImage3DBucket depth should be 32"); |
| 1882 static_assert(offsetof(CompressedTexSubImage3DBucket, format) == 36, | 1882 static_assert(offsetof(CompressedTexSubImage3DBucket, format) == 36, |
| 1883 "offset of CompressedTexSubImage3DBucket format should be 36"); | 1883 "offset of CompressedTexSubImage3DBucket format should be 36"); |
| 1884 static_assert(offsetof(CompressedTexSubImage3DBucket, bucket_id) == 40, | 1884 static_assert(offsetof(CompressedTexSubImage3DBucket, bucket_id) == 40, |
| 1885 "offset of CompressedTexSubImage3DBucket bucket_id should be 40"); | 1885 "offset of CompressedTexSubImage3DBucket bucket_id should be 40"); |
| 1886 | 1886 |
| 1887 struct CompressedTexSubImage3D { | 1887 struct CompressedTexSubImage3D { |
| 1888 typedef CompressedTexSubImage3D ValueType; | 1888 typedef CompressedTexSubImage3D ValueType; |
| 1889 static const CommandId kCmdId = kCompressedTexSubImage3D; | 1889 static const CommandId kCmdId = kCompressedTexSubImage3D; |
| 1890 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1890 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1891 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 1891 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 1892 | 1892 |
| 1893 static uint32_t ComputeSize() { | 1893 static uint32_t ComputeSize() { |
| 1894 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1894 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1895 } | 1895 } |
| 1896 | 1896 |
| 1897 void SetHeader() { header.SetCmd<ValueType>(); } | 1897 void SetHeader() { header.SetCmd<ValueType>(); } |
| 1898 | 1898 |
| 1899 void Init(GLenum _target, | 1899 void Init(GLenum _target, |
| 1900 GLint _level, | 1900 GLint _level, |
| 1901 GLint _xoffset, | 1901 GLint _xoffset, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1983 "offset of CompressedTexSubImage3D imageSize should be 40"); | 1983 "offset of CompressedTexSubImage3D imageSize should be 40"); |
| 1984 static_assert(offsetof(CompressedTexSubImage3D, data_shm_id) == 44, | 1984 static_assert(offsetof(CompressedTexSubImage3D, data_shm_id) == 44, |
| 1985 "offset of CompressedTexSubImage3D data_shm_id should be 44"); | 1985 "offset of CompressedTexSubImage3D data_shm_id should be 44"); |
| 1986 static_assert(offsetof(CompressedTexSubImage3D, data_shm_offset) == 48, | 1986 static_assert(offsetof(CompressedTexSubImage3D, data_shm_offset) == 48, |
| 1987 "offset of CompressedTexSubImage3D data_shm_offset should be 48"); | 1987 "offset of CompressedTexSubImage3D data_shm_offset should be 48"); |
| 1988 | 1988 |
| 1989 struct CopyBufferSubData { | 1989 struct CopyBufferSubData { |
| 1990 typedef CopyBufferSubData ValueType; | 1990 typedef CopyBufferSubData ValueType; |
| 1991 static const CommandId kCmdId = kCopyBufferSubData; | 1991 static const CommandId kCmdId = kCopyBufferSubData; |
| 1992 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 1992 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 1993 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 1993 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 1994 | 1994 |
| 1995 static uint32_t ComputeSize() { | 1995 static uint32_t ComputeSize() { |
| 1996 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 1996 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 1997 } | 1997 } |
| 1998 | 1998 |
| 1999 void SetHeader() { header.SetCmd<ValueType>(); } | 1999 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2000 | 2000 |
| 2001 void Init(GLenum _readtarget, | 2001 void Init(GLenum _readtarget, |
| 2002 GLenum _writetarget, | 2002 GLenum _writetarget, |
| 2003 GLintptr _readoffset, | 2003 GLintptr _readoffset, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2042 "offset of CopyBufferSubData readoffset should be 12"); | 2042 "offset of CopyBufferSubData readoffset should be 12"); |
| 2043 static_assert(offsetof(CopyBufferSubData, writeoffset) == 16, | 2043 static_assert(offsetof(CopyBufferSubData, writeoffset) == 16, |
| 2044 "offset of CopyBufferSubData writeoffset should be 16"); | 2044 "offset of CopyBufferSubData writeoffset should be 16"); |
| 2045 static_assert(offsetof(CopyBufferSubData, size) == 20, | 2045 static_assert(offsetof(CopyBufferSubData, size) == 20, |
| 2046 "offset of CopyBufferSubData size should be 20"); | 2046 "offset of CopyBufferSubData size should be 20"); |
| 2047 | 2047 |
| 2048 struct CopyTexImage2D { | 2048 struct CopyTexImage2D { |
| 2049 typedef CopyTexImage2D ValueType; | 2049 typedef CopyTexImage2D ValueType; |
| 2050 static const CommandId kCmdId = kCopyTexImage2D; | 2050 static const CommandId kCmdId = kCopyTexImage2D; |
| 2051 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2051 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2052 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 2052 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 2053 | 2053 |
| 2054 static uint32_t ComputeSize() { | 2054 static uint32_t ComputeSize() { |
| 2055 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2055 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2056 } | 2056 } |
| 2057 | 2057 |
| 2058 void SetHeader() { header.SetCmd<ValueType>(); } | 2058 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2059 | 2059 |
| 2060 void Init(GLenum _target, | 2060 void Init(GLenum _target, |
| 2061 GLint _level, | 2061 GLint _level, |
| 2062 GLenum _internalformat, | 2062 GLenum _internalformat, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2114 "offset of CopyTexImage2D y should be 20"); | 2114 "offset of CopyTexImage2D y should be 20"); |
| 2115 static_assert(offsetof(CopyTexImage2D, width) == 24, | 2115 static_assert(offsetof(CopyTexImage2D, width) == 24, |
| 2116 "offset of CopyTexImage2D width should be 24"); | 2116 "offset of CopyTexImage2D width should be 24"); |
| 2117 static_assert(offsetof(CopyTexImage2D, height) == 28, | 2117 static_assert(offsetof(CopyTexImage2D, height) == 28, |
| 2118 "offset of CopyTexImage2D height should be 28"); | 2118 "offset of CopyTexImage2D height should be 28"); |
| 2119 | 2119 |
| 2120 struct CopyTexSubImage2D { | 2120 struct CopyTexSubImage2D { |
| 2121 typedef CopyTexSubImage2D ValueType; | 2121 typedef CopyTexSubImage2D ValueType; |
| 2122 static const CommandId kCmdId = kCopyTexSubImage2D; | 2122 static const CommandId kCmdId = kCopyTexSubImage2D; |
| 2123 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2123 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2124 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 2124 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 2125 | 2125 |
| 2126 static uint32_t ComputeSize() { | 2126 static uint32_t ComputeSize() { |
| 2127 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2127 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2128 } | 2128 } |
| 2129 | 2129 |
| 2130 void SetHeader() { header.SetCmd<ValueType>(); } | 2130 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2131 | 2131 |
| 2132 void Init(GLenum _target, | 2132 void Init(GLenum _target, |
| 2133 GLint _level, | 2133 GLint _level, |
| 2134 GLint _xoffset, | 2134 GLint _xoffset, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2191 "offset of CopyTexSubImage2D y should be 24"); | 2191 "offset of CopyTexSubImage2D y should be 24"); |
| 2192 static_assert(offsetof(CopyTexSubImage2D, width) == 28, | 2192 static_assert(offsetof(CopyTexSubImage2D, width) == 28, |
| 2193 "offset of CopyTexSubImage2D width should be 28"); | 2193 "offset of CopyTexSubImage2D width should be 28"); |
| 2194 static_assert(offsetof(CopyTexSubImage2D, height) == 32, | 2194 static_assert(offsetof(CopyTexSubImage2D, height) == 32, |
| 2195 "offset of CopyTexSubImage2D height should be 32"); | 2195 "offset of CopyTexSubImage2D height should be 32"); |
| 2196 | 2196 |
| 2197 struct CopyTexSubImage3D { | 2197 struct CopyTexSubImage3D { |
| 2198 typedef CopyTexSubImage3D ValueType; | 2198 typedef CopyTexSubImage3D ValueType; |
| 2199 static const CommandId kCmdId = kCopyTexSubImage3D; | 2199 static const CommandId kCmdId = kCopyTexSubImage3D; |
| 2200 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2200 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2201 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 2201 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 2202 | 2202 |
| 2203 static uint32_t ComputeSize() { | 2203 static uint32_t ComputeSize() { |
| 2204 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2204 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2205 } | 2205 } |
| 2206 | 2206 |
| 2207 void SetHeader() { header.SetCmd<ValueType>(); } | 2207 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2208 | 2208 |
| 2209 void Init(GLenum _target, | 2209 void Init(GLenum _target, |
| 2210 GLint _level, | 2210 GLint _level, |
| 2211 GLint _xoffset, | 2211 GLint _xoffset, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2274 "offset of CopyTexSubImage3D y should be 28"); | 2274 "offset of CopyTexSubImage3D y should be 28"); |
| 2275 static_assert(offsetof(CopyTexSubImage3D, width) == 32, | 2275 static_assert(offsetof(CopyTexSubImage3D, width) == 32, |
| 2276 "offset of CopyTexSubImage3D width should be 32"); | 2276 "offset of CopyTexSubImage3D width should be 32"); |
| 2277 static_assert(offsetof(CopyTexSubImage3D, height) == 36, | 2277 static_assert(offsetof(CopyTexSubImage3D, height) == 36, |
| 2278 "offset of CopyTexSubImage3D height should be 36"); | 2278 "offset of CopyTexSubImage3D height should be 36"); |
| 2279 | 2279 |
| 2280 struct CreateProgram { | 2280 struct CreateProgram { |
| 2281 typedef CreateProgram ValueType; | 2281 typedef CreateProgram ValueType; |
| 2282 static const CommandId kCmdId = kCreateProgram; | 2282 static const CommandId kCmdId = kCreateProgram; |
| 2283 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2283 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2284 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2284 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2285 | 2285 |
| 2286 static uint32_t ComputeSize() { | 2286 static uint32_t ComputeSize() { |
| 2287 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2287 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2288 } | 2288 } |
| 2289 | 2289 |
| 2290 void SetHeader() { header.SetCmd<ValueType>(); } | 2290 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2291 | 2291 |
| 2292 void Init(uint32_t _client_id) { | 2292 void Init(uint32_t _client_id) { |
| 2293 SetHeader(); | 2293 SetHeader(); |
| 2294 client_id = _client_id; | 2294 client_id = _client_id; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2306 static_assert(sizeof(CreateProgram) == 8, "size of CreateProgram should be 8"); | 2306 static_assert(sizeof(CreateProgram) == 8, "size of CreateProgram should be 8"); |
| 2307 static_assert(offsetof(CreateProgram, header) == 0, | 2307 static_assert(offsetof(CreateProgram, header) == 0, |
| 2308 "offset of CreateProgram header should be 0"); | 2308 "offset of CreateProgram header should be 0"); |
| 2309 static_assert(offsetof(CreateProgram, client_id) == 4, | 2309 static_assert(offsetof(CreateProgram, client_id) == 4, |
| 2310 "offset of CreateProgram client_id should be 4"); | 2310 "offset of CreateProgram client_id should be 4"); |
| 2311 | 2311 |
| 2312 struct CreateShader { | 2312 struct CreateShader { |
| 2313 typedef CreateShader ValueType; | 2313 typedef CreateShader ValueType; |
| 2314 static const CommandId kCmdId = kCreateShader; | 2314 static const CommandId kCmdId = kCreateShader; |
| 2315 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2315 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2316 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2316 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2317 | 2317 |
| 2318 static uint32_t ComputeSize() { | 2318 static uint32_t ComputeSize() { |
| 2319 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2319 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2320 } | 2320 } |
| 2321 | 2321 |
| 2322 void SetHeader() { header.SetCmd<ValueType>(); } | 2322 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2323 | 2323 |
| 2324 void Init(GLenum _type, uint32_t _client_id) { | 2324 void Init(GLenum _type, uint32_t _client_id) { |
| 2325 SetHeader(); | 2325 SetHeader(); |
| 2326 type = _type; | 2326 type = _type; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2342 "offset of CreateShader header should be 0"); | 2342 "offset of CreateShader header should be 0"); |
| 2343 static_assert(offsetof(CreateShader, type) == 4, | 2343 static_assert(offsetof(CreateShader, type) == 4, |
| 2344 "offset of CreateShader type should be 4"); | 2344 "offset of CreateShader type should be 4"); |
| 2345 static_assert(offsetof(CreateShader, client_id) == 8, | 2345 static_assert(offsetof(CreateShader, client_id) == 8, |
| 2346 "offset of CreateShader client_id should be 8"); | 2346 "offset of CreateShader client_id should be 8"); |
| 2347 | 2347 |
| 2348 struct CullFace { | 2348 struct CullFace { |
| 2349 typedef CullFace ValueType; | 2349 typedef CullFace ValueType; |
| 2350 static const CommandId kCmdId = kCullFace; | 2350 static const CommandId kCmdId = kCullFace; |
| 2351 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2351 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2352 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2352 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2353 | 2353 |
| 2354 static uint32_t ComputeSize() { | 2354 static uint32_t ComputeSize() { |
| 2355 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2355 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2356 } | 2356 } |
| 2357 | 2357 |
| 2358 void SetHeader() { header.SetCmd<ValueType>(); } | 2358 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2359 | 2359 |
| 2360 void Init(GLenum _mode) { | 2360 void Init(GLenum _mode) { |
| 2361 SetHeader(); | 2361 SetHeader(); |
| 2362 mode = _mode; | 2362 mode = _mode; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2374 static_assert(sizeof(CullFace) == 8, "size of CullFace should be 8"); | 2374 static_assert(sizeof(CullFace) == 8, "size of CullFace should be 8"); |
| 2375 static_assert(offsetof(CullFace, header) == 0, | 2375 static_assert(offsetof(CullFace, header) == 0, |
| 2376 "offset of CullFace header should be 0"); | 2376 "offset of CullFace header should be 0"); |
| 2377 static_assert(offsetof(CullFace, mode) == 4, | 2377 static_assert(offsetof(CullFace, mode) == 4, |
| 2378 "offset of CullFace mode should be 4"); | 2378 "offset of CullFace mode should be 4"); |
| 2379 | 2379 |
| 2380 struct DeleteBuffersImmediate { | 2380 struct DeleteBuffersImmediate { |
| 2381 typedef DeleteBuffersImmediate ValueType; | 2381 typedef DeleteBuffersImmediate ValueType; |
| 2382 static const CommandId kCmdId = kDeleteBuffersImmediate; | 2382 static const CommandId kCmdId = kDeleteBuffersImmediate; |
| 2383 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 2383 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 2384 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2384 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2385 | 2385 |
| 2386 static uint32_t ComputeDataSize(GLsizei n) { | 2386 static uint32_t ComputeDataSize(GLsizei n) { |
| 2387 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 2387 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 2388 } | 2388 } |
| 2389 | 2389 |
| 2390 static uint32_t ComputeSize(GLsizei n) { | 2390 static uint32_t ComputeSize(GLsizei n) { |
| 2391 return static_cast<uint32_t>(sizeof(ValueType) + | 2391 return static_cast<uint32_t>(sizeof(ValueType) + |
| 2392 ComputeDataSize(n)); // NOLINT | 2392 ComputeDataSize(n)); // NOLINT |
| 2393 } | 2393 } |
| 2394 | 2394 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 2416 "size of DeleteBuffersImmediate should be 8"); | 2416 "size of DeleteBuffersImmediate should be 8"); |
| 2417 static_assert(offsetof(DeleteBuffersImmediate, header) == 0, | 2417 static_assert(offsetof(DeleteBuffersImmediate, header) == 0, |
| 2418 "offset of DeleteBuffersImmediate header should be 0"); | 2418 "offset of DeleteBuffersImmediate header should be 0"); |
| 2419 static_assert(offsetof(DeleteBuffersImmediate, n) == 4, | 2419 static_assert(offsetof(DeleteBuffersImmediate, n) == 4, |
| 2420 "offset of DeleteBuffersImmediate n should be 4"); | 2420 "offset of DeleteBuffersImmediate n should be 4"); |
| 2421 | 2421 |
| 2422 struct DeleteFramebuffersImmediate { | 2422 struct DeleteFramebuffersImmediate { |
| 2423 typedef DeleteFramebuffersImmediate ValueType; | 2423 typedef DeleteFramebuffersImmediate ValueType; |
| 2424 static const CommandId kCmdId = kDeleteFramebuffersImmediate; | 2424 static const CommandId kCmdId = kDeleteFramebuffersImmediate; |
| 2425 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 2425 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 2426 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 2426 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 2427 | 2427 |
| 2428 static uint32_t ComputeDataSize(GLsizei n) { | 2428 static uint32_t ComputeDataSize(GLsizei n) { |
| 2429 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 2429 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 2430 } | 2430 } |
| 2431 | 2431 |
| 2432 static uint32_t ComputeSize(GLsizei n) { | 2432 static uint32_t ComputeSize(GLsizei n) { |
| 2433 return static_cast<uint32_t>(sizeof(ValueType) + | 2433 return static_cast<uint32_t>(sizeof(ValueType) + |
| 2434 ComputeDataSize(n)); // NOLINT | 2434 ComputeDataSize(n)); // NOLINT |
| 2435 } | 2435 } |
| 2436 | 2436 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 2458 "size of DeleteFramebuffersImmediate should be 8"); | 2458 "size of DeleteFramebuffersImmediate should be 8"); |
| 2459 static_assert(offsetof(DeleteFramebuffersImmediate, header) == 0, | 2459 static_assert(offsetof(DeleteFramebuffersImmediate, header) == 0, |
| 2460 "offset of DeleteFramebuffersImmediate header should be 0"); | 2460 "offset of DeleteFramebuffersImmediate header should be 0"); |
| 2461 static_assert(offsetof(DeleteFramebuffersImmediate, n) == 4, | 2461 static_assert(offsetof(DeleteFramebuffersImmediate, n) == 4, |
| 2462 "offset of DeleteFramebuffersImmediate n should be 4"); | 2462 "offset of DeleteFramebuffersImmediate n should be 4"); |
| 2463 | 2463 |
| 2464 struct DeleteProgram { | 2464 struct DeleteProgram { |
| 2465 typedef DeleteProgram ValueType; | 2465 typedef DeleteProgram ValueType; |
| 2466 static const CommandId kCmdId = kDeleteProgram; | 2466 static const CommandId kCmdId = kDeleteProgram; |
| 2467 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2467 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2468 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2468 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2469 | 2469 |
| 2470 static uint32_t ComputeSize() { | 2470 static uint32_t ComputeSize() { |
| 2471 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2471 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2472 } | 2472 } |
| 2473 | 2473 |
| 2474 void SetHeader() { header.SetCmd<ValueType>(); } | 2474 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2475 | 2475 |
| 2476 void Init(GLuint _program) { | 2476 void Init(GLuint _program) { |
| 2477 SetHeader(); | 2477 SetHeader(); |
| 2478 program = _program; | 2478 program = _program; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2490 static_assert(sizeof(DeleteProgram) == 8, "size of DeleteProgram should be 8"); | 2490 static_assert(sizeof(DeleteProgram) == 8, "size of DeleteProgram should be 8"); |
| 2491 static_assert(offsetof(DeleteProgram, header) == 0, | 2491 static_assert(offsetof(DeleteProgram, header) == 0, |
| 2492 "offset of DeleteProgram header should be 0"); | 2492 "offset of DeleteProgram header should be 0"); |
| 2493 static_assert(offsetof(DeleteProgram, program) == 4, | 2493 static_assert(offsetof(DeleteProgram, program) == 4, |
| 2494 "offset of DeleteProgram program should be 4"); | 2494 "offset of DeleteProgram program should be 4"); |
| 2495 | 2495 |
| 2496 struct DeleteRenderbuffersImmediate { | 2496 struct DeleteRenderbuffersImmediate { |
| 2497 typedef DeleteRenderbuffersImmediate ValueType; | 2497 typedef DeleteRenderbuffersImmediate ValueType; |
| 2498 static const CommandId kCmdId = kDeleteRenderbuffersImmediate; | 2498 static const CommandId kCmdId = kDeleteRenderbuffersImmediate; |
| 2499 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 2499 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 2500 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 2500 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 2501 | 2501 |
| 2502 static uint32_t ComputeDataSize(GLsizei n) { | 2502 static uint32_t ComputeDataSize(GLsizei n) { |
| 2503 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 2503 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 2504 } | 2504 } |
| 2505 | 2505 |
| 2506 static uint32_t ComputeSize(GLsizei n) { | 2506 static uint32_t ComputeSize(GLsizei n) { |
| 2507 return static_cast<uint32_t>(sizeof(ValueType) + | 2507 return static_cast<uint32_t>(sizeof(ValueType) + |
| 2508 ComputeDataSize(n)); // NOLINT | 2508 ComputeDataSize(n)); // NOLINT |
| 2509 } | 2509 } |
| 2510 | 2510 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 2532 "size of DeleteRenderbuffersImmediate should be 8"); | 2532 "size of DeleteRenderbuffersImmediate should be 8"); |
| 2533 static_assert(offsetof(DeleteRenderbuffersImmediate, header) == 0, | 2533 static_assert(offsetof(DeleteRenderbuffersImmediate, header) == 0, |
| 2534 "offset of DeleteRenderbuffersImmediate header should be 0"); | 2534 "offset of DeleteRenderbuffersImmediate header should be 0"); |
| 2535 static_assert(offsetof(DeleteRenderbuffersImmediate, n) == 4, | 2535 static_assert(offsetof(DeleteRenderbuffersImmediate, n) == 4, |
| 2536 "offset of DeleteRenderbuffersImmediate n should be 4"); | 2536 "offset of DeleteRenderbuffersImmediate n should be 4"); |
| 2537 | 2537 |
| 2538 struct DeleteSamplersImmediate { | 2538 struct DeleteSamplersImmediate { |
| 2539 typedef DeleteSamplersImmediate ValueType; | 2539 typedef DeleteSamplersImmediate ValueType; |
| 2540 static const CommandId kCmdId = kDeleteSamplersImmediate; | 2540 static const CommandId kCmdId = kDeleteSamplersImmediate; |
| 2541 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 2541 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 2542 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2542 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2543 | 2543 |
| 2544 static uint32_t ComputeDataSize(GLsizei n) { | 2544 static uint32_t ComputeDataSize(GLsizei n) { |
| 2545 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 2545 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 2546 } | 2546 } |
| 2547 | 2547 |
| 2548 static uint32_t ComputeSize(GLsizei n) { | 2548 static uint32_t ComputeSize(GLsizei n) { |
| 2549 return static_cast<uint32_t>(sizeof(ValueType) + | 2549 return static_cast<uint32_t>(sizeof(ValueType) + |
| 2550 ComputeDataSize(n)); // NOLINT | 2550 ComputeDataSize(n)); // NOLINT |
| 2551 } | 2551 } |
| 2552 | 2552 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 2574 "size of DeleteSamplersImmediate should be 8"); | 2574 "size of DeleteSamplersImmediate should be 8"); |
| 2575 static_assert(offsetof(DeleteSamplersImmediate, header) == 0, | 2575 static_assert(offsetof(DeleteSamplersImmediate, header) == 0, |
| 2576 "offset of DeleteSamplersImmediate header should be 0"); | 2576 "offset of DeleteSamplersImmediate header should be 0"); |
| 2577 static_assert(offsetof(DeleteSamplersImmediate, n) == 4, | 2577 static_assert(offsetof(DeleteSamplersImmediate, n) == 4, |
| 2578 "offset of DeleteSamplersImmediate n should be 4"); | 2578 "offset of DeleteSamplersImmediate n should be 4"); |
| 2579 | 2579 |
| 2580 struct DeleteSync { | 2580 struct DeleteSync { |
| 2581 typedef DeleteSync ValueType; | 2581 typedef DeleteSync ValueType; |
| 2582 static const CommandId kCmdId = kDeleteSync; | 2582 static const CommandId kCmdId = kDeleteSync; |
| 2583 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2583 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2584 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2584 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2585 | 2585 |
| 2586 static uint32_t ComputeSize() { | 2586 static uint32_t ComputeSize() { |
| 2587 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2587 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2588 } | 2588 } |
| 2589 | 2589 |
| 2590 void SetHeader() { header.SetCmd<ValueType>(); } | 2590 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2591 | 2591 |
| 2592 void Init(GLuint _sync) { | 2592 void Init(GLuint _sync) { |
| 2593 SetHeader(); | 2593 SetHeader(); |
| 2594 sync = _sync; | 2594 sync = _sync; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2606 static_assert(sizeof(DeleteSync) == 8, "size of DeleteSync should be 8"); | 2606 static_assert(sizeof(DeleteSync) == 8, "size of DeleteSync should be 8"); |
| 2607 static_assert(offsetof(DeleteSync, header) == 0, | 2607 static_assert(offsetof(DeleteSync, header) == 0, |
| 2608 "offset of DeleteSync header should be 0"); | 2608 "offset of DeleteSync header should be 0"); |
| 2609 static_assert(offsetof(DeleteSync, sync) == 4, | 2609 static_assert(offsetof(DeleteSync, sync) == 4, |
| 2610 "offset of DeleteSync sync should be 4"); | 2610 "offset of DeleteSync sync should be 4"); |
| 2611 | 2611 |
| 2612 struct DeleteShader { | 2612 struct DeleteShader { |
| 2613 typedef DeleteShader ValueType; | 2613 typedef DeleteShader ValueType; |
| 2614 static const CommandId kCmdId = kDeleteShader; | 2614 static const CommandId kCmdId = kDeleteShader; |
| 2615 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2615 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2616 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2616 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2617 | 2617 |
| 2618 static uint32_t ComputeSize() { | 2618 static uint32_t ComputeSize() { |
| 2619 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2619 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2620 } | 2620 } |
| 2621 | 2621 |
| 2622 void SetHeader() { header.SetCmd<ValueType>(); } | 2622 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2623 | 2623 |
| 2624 void Init(GLuint _shader) { | 2624 void Init(GLuint _shader) { |
| 2625 SetHeader(); | 2625 SetHeader(); |
| 2626 shader = _shader; | 2626 shader = _shader; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2638 static_assert(sizeof(DeleteShader) == 8, "size of DeleteShader should be 8"); | 2638 static_assert(sizeof(DeleteShader) == 8, "size of DeleteShader should be 8"); |
| 2639 static_assert(offsetof(DeleteShader, header) == 0, | 2639 static_assert(offsetof(DeleteShader, header) == 0, |
| 2640 "offset of DeleteShader header should be 0"); | 2640 "offset of DeleteShader header should be 0"); |
| 2641 static_assert(offsetof(DeleteShader, shader) == 4, | 2641 static_assert(offsetof(DeleteShader, shader) == 4, |
| 2642 "offset of DeleteShader shader should be 4"); | 2642 "offset of DeleteShader shader should be 4"); |
| 2643 | 2643 |
| 2644 struct DeleteTexturesImmediate { | 2644 struct DeleteTexturesImmediate { |
| 2645 typedef DeleteTexturesImmediate ValueType; | 2645 typedef DeleteTexturesImmediate ValueType; |
| 2646 static const CommandId kCmdId = kDeleteTexturesImmediate; | 2646 static const CommandId kCmdId = kDeleteTexturesImmediate; |
| 2647 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 2647 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 2648 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2648 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2649 | 2649 |
| 2650 static uint32_t ComputeDataSize(GLsizei n) { | 2650 static uint32_t ComputeDataSize(GLsizei n) { |
| 2651 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 2651 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 2652 } | 2652 } |
| 2653 | 2653 |
| 2654 static uint32_t ComputeSize(GLsizei n) { | 2654 static uint32_t ComputeSize(GLsizei n) { |
| 2655 return static_cast<uint32_t>(sizeof(ValueType) + | 2655 return static_cast<uint32_t>(sizeof(ValueType) + |
| 2656 ComputeDataSize(n)); // NOLINT | 2656 ComputeDataSize(n)); // NOLINT |
| 2657 } | 2657 } |
| 2658 | 2658 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 2680 "size of DeleteTexturesImmediate should be 8"); | 2680 "size of DeleteTexturesImmediate should be 8"); |
| 2681 static_assert(offsetof(DeleteTexturesImmediate, header) == 0, | 2681 static_assert(offsetof(DeleteTexturesImmediate, header) == 0, |
| 2682 "offset of DeleteTexturesImmediate header should be 0"); | 2682 "offset of DeleteTexturesImmediate header should be 0"); |
| 2683 static_assert(offsetof(DeleteTexturesImmediate, n) == 4, | 2683 static_assert(offsetof(DeleteTexturesImmediate, n) == 4, |
| 2684 "offset of DeleteTexturesImmediate n should be 4"); | 2684 "offset of DeleteTexturesImmediate n should be 4"); |
| 2685 | 2685 |
| 2686 struct DeleteTransformFeedbacksImmediate { | 2686 struct DeleteTransformFeedbacksImmediate { |
| 2687 typedef DeleteTransformFeedbacksImmediate ValueType; | 2687 typedef DeleteTransformFeedbacksImmediate ValueType; |
| 2688 static const CommandId kCmdId = kDeleteTransformFeedbacksImmediate; | 2688 static const CommandId kCmdId = kDeleteTransformFeedbacksImmediate; |
| 2689 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 2689 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 2690 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2690 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2691 | 2691 |
| 2692 static uint32_t ComputeDataSize(GLsizei n) { | 2692 static uint32_t ComputeDataSize(GLsizei n) { |
| 2693 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 2693 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 2694 } | 2694 } |
| 2695 | 2695 |
| 2696 static uint32_t ComputeSize(GLsizei n) { | 2696 static uint32_t ComputeSize(GLsizei n) { |
| 2697 return static_cast<uint32_t>(sizeof(ValueType) + | 2697 return static_cast<uint32_t>(sizeof(ValueType) + |
| 2698 ComputeDataSize(n)); // NOLINT | 2698 ComputeDataSize(n)); // NOLINT |
| 2699 } | 2699 } |
| 2700 | 2700 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 2722 "size of DeleteTransformFeedbacksImmediate should be 8"); | 2722 "size of DeleteTransformFeedbacksImmediate should be 8"); |
| 2723 static_assert(offsetof(DeleteTransformFeedbacksImmediate, header) == 0, | 2723 static_assert(offsetof(DeleteTransformFeedbacksImmediate, header) == 0, |
| 2724 "offset of DeleteTransformFeedbacksImmediate header should be 0"); | 2724 "offset of DeleteTransformFeedbacksImmediate header should be 0"); |
| 2725 static_assert(offsetof(DeleteTransformFeedbacksImmediate, n) == 4, | 2725 static_assert(offsetof(DeleteTransformFeedbacksImmediate, n) == 4, |
| 2726 "offset of DeleteTransformFeedbacksImmediate n should be 4"); | 2726 "offset of DeleteTransformFeedbacksImmediate n should be 4"); |
| 2727 | 2727 |
| 2728 struct DepthFunc { | 2728 struct DepthFunc { |
| 2729 typedef DepthFunc ValueType; | 2729 typedef DepthFunc ValueType; |
| 2730 static const CommandId kCmdId = kDepthFunc; | 2730 static const CommandId kCmdId = kDepthFunc; |
| 2731 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2731 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2732 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2732 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2733 | 2733 |
| 2734 static uint32_t ComputeSize() { | 2734 static uint32_t ComputeSize() { |
| 2735 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2735 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2736 } | 2736 } |
| 2737 | 2737 |
| 2738 void SetHeader() { header.SetCmd<ValueType>(); } | 2738 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2739 | 2739 |
| 2740 void Init(GLenum _func) { | 2740 void Init(GLenum _func) { |
| 2741 SetHeader(); | 2741 SetHeader(); |
| 2742 func = _func; | 2742 func = _func; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2754 static_assert(sizeof(DepthFunc) == 8, "size of DepthFunc should be 8"); | 2754 static_assert(sizeof(DepthFunc) == 8, "size of DepthFunc should be 8"); |
| 2755 static_assert(offsetof(DepthFunc, header) == 0, | 2755 static_assert(offsetof(DepthFunc, header) == 0, |
| 2756 "offset of DepthFunc header should be 0"); | 2756 "offset of DepthFunc header should be 0"); |
| 2757 static_assert(offsetof(DepthFunc, func) == 4, | 2757 static_assert(offsetof(DepthFunc, func) == 4, |
| 2758 "offset of DepthFunc func should be 4"); | 2758 "offset of DepthFunc func should be 4"); |
| 2759 | 2759 |
| 2760 struct DepthMask { | 2760 struct DepthMask { |
| 2761 typedef DepthMask ValueType; | 2761 typedef DepthMask ValueType; |
| 2762 static const CommandId kCmdId = kDepthMask; | 2762 static const CommandId kCmdId = kDepthMask; |
| 2763 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2763 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2764 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2764 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2765 | 2765 |
| 2766 static uint32_t ComputeSize() { | 2766 static uint32_t ComputeSize() { |
| 2767 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2767 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2768 } | 2768 } |
| 2769 | 2769 |
| 2770 void SetHeader() { header.SetCmd<ValueType>(); } | 2770 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2771 | 2771 |
| 2772 void Init(GLboolean _flag) { | 2772 void Init(GLboolean _flag) { |
| 2773 SetHeader(); | 2773 SetHeader(); |
| 2774 flag = _flag; | 2774 flag = _flag; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2786 static_assert(sizeof(DepthMask) == 8, "size of DepthMask should be 8"); | 2786 static_assert(sizeof(DepthMask) == 8, "size of DepthMask should be 8"); |
| 2787 static_assert(offsetof(DepthMask, header) == 0, | 2787 static_assert(offsetof(DepthMask, header) == 0, |
| 2788 "offset of DepthMask header should be 0"); | 2788 "offset of DepthMask header should be 0"); |
| 2789 static_assert(offsetof(DepthMask, flag) == 4, | 2789 static_assert(offsetof(DepthMask, flag) == 4, |
| 2790 "offset of DepthMask flag should be 4"); | 2790 "offset of DepthMask flag should be 4"); |
| 2791 | 2791 |
| 2792 struct DepthRangef { | 2792 struct DepthRangef { |
| 2793 typedef DepthRangef ValueType; | 2793 typedef DepthRangef ValueType; |
| 2794 static const CommandId kCmdId = kDepthRangef; | 2794 static const CommandId kCmdId = kDepthRangef; |
| 2795 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2795 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2796 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2796 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2797 | 2797 |
| 2798 static uint32_t ComputeSize() { | 2798 static uint32_t ComputeSize() { |
| 2799 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2799 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2800 } | 2800 } |
| 2801 | 2801 |
| 2802 void SetHeader() { header.SetCmd<ValueType>(); } | 2802 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2803 | 2803 |
| 2804 void Init(GLclampf _zNear, GLclampf _zFar) { | 2804 void Init(GLclampf _zNear, GLclampf _zFar) { |
| 2805 SetHeader(); | 2805 SetHeader(); |
| 2806 zNear = _zNear; | 2806 zNear = _zNear; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2822 "offset of DepthRangef header should be 0"); | 2822 "offset of DepthRangef header should be 0"); |
| 2823 static_assert(offsetof(DepthRangef, zNear) == 4, | 2823 static_assert(offsetof(DepthRangef, zNear) == 4, |
| 2824 "offset of DepthRangef zNear should be 4"); | 2824 "offset of DepthRangef zNear should be 4"); |
| 2825 static_assert(offsetof(DepthRangef, zFar) == 8, | 2825 static_assert(offsetof(DepthRangef, zFar) == 8, |
| 2826 "offset of DepthRangef zFar should be 8"); | 2826 "offset of DepthRangef zFar should be 8"); |
| 2827 | 2827 |
| 2828 struct DetachShader { | 2828 struct DetachShader { |
| 2829 typedef DetachShader ValueType; | 2829 typedef DetachShader ValueType; |
| 2830 static const CommandId kCmdId = kDetachShader; | 2830 static const CommandId kCmdId = kDetachShader; |
| 2831 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2831 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2832 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2832 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2833 | 2833 |
| 2834 static uint32_t ComputeSize() { | 2834 static uint32_t ComputeSize() { |
| 2835 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2835 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2836 } | 2836 } |
| 2837 | 2837 |
| 2838 void SetHeader() { header.SetCmd<ValueType>(); } | 2838 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2839 | 2839 |
| 2840 void Init(GLuint _program, GLuint _shader) { | 2840 void Init(GLuint _program, GLuint _shader) { |
| 2841 SetHeader(); | 2841 SetHeader(); |
| 2842 program = _program; | 2842 program = _program; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2858 "offset of DetachShader header should be 0"); | 2858 "offset of DetachShader header should be 0"); |
| 2859 static_assert(offsetof(DetachShader, program) == 4, | 2859 static_assert(offsetof(DetachShader, program) == 4, |
| 2860 "offset of DetachShader program should be 4"); | 2860 "offset of DetachShader program should be 4"); |
| 2861 static_assert(offsetof(DetachShader, shader) == 8, | 2861 static_assert(offsetof(DetachShader, shader) == 8, |
| 2862 "offset of DetachShader shader should be 8"); | 2862 "offset of DetachShader shader should be 8"); |
| 2863 | 2863 |
| 2864 struct Disable { | 2864 struct Disable { |
| 2865 typedef Disable ValueType; | 2865 typedef Disable ValueType; |
| 2866 static const CommandId kCmdId = kDisable; | 2866 static const CommandId kCmdId = kDisable; |
| 2867 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2867 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2868 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2868 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2869 | 2869 |
| 2870 static uint32_t ComputeSize() { | 2870 static uint32_t ComputeSize() { |
| 2871 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2871 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2872 } | 2872 } |
| 2873 | 2873 |
| 2874 void SetHeader() { header.SetCmd<ValueType>(); } | 2874 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2875 | 2875 |
| 2876 void Init(GLenum _cap) { | 2876 void Init(GLenum _cap) { |
| 2877 SetHeader(); | 2877 SetHeader(); |
| 2878 cap = _cap; | 2878 cap = _cap; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2889 | 2889 |
| 2890 static_assert(sizeof(Disable) == 8, "size of Disable should be 8"); | 2890 static_assert(sizeof(Disable) == 8, "size of Disable should be 8"); |
| 2891 static_assert(offsetof(Disable, header) == 0, | 2891 static_assert(offsetof(Disable, header) == 0, |
| 2892 "offset of Disable header should be 0"); | 2892 "offset of Disable header should be 0"); |
| 2893 static_assert(offsetof(Disable, cap) == 4, "offset of Disable cap should be 4"); | 2893 static_assert(offsetof(Disable, cap) == 4, "offset of Disable cap should be 4"); |
| 2894 | 2894 |
| 2895 struct DisableVertexAttribArray { | 2895 struct DisableVertexAttribArray { |
| 2896 typedef DisableVertexAttribArray ValueType; | 2896 typedef DisableVertexAttribArray ValueType; |
| 2897 static const CommandId kCmdId = kDisableVertexAttribArray; | 2897 static const CommandId kCmdId = kDisableVertexAttribArray; |
| 2898 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2898 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2899 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2899 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2900 | 2900 |
| 2901 static uint32_t ComputeSize() { | 2901 static uint32_t ComputeSize() { |
| 2902 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2902 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2903 } | 2903 } |
| 2904 | 2904 |
| 2905 void SetHeader() { header.SetCmd<ValueType>(); } | 2905 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2906 | 2906 |
| 2907 void Init(GLuint _index) { | 2907 void Init(GLuint _index) { |
| 2908 SetHeader(); | 2908 SetHeader(); |
| 2909 index = _index; | 2909 index = _index; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2922 "size of DisableVertexAttribArray should be 8"); | 2922 "size of DisableVertexAttribArray should be 8"); |
| 2923 static_assert(offsetof(DisableVertexAttribArray, header) == 0, | 2923 static_assert(offsetof(DisableVertexAttribArray, header) == 0, |
| 2924 "offset of DisableVertexAttribArray header should be 0"); | 2924 "offset of DisableVertexAttribArray header should be 0"); |
| 2925 static_assert(offsetof(DisableVertexAttribArray, index) == 4, | 2925 static_assert(offsetof(DisableVertexAttribArray, index) == 4, |
| 2926 "offset of DisableVertexAttribArray index should be 4"); | 2926 "offset of DisableVertexAttribArray index should be 4"); |
| 2927 | 2927 |
| 2928 struct DrawArrays { | 2928 struct DrawArrays { |
| 2929 typedef DrawArrays ValueType; | 2929 typedef DrawArrays ValueType; |
| 2930 static const CommandId kCmdId = kDrawArrays; | 2930 static const CommandId kCmdId = kDrawArrays; |
| 2931 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2931 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2932 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 2932 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 2933 | 2933 |
| 2934 static uint32_t ComputeSize() { | 2934 static uint32_t ComputeSize() { |
| 2935 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2935 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2936 } | 2936 } |
| 2937 | 2937 |
| 2938 void SetHeader() { header.SetCmd<ValueType>(); } | 2938 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2939 | 2939 |
| 2940 void Init(GLenum _mode, GLint _first, GLsizei _count) { | 2940 void Init(GLenum _mode, GLint _first, GLsizei _count) { |
| 2941 SetHeader(); | 2941 SetHeader(); |
| 2942 mode = _mode; | 2942 mode = _mode; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 2962 "offset of DrawArrays mode should be 4"); | 2962 "offset of DrawArrays mode should be 4"); |
| 2963 static_assert(offsetof(DrawArrays, first) == 8, | 2963 static_assert(offsetof(DrawArrays, first) == 8, |
| 2964 "offset of DrawArrays first should be 8"); | 2964 "offset of DrawArrays first should be 8"); |
| 2965 static_assert(offsetof(DrawArrays, count) == 12, | 2965 static_assert(offsetof(DrawArrays, count) == 12, |
| 2966 "offset of DrawArrays count should be 12"); | 2966 "offset of DrawArrays count should be 12"); |
| 2967 | 2967 |
| 2968 struct DrawElements { | 2968 struct DrawElements { |
| 2969 typedef DrawElements ValueType; | 2969 typedef DrawElements ValueType; |
| 2970 static const CommandId kCmdId = kDrawElements; | 2970 static const CommandId kCmdId = kDrawElements; |
| 2971 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2971 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2972 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 2972 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 2973 | 2973 |
| 2974 static uint32_t ComputeSize() { | 2974 static uint32_t ComputeSize() { |
| 2975 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2975 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2976 } | 2976 } |
| 2977 | 2977 |
| 2978 void SetHeader() { header.SetCmd<ValueType>(); } | 2978 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2979 | 2979 |
| 2980 void Init(GLenum _mode, GLsizei _count, GLenum _type, GLuint _index_offset) { | 2980 void Init(GLenum _mode, GLsizei _count, GLenum _type, GLuint _index_offset) { |
| 2981 SetHeader(); | 2981 SetHeader(); |
| 2982 mode = _mode; | 2982 mode = _mode; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 3010 "offset of DrawElements count should be 8"); | 3010 "offset of DrawElements count should be 8"); |
| 3011 static_assert(offsetof(DrawElements, type) == 12, | 3011 static_assert(offsetof(DrawElements, type) == 12, |
| 3012 "offset of DrawElements type should be 12"); | 3012 "offset of DrawElements type should be 12"); |
| 3013 static_assert(offsetof(DrawElements, index_offset) == 16, | 3013 static_assert(offsetof(DrawElements, index_offset) == 16, |
| 3014 "offset of DrawElements index_offset should be 16"); | 3014 "offset of DrawElements index_offset should be 16"); |
| 3015 | 3015 |
| 3016 struct Enable { | 3016 struct Enable { |
| 3017 typedef Enable ValueType; | 3017 typedef Enable ValueType; |
| 3018 static const CommandId kCmdId = kEnable; | 3018 static const CommandId kCmdId = kEnable; |
| 3019 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3019 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3020 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3020 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3021 | 3021 |
| 3022 static uint32_t ComputeSize() { | 3022 static uint32_t ComputeSize() { |
| 3023 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3023 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3024 } | 3024 } |
| 3025 | 3025 |
| 3026 void SetHeader() { header.SetCmd<ValueType>(); } | 3026 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3027 | 3027 |
| 3028 void Init(GLenum _cap) { | 3028 void Init(GLenum _cap) { |
| 3029 SetHeader(); | 3029 SetHeader(); |
| 3030 cap = _cap; | 3030 cap = _cap; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3041 | 3041 |
| 3042 static_assert(sizeof(Enable) == 8, "size of Enable should be 8"); | 3042 static_assert(sizeof(Enable) == 8, "size of Enable should be 8"); |
| 3043 static_assert(offsetof(Enable, header) == 0, | 3043 static_assert(offsetof(Enable, header) == 0, |
| 3044 "offset of Enable header should be 0"); | 3044 "offset of Enable header should be 0"); |
| 3045 static_assert(offsetof(Enable, cap) == 4, "offset of Enable cap should be 4"); | 3045 static_assert(offsetof(Enable, cap) == 4, "offset of Enable cap should be 4"); |
| 3046 | 3046 |
| 3047 struct EnableVertexAttribArray { | 3047 struct EnableVertexAttribArray { |
| 3048 typedef EnableVertexAttribArray ValueType; | 3048 typedef EnableVertexAttribArray ValueType; |
| 3049 static const CommandId kCmdId = kEnableVertexAttribArray; | 3049 static const CommandId kCmdId = kEnableVertexAttribArray; |
| 3050 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3050 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3051 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3051 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3052 | 3052 |
| 3053 static uint32_t ComputeSize() { | 3053 static uint32_t ComputeSize() { |
| 3054 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3054 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3055 } | 3055 } |
| 3056 | 3056 |
| 3057 void SetHeader() { header.SetCmd<ValueType>(); } | 3057 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3058 | 3058 |
| 3059 void Init(GLuint _index) { | 3059 void Init(GLuint _index) { |
| 3060 SetHeader(); | 3060 SetHeader(); |
| 3061 index = _index; | 3061 index = _index; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3074 "size of EnableVertexAttribArray should be 8"); | 3074 "size of EnableVertexAttribArray should be 8"); |
| 3075 static_assert(offsetof(EnableVertexAttribArray, header) == 0, | 3075 static_assert(offsetof(EnableVertexAttribArray, header) == 0, |
| 3076 "offset of EnableVertexAttribArray header should be 0"); | 3076 "offset of EnableVertexAttribArray header should be 0"); |
| 3077 static_assert(offsetof(EnableVertexAttribArray, index) == 4, | 3077 static_assert(offsetof(EnableVertexAttribArray, index) == 4, |
| 3078 "offset of EnableVertexAttribArray index should be 4"); | 3078 "offset of EnableVertexAttribArray index should be 4"); |
| 3079 | 3079 |
| 3080 struct FenceSync { | 3080 struct FenceSync { |
| 3081 typedef FenceSync ValueType; | 3081 typedef FenceSync ValueType; |
| 3082 static const CommandId kCmdId = kFenceSync; | 3082 static const CommandId kCmdId = kFenceSync; |
| 3083 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3083 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3084 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 3084 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 3085 | 3085 |
| 3086 static uint32_t ComputeSize() { | 3086 static uint32_t ComputeSize() { |
| 3087 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3087 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3088 } | 3088 } |
| 3089 | 3089 |
| 3090 void SetHeader() { header.SetCmd<ValueType>(); } | 3090 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3091 | 3091 |
| 3092 void Init(uint32_t _client_id) { | 3092 void Init(uint32_t _client_id) { |
| 3093 SetHeader(); | 3093 SetHeader(); |
| 3094 client_id = _client_id; | 3094 client_id = _client_id; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3108 static_assert(sizeof(FenceSync) == 8, "size of FenceSync should be 8"); | 3108 static_assert(sizeof(FenceSync) == 8, "size of FenceSync should be 8"); |
| 3109 static_assert(offsetof(FenceSync, header) == 0, | 3109 static_assert(offsetof(FenceSync, header) == 0, |
| 3110 "offset of FenceSync header should be 0"); | 3110 "offset of FenceSync header should be 0"); |
| 3111 static_assert(offsetof(FenceSync, client_id) == 4, | 3111 static_assert(offsetof(FenceSync, client_id) == 4, |
| 3112 "offset of FenceSync client_id should be 4"); | 3112 "offset of FenceSync client_id should be 4"); |
| 3113 | 3113 |
| 3114 struct Finish { | 3114 struct Finish { |
| 3115 typedef Finish ValueType; | 3115 typedef Finish ValueType; |
| 3116 static const CommandId kCmdId = kFinish; | 3116 static const CommandId kCmdId = kFinish; |
| 3117 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3117 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3118 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 3118 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 3119 | 3119 |
| 3120 static uint32_t ComputeSize() { | 3120 static uint32_t ComputeSize() { |
| 3121 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3121 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3122 } | 3122 } |
| 3123 | 3123 |
| 3124 void SetHeader() { header.SetCmd<ValueType>(); } | 3124 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3125 | 3125 |
| 3126 void Init() { SetHeader(); } | 3126 void Init() { SetHeader(); } |
| 3127 | 3127 |
| 3128 void* Set(void* cmd) { | 3128 void* Set(void* cmd) { |
| 3129 static_cast<ValueType*>(cmd)->Init(); | 3129 static_cast<ValueType*>(cmd)->Init(); |
| 3130 return NextCmdAddress<ValueType>(cmd); | 3130 return NextCmdAddress<ValueType>(cmd); |
| 3131 } | 3131 } |
| 3132 | 3132 |
| 3133 gpu::CommandHeader header; | 3133 gpu::CommandHeader header; |
| 3134 }; | 3134 }; |
| 3135 | 3135 |
| 3136 static_assert(sizeof(Finish) == 4, "size of Finish should be 4"); | 3136 static_assert(sizeof(Finish) == 4, "size of Finish should be 4"); |
| 3137 static_assert(offsetof(Finish, header) == 0, | 3137 static_assert(offsetof(Finish, header) == 0, |
| 3138 "offset of Finish header should be 0"); | 3138 "offset of Finish header should be 0"); |
| 3139 | 3139 |
| 3140 struct Flush { | 3140 struct Flush { |
| 3141 typedef Flush ValueType; | 3141 typedef Flush ValueType; |
| 3142 static const CommandId kCmdId = kFlush; | 3142 static const CommandId kCmdId = kFlush; |
| 3143 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3143 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3144 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 3144 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 3145 | 3145 |
| 3146 static uint32_t ComputeSize() { | 3146 static uint32_t ComputeSize() { |
| 3147 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3147 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3148 } | 3148 } |
| 3149 | 3149 |
| 3150 void SetHeader() { header.SetCmd<ValueType>(); } | 3150 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3151 | 3151 |
| 3152 void Init() { SetHeader(); } | 3152 void Init() { SetHeader(); } |
| 3153 | 3153 |
| 3154 void* Set(void* cmd) { | 3154 void* Set(void* cmd) { |
| 3155 static_cast<ValueType*>(cmd)->Init(); | 3155 static_cast<ValueType*>(cmd)->Init(); |
| 3156 return NextCmdAddress<ValueType>(cmd); | 3156 return NextCmdAddress<ValueType>(cmd); |
| 3157 } | 3157 } |
| 3158 | 3158 |
| 3159 gpu::CommandHeader header; | 3159 gpu::CommandHeader header; |
| 3160 }; | 3160 }; |
| 3161 | 3161 |
| 3162 static_assert(sizeof(Flush) == 4, "size of Flush should be 4"); | 3162 static_assert(sizeof(Flush) == 4, "size of Flush should be 4"); |
| 3163 static_assert(offsetof(Flush, header) == 0, | 3163 static_assert(offsetof(Flush, header) == 0, |
| 3164 "offset of Flush header should be 0"); | 3164 "offset of Flush header should be 0"); |
| 3165 | 3165 |
| 3166 struct FramebufferRenderbuffer { | 3166 struct FramebufferRenderbuffer { |
| 3167 typedef FramebufferRenderbuffer ValueType; | 3167 typedef FramebufferRenderbuffer ValueType; |
| 3168 static const CommandId kCmdId = kFramebufferRenderbuffer; | 3168 static const CommandId kCmdId = kFramebufferRenderbuffer; |
| 3169 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3169 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3170 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 3170 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 3171 | 3171 |
| 3172 static uint32_t ComputeSize() { | 3172 static uint32_t ComputeSize() { |
| 3173 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3173 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3174 } | 3174 } |
| 3175 | 3175 |
| 3176 void SetHeader() { header.SetCmd<ValueType>(); } | 3176 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3177 | 3177 |
| 3178 void Init(GLenum _target, | 3178 void Init(GLenum _target, |
| 3179 GLenum _attachment, | 3179 GLenum _attachment, |
| 3180 GLenum _renderbuffertarget, | 3180 GLenum _renderbuffertarget, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3214 static_assert( | 3214 static_assert( |
| 3215 offsetof(FramebufferRenderbuffer, renderbuffertarget) == 12, | 3215 offsetof(FramebufferRenderbuffer, renderbuffertarget) == 12, |
| 3216 "offset of FramebufferRenderbuffer renderbuffertarget should be 12"); | 3216 "offset of FramebufferRenderbuffer renderbuffertarget should be 12"); |
| 3217 static_assert(offsetof(FramebufferRenderbuffer, renderbuffer) == 16, | 3217 static_assert(offsetof(FramebufferRenderbuffer, renderbuffer) == 16, |
| 3218 "offset of FramebufferRenderbuffer renderbuffer should be 16"); | 3218 "offset of FramebufferRenderbuffer renderbuffer should be 16"); |
| 3219 | 3219 |
| 3220 struct FramebufferTexture2D { | 3220 struct FramebufferTexture2D { |
| 3221 typedef FramebufferTexture2D ValueType; | 3221 typedef FramebufferTexture2D ValueType; |
| 3222 static const CommandId kCmdId = kFramebufferTexture2D; | 3222 static const CommandId kCmdId = kFramebufferTexture2D; |
| 3223 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3223 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3224 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 3224 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 3225 | 3225 |
| 3226 static uint32_t ComputeSize() { | 3226 static uint32_t ComputeSize() { |
| 3227 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3227 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3228 } | 3228 } |
| 3229 | 3229 |
| 3230 void SetHeader() { header.SetCmd<ValueType>(); } | 3230 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3231 | 3231 |
| 3232 void Init(GLenum _target, | 3232 void Init(GLenum _target, |
| 3233 GLenum _attachment, | 3233 GLenum _attachment, |
| 3234 GLenum _textarget, | 3234 GLenum _textarget, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3273 "offset of FramebufferTexture2D textarget should be 12"); | 3273 "offset of FramebufferTexture2D textarget should be 12"); |
| 3274 static_assert(offsetof(FramebufferTexture2D, texture) == 16, | 3274 static_assert(offsetof(FramebufferTexture2D, texture) == 16, |
| 3275 "offset of FramebufferTexture2D texture should be 16"); | 3275 "offset of FramebufferTexture2D texture should be 16"); |
| 3276 static_assert(offsetof(FramebufferTexture2D, level) == 20, | 3276 static_assert(offsetof(FramebufferTexture2D, level) == 20, |
| 3277 "offset of FramebufferTexture2D level should be 20"); | 3277 "offset of FramebufferTexture2D level should be 20"); |
| 3278 | 3278 |
| 3279 struct FramebufferTextureLayer { | 3279 struct FramebufferTextureLayer { |
| 3280 typedef FramebufferTextureLayer ValueType; | 3280 typedef FramebufferTextureLayer ValueType; |
| 3281 static const CommandId kCmdId = kFramebufferTextureLayer; | 3281 static const CommandId kCmdId = kFramebufferTextureLayer; |
| 3282 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3282 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3283 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 3283 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 3284 | 3284 |
| 3285 static uint32_t ComputeSize() { | 3285 static uint32_t ComputeSize() { |
| 3286 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3286 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3287 } | 3287 } |
| 3288 | 3288 |
| 3289 void SetHeader() { header.SetCmd<ValueType>(); } | 3289 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3290 | 3290 |
| 3291 void Init(GLenum _target, | 3291 void Init(GLenum _target, |
| 3292 GLenum _attachment, | 3292 GLenum _attachment, |
| 3293 GLuint _texture, | 3293 GLuint _texture, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3332 "offset of FramebufferTextureLayer texture should be 12"); | 3332 "offset of FramebufferTextureLayer texture should be 12"); |
| 3333 static_assert(offsetof(FramebufferTextureLayer, level) == 16, | 3333 static_assert(offsetof(FramebufferTextureLayer, level) == 16, |
| 3334 "offset of FramebufferTextureLayer level should be 16"); | 3334 "offset of FramebufferTextureLayer level should be 16"); |
| 3335 static_assert(offsetof(FramebufferTextureLayer, layer) == 20, | 3335 static_assert(offsetof(FramebufferTextureLayer, layer) == 20, |
| 3336 "offset of FramebufferTextureLayer layer should be 20"); | 3336 "offset of FramebufferTextureLayer layer should be 20"); |
| 3337 | 3337 |
| 3338 struct FrontFace { | 3338 struct FrontFace { |
| 3339 typedef FrontFace ValueType; | 3339 typedef FrontFace ValueType; |
| 3340 static const CommandId kCmdId = kFrontFace; | 3340 static const CommandId kCmdId = kFrontFace; |
| 3341 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3341 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3342 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3342 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3343 | 3343 |
| 3344 static uint32_t ComputeSize() { | 3344 static uint32_t ComputeSize() { |
| 3345 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3345 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3346 } | 3346 } |
| 3347 | 3347 |
| 3348 void SetHeader() { header.SetCmd<ValueType>(); } | 3348 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3349 | 3349 |
| 3350 void Init(GLenum _mode) { | 3350 void Init(GLenum _mode) { |
| 3351 SetHeader(); | 3351 SetHeader(); |
| 3352 mode = _mode; | 3352 mode = _mode; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3364 static_assert(sizeof(FrontFace) == 8, "size of FrontFace should be 8"); | 3364 static_assert(sizeof(FrontFace) == 8, "size of FrontFace should be 8"); |
| 3365 static_assert(offsetof(FrontFace, header) == 0, | 3365 static_assert(offsetof(FrontFace, header) == 0, |
| 3366 "offset of FrontFace header should be 0"); | 3366 "offset of FrontFace header should be 0"); |
| 3367 static_assert(offsetof(FrontFace, mode) == 4, | 3367 static_assert(offsetof(FrontFace, mode) == 4, |
| 3368 "offset of FrontFace mode should be 4"); | 3368 "offset of FrontFace mode should be 4"); |
| 3369 | 3369 |
| 3370 struct GenBuffersImmediate { | 3370 struct GenBuffersImmediate { |
| 3371 typedef GenBuffersImmediate ValueType; | 3371 typedef GenBuffersImmediate ValueType; |
| 3372 static const CommandId kCmdId = kGenBuffersImmediate; | 3372 static const CommandId kCmdId = kGenBuffersImmediate; |
| 3373 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 3373 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 3374 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3374 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3375 | 3375 |
| 3376 static uint32_t ComputeDataSize(GLsizei n) { | 3376 static uint32_t ComputeDataSize(GLsizei n) { |
| 3377 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 3377 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 3378 } | 3378 } |
| 3379 | 3379 |
| 3380 static uint32_t ComputeSize(GLsizei n) { | 3380 static uint32_t ComputeSize(GLsizei n) { |
| 3381 return static_cast<uint32_t>(sizeof(ValueType) + | 3381 return static_cast<uint32_t>(sizeof(ValueType) + |
| 3382 ComputeDataSize(n)); // NOLINT | 3382 ComputeDataSize(n)); // NOLINT |
| 3383 } | 3383 } |
| 3384 | 3384 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3406 "size of GenBuffersImmediate should be 8"); | 3406 "size of GenBuffersImmediate should be 8"); |
| 3407 static_assert(offsetof(GenBuffersImmediate, header) == 0, | 3407 static_assert(offsetof(GenBuffersImmediate, header) == 0, |
| 3408 "offset of GenBuffersImmediate header should be 0"); | 3408 "offset of GenBuffersImmediate header should be 0"); |
| 3409 static_assert(offsetof(GenBuffersImmediate, n) == 4, | 3409 static_assert(offsetof(GenBuffersImmediate, n) == 4, |
| 3410 "offset of GenBuffersImmediate n should be 4"); | 3410 "offset of GenBuffersImmediate n should be 4"); |
| 3411 | 3411 |
| 3412 struct GenerateMipmap { | 3412 struct GenerateMipmap { |
| 3413 typedef GenerateMipmap ValueType; | 3413 typedef GenerateMipmap ValueType; |
| 3414 static const CommandId kCmdId = kGenerateMipmap; | 3414 static const CommandId kCmdId = kGenerateMipmap; |
| 3415 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3415 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3416 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 3416 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 3417 | 3417 |
| 3418 static uint32_t ComputeSize() { | 3418 static uint32_t ComputeSize() { |
| 3419 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3419 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3420 } | 3420 } |
| 3421 | 3421 |
| 3422 void SetHeader() { header.SetCmd<ValueType>(); } | 3422 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3423 | 3423 |
| 3424 void Init(GLenum _target) { | 3424 void Init(GLenum _target) { |
| 3425 SetHeader(); | 3425 SetHeader(); |
| 3426 target = _target; | 3426 target = _target; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3439 "size of GenerateMipmap should be 8"); | 3439 "size of GenerateMipmap should be 8"); |
| 3440 static_assert(offsetof(GenerateMipmap, header) == 0, | 3440 static_assert(offsetof(GenerateMipmap, header) == 0, |
| 3441 "offset of GenerateMipmap header should be 0"); | 3441 "offset of GenerateMipmap header should be 0"); |
| 3442 static_assert(offsetof(GenerateMipmap, target) == 4, | 3442 static_assert(offsetof(GenerateMipmap, target) == 4, |
| 3443 "offset of GenerateMipmap target should be 4"); | 3443 "offset of GenerateMipmap target should be 4"); |
| 3444 | 3444 |
| 3445 struct GenFramebuffersImmediate { | 3445 struct GenFramebuffersImmediate { |
| 3446 typedef GenFramebuffersImmediate ValueType; | 3446 typedef GenFramebuffersImmediate ValueType; |
| 3447 static const CommandId kCmdId = kGenFramebuffersImmediate; | 3447 static const CommandId kCmdId = kGenFramebuffersImmediate; |
| 3448 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 3448 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 3449 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3449 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3450 | 3450 |
| 3451 static uint32_t ComputeDataSize(GLsizei n) { | 3451 static uint32_t ComputeDataSize(GLsizei n) { |
| 3452 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 3452 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 3453 } | 3453 } |
| 3454 | 3454 |
| 3455 static uint32_t ComputeSize(GLsizei n) { | 3455 static uint32_t ComputeSize(GLsizei n) { |
| 3456 return static_cast<uint32_t>(sizeof(ValueType) + | 3456 return static_cast<uint32_t>(sizeof(ValueType) + |
| 3457 ComputeDataSize(n)); // NOLINT | 3457 ComputeDataSize(n)); // NOLINT |
| 3458 } | 3458 } |
| 3459 | 3459 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3481 "size of GenFramebuffersImmediate should be 8"); | 3481 "size of GenFramebuffersImmediate should be 8"); |
| 3482 static_assert(offsetof(GenFramebuffersImmediate, header) == 0, | 3482 static_assert(offsetof(GenFramebuffersImmediate, header) == 0, |
| 3483 "offset of GenFramebuffersImmediate header should be 0"); | 3483 "offset of GenFramebuffersImmediate header should be 0"); |
| 3484 static_assert(offsetof(GenFramebuffersImmediate, n) == 4, | 3484 static_assert(offsetof(GenFramebuffersImmediate, n) == 4, |
| 3485 "offset of GenFramebuffersImmediate n should be 4"); | 3485 "offset of GenFramebuffersImmediate n should be 4"); |
| 3486 | 3486 |
| 3487 struct GenRenderbuffersImmediate { | 3487 struct GenRenderbuffersImmediate { |
| 3488 typedef GenRenderbuffersImmediate ValueType; | 3488 typedef GenRenderbuffersImmediate ValueType; |
| 3489 static const CommandId kCmdId = kGenRenderbuffersImmediate; | 3489 static const CommandId kCmdId = kGenRenderbuffersImmediate; |
| 3490 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 3490 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 3491 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3491 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3492 | 3492 |
| 3493 static uint32_t ComputeDataSize(GLsizei n) { | 3493 static uint32_t ComputeDataSize(GLsizei n) { |
| 3494 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 3494 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 3495 } | 3495 } |
| 3496 | 3496 |
| 3497 static uint32_t ComputeSize(GLsizei n) { | 3497 static uint32_t ComputeSize(GLsizei n) { |
| 3498 return static_cast<uint32_t>(sizeof(ValueType) + | 3498 return static_cast<uint32_t>(sizeof(ValueType) + |
| 3499 ComputeDataSize(n)); // NOLINT | 3499 ComputeDataSize(n)); // NOLINT |
| 3500 } | 3500 } |
| 3501 | 3501 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3523 "size of GenRenderbuffersImmediate should be 8"); | 3523 "size of GenRenderbuffersImmediate should be 8"); |
| 3524 static_assert(offsetof(GenRenderbuffersImmediate, header) == 0, | 3524 static_assert(offsetof(GenRenderbuffersImmediate, header) == 0, |
| 3525 "offset of GenRenderbuffersImmediate header should be 0"); | 3525 "offset of GenRenderbuffersImmediate header should be 0"); |
| 3526 static_assert(offsetof(GenRenderbuffersImmediate, n) == 4, | 3526 static_assert(offsetof(GenRenderbuffersImmediate, n) == 4, |
| 3527 "offset of GenRenderbuffersImmediate n should be 4"); | 3527 "offset of GenRenderbuffersImmediate n should be 4"); |
| 3528 | 3528 |
| 3529 struct GenSamplersImmediate { | 3529 struct GenSamplersImmediate { |
| 3530 typedef GenSamplersImmediate ValueType; | 3530 typedef GenSamplersImmediate ValueType; |
| 3531 static const CommandId kCmdId = kGenSamplersImmediate; | 3531 static const CommandId kCmdId = kGenSamplersImmediate; |
| 3532 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 3532 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 3533 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3533 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3534 | 3534 |
| 3535 static uint32_t ComputeDataSize(GLsizei n) { | 3535 static uint32_t ComputeDataSize(GLsizei n) { |
| 3536 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 3536 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 3537 } | 3537 } |
| 3538 | 3538 |
| 3539 static uint32_t ComputeSize(GLsizei n) { | 3539 static uint32_t ComputeSize(GLsizei n) { |
| 3540 return static_cast<uint32_t>(sizeof(ValueType) + | 3540 return static_cast<uint32_t>(sizeof(ValueType) + |
| 3541 ComputeDataSize(n)); // NOLINT | 3541 ComputeDataSize(n)); // NOLINT |
| 3542 } | 3542 } |
| 3543 | 3543 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3565 "size of GenSamplersImmediate should be 8"); | 3565 "size of GenSamplersImmediate should be 8"); |
| 3566 static_assert(offsetof(GenSamplersImmediate, header) == 0, | 3566 static_assert(offsetof(GenSamplersImmediate, header) == 0, |
| 3567 "offset of GenSamplersImmediate header should be 0"); | 3567 "offset of GenSamplersImmediate header should be 0"); |
| 3568 static_assert(offsetof(GenSamplersImmediate, n) == 4, | 3568 static_assert(offsetof(GenSamplersImmediate, n) == 4, |
| 3569 "offset of GenSamplersImmediate n should be 4"); | 3569 "offset of GenSamplersImmediate n should be 4"); |
| 3570 | 3570 |
| 3571 struct GenTexturesImmediate { | 3571 struct GenTexturesImmediate { |
| 3572 typedef GenTexturesImmediate ValueType; | 3572 typedef GenTexturesImmediate ValueType; |
| 3573 static const CommandId kCmdId = kGenTexturesImmediate; | 3573 static const CommandId kCmdId = kGenTexturesImmediate; |
| 3574 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 3574 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 3575 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3575 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3576 | 3576 |
| 3577 static uint32_t ComputeDataSize(GLsizei n) { | 3577 static uint32_t ComputeDataSize(GLsizei n) { |
| 3578 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 3578 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 3579 } | 3579 } |
| 3580 | 3580 |
| 3581 static uint32_t ComputeSize(GLsizei n) { | 3581 static uint32_t ComputeSize(GLsizei n) { |
| 3582 return static_cast<uint32_t>(sizeof(ValueType) + | 3582 return static_cast<uint32_t>(sizeof(ValueType) + |
| 3583 ComputeDataSize(n)); // NOLINT | 3583 ComputeDataSize(n)); // NOLINT |
| 3584 } | 3584 } |
| 3585 | 3585 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3607 "size of GenTexturesImmediate should be 8"); | 3607 "size of GenTexturesImmediate should be 8"); |
| 3608 static_assert(offsetof(GenTexturesImmediate, header) == 0, | 3608 static_assert(offsetof(GenTexturesImmediate, header) == 0, |
| 3609 "offset of GenTexturesImmediate header should be 0"); | 3609 "offset of GenTexturesImmediate header should be 0"); |
| 3610 static_assert(offsetof(GenTexturesImmediate, n) == 4, | 3610 static_assert(offsetof(GenTexturesImmediate, n) == 4, |
| 3611 "offset of GenTexturesImmediate n should be 4"); | 3611 "offset of GenTexturesImmediate n should be 4"); |
| 3612 | 3612 |
| 3613 struct GenTransformFeedbacksImmediate { | 3613 struct GenTransformFeedbacksImmediate { |
| 3614 typedef GenTransformFeedbacksImmediate ValueType; | 3614 typedef GenTransformFeedbacksImmediate ValueType; |
| 3615 static const CommandId kCmdId = kGenTransformFeedbacksImmediate; | 3615 static const CommandId kCmdId = kGenTransformFeedbacksImmediate; |
| 3616 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 3616 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 3617 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3617 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3618 | 3618 |
| 3619 static uint32_t ComputeDataSize(GLsizei n) { | 3619 static uint32_t ComputeDataSize(GLsizei n) { |
| 3620 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 3620 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 3621 } | 3621 } |
| 3622 | 3622 |
| 3623 static uint32_t ComputeSize(GLsizei n) { | 3623 static uint32_t ComputeSize(GLsizei n) { |
| 3624 return static_cast<uint32_t>(sizeof(ValueType) + | 3624 return static_cast<uint32_t>(sizeof(ValueType) + |
| 3625 ComputeDataSize(n)); // NOLINT | 3625 ComputeDataSize(n)); // NOLINT |
| 3626 } | 3626 } |
| 3627 | 3627 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3649 "size of GenTransformFeedbacksImmediate should be 8"); | 3649 "size of GenTransformFeedbacksImmediate should be 8"); |
| 3650 static_assert(offsetof(GenTransformFeedbacksImmediate, header) == 0, | 3650 static_assert(offsetof(GenTransformFeedbacksImmediate, header) == 0, |
| 3651 "offset of GenTransformFeedbacksImmediate header should be 0"); | 3651 "offset of GenTransformFeedbacksImmediate header should be 0"); |
| 3652 static_assert(offsetof(GenTransformFeedbacksImmediate, n) == 4, | 3652 static_assert(offsetof(GenTransformFeedbacksImmediate, n) == 4, |
| 3653 "offset of GenTransformFeedbacksImmediate n should be 4"); | 3653 "offset of GenTransformFeedbacksImmediate n should be 4"); |
| 3654 | 3654 |
| 3655 struct GetActiveAttrib { | 3655 struct GetActiveAttrib { |
| 3656 typedef GetActiveAttrib ValueType; | 3656 typedef GetActiveAttrib ValueType; |
| 3657 static const CommandId kCmdId = kGetActiveAttrib; | 3657 static const CommandId kCmdId = kGetActiveAttrib; |
| 3658 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3658 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3659 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3659 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3660 | 3660 |
| 3661 struct Result { | 3661 struct Result { |
| 3662 int32_t success; | 3662 int32_t success; |
| 3663 int32_t size; | 3663 int32_t size; |
| 3664 uint32_t type; | 3664 uint32_t type; |
| 3665 }; | 3665 }; |
| 3666 | 3666 |
| 3667 static uint32_t ComputeSize() { | 3667 static uint32_t ComputeSize() { |
| 3668 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3668 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3669 } | 3669 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3723 "offset of GetActiveAttrib Result size should be " | 3723 "offset of GetActiveAttrib Result size should be " |
| 3724 "4"); | 3724 "4"); |
| 3725 static_assert(offsetof(GetActiveAttrib::Result, type) == 8, | 3725 static_assert(offsetof(GetActiveAttrib::Result, type) == 8, |
| 3726 "offset of GetActiveAttrib Result type should be " | 3726 "offset of GetActiveAttrib Result type should be " |
| 3727 "8"); | 3727 "8"); |
| 3728 | 3728 |
| 3729 struct GetActiveUniform { | 3729 struct GetActiveUniform { |
| 3730 typedef GetActiveUniform ValueType; | 3730 typedef GetActiveUniform ValueType; |
| 3731 static const CommandId kCmdId = kGetActiveUniform; | 3731 static const CommandId kCmdId = kGetActiveUniform; |
| 3732 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3732 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3733 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3733 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3734 | 3734 |
| 3735 struct Result { | 3735 struct Result { |
| 3736 int32_t success; | 3736 int32_t success; |
| 3737 int32_t size; | 3737 int32_t size; |
| 3738 uint32_t type; | 3738 uint32_t type; |
| 3739 }; | 3739 }; |
| 3740 | 3740 |
| 3741 static uint32_t ComputeSize() { | 3741 static uint32_t ComputeSize() { |
| 3742 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3742 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3743 } | 3743 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3797 "offset of GetActiveUniform Result size should be " | 3797 "offset of GetActiveUniform Result size should be " |
| 3798 "4"); | 3798 "4"); |
| 3799 static_assert(offsetof(GetActiveUniform::Result, type) == 8, | 3799 static_assert(offsetof(GetActiveUniform::Result, type) == 8, |
| 3800 "offset of GetActiveUniform Result type should be " | 3800 "offset of GetActiveUniform Result type should be " |
| 3801 "8"); | 3801 "8"); |
| 3802 | 3802 |
| 3803 struct GetActiveUniformBlockiv { | 3803 struct GetActiveUniformBlockiv { |
| 3804 typedef GetActiveUniformBlockiv ValueType; | 3804 typedef GetActiveUniformBlockiv ValueType; |
| 3805 static const CommandId kCmdId = kGetActiveUniformBlockiv; | 3805 static const CommandId kCmdId = kGetActiveUniformBlockiv; |
| 3806 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3806 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3807 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3807 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3808 | 3808 |
| 3809 typedef SizedResult<GLint> Result; | 3809 typedef SizedResult<GLint> Result; |
| 3810 | 3810 |
| 3811 static uint32_t ComputeSize() { | 3811 static uint32_t ComputeSize() { |
| 3812 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3812 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3813 } | 3813 } |
| 3814 | 3814 |
| 3815 void SetHeader() { header.SetCmd<ValueType>(); } | 3815 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3816 | 3816 |
| 3817 void Init(GLuint _program, | 3817 void Init(GLuint _program, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3859 static_assert(offsetof(GetActiveUniformBlockiv, params_shm_id) == 16, | 3859 static_assert(offsetof(GetActiveUniformBlockiv, params_shm_id) == 16, |
| 3860 "offset of GetActiveUniformBlockiv params_shm_id should be 16"); | 3860 "offset of GetActiveUniformBlockiv params_shm_id should be 16"); |
| 3861 static_assert( | 3861 static_assert( |
| 3862 offsetof(GetActiveUniformBlockiv, params_shm_offset) == 20, | 3862 offsetof(GetActiveUniformBlockiv, params_shm_offset) == 20, |
| 3863 "offset of GetActiveUniformBlockiv params_shm_offset should be 20"); | 3863 "offset of GetActiveUniformBlockiv params_shm_offset should be 20"); |
| 3864 | 3864 |
| 3865 struct GetActiveUniformBlockName { | 3865 struct GetActiveUniformBlockName { |
| 3866 typedef GetActiveUniformBlockName ValueType; | 3866 typedef GetActiveUniformBlockName ValueType; |
| 3867 static const CommandId kCmdId = kGetActiveUniformBlockName; | 3867 static const CommandId kCmdId = kGetActiveUniformBlockName; |
| 3868 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3868 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3869 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3869 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3870 | 3870 |
| 3871 typedef int32_t Result; | 3871 typedef int32_t Result; |
| 3872 | 3872 |
| 3873 static uint32_t ComputeSize() { | 3873 static uint32_t ComputeSize() { |
| 3874 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3874 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3875 } | 3875 } |
| 3876 | 3876 |
| 3877 void SetHeader() { header.SetCmd<ValueType>(); } | 3877 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3878 | 3878 |
| 3879 void Init(GLuint _program, | 3879 void Init(GLuint _program, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3922 static_assert(offsetof(GetActiveUniformBlockName, result_shm_id) == 16, | 3922 static_assert(offsetof(GetActiveUniformBlockName, result_shm_id) == 16, |
| 3923 "offset of GetActiveUniformBlockName result_shm_id should be 16"); | 3923 "offset of GetActiveUniformBlockName result_shm_id should be 16"); |
| 3924 static_assert( | 3924 static_assert( |
| 3925 offsetof(GetActiveUniformBlockName, result_shm_offset) == 20, | 3925 offsetof(GetActiveUniformBlockName, result_shm_offset) == 20, |
| 3926 "offset of GetActiveUniformBlockName result_shm_offset should be 20"); | 3926 "offset of GetActiveUniformBlockName result_shm_offset should be 20"); |
| 3927 | 3927 |
| 3928 struct GetActiveUniformsiv { | 3928 struct GetActiveUniformsiv { |
| 3929 typedef GetActiveUniformsiv ValueType; | 3929 typedef GetActiveUniformsiv ValueType; |
| 3930 static const CommandId kCmdId = kGetActiveUniformsiv; | 3930 static const CommandId kCmdId = kGetActiveUniformsiv; |
| 3931 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3931 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3932 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3932 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3933 | 3933 |
| 3934 typedef SizedResult<GLint> Result; | 3934 typedef SizedResult<GLint> Result; |
| 3935 | 3935 |
| 3936 static uint32_t ComputeSize() { | 3936 static uint32_t ComputeSize() { |
| 3937 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3937 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3938 } | 3938 } |
| 3939 | 3939 |
| 3940 void SetHeader() { header.SetCmd<ValueType>(); } | 3940 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3941 | 3941 |
| 3942 void Init(GLuint _program, | 3942 void Init(GLuint _program, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3983 "offset of GetActiveUniformsiv pname should be 12"); | 3983 "offset of GetActiveUniformsiv pname should be 12"); |
| 3984 static_assert(offsetof(GetActiveUniformsiv, params_shm_id) == 16, | 3984 static_assert(offsetof(GetActiveUniformsiv, params_shm_id) == 16, |
| 3985 "offset of GetActiveUniformsiv params_shm_id should be 16"); | 3985 "offset of GetActiveUniformsiv params_shm_id should be 16"); |
| 3986 static_assert(offsetof(GetActiveUniformsiv, params_shm_offset) == 20, | 3986 static_assert(offsetof(GetActiveUniformsiv, params_shm_offset) == 20, |
| 3987 "offset of GetActiveUniformsiv params_shm_offset should be 20"); | 3987 "offset of GetActiveUniformsiv params_shm_offset should be 20"); |
| 3988 | 3988 |
| 3989 struct GetAttachedShaders { | 3989 struct GetAttachedShaders { |
| 3990 typedef GetAttachedShaders ValueType; | 3990 typedef GetAttachedShaders ValueType; |
| 3991 static const CommandId kCmdId = kGetAttachedShaders; | 3991 static const CommandId kCmdId = kGetAttachedShaders; |
| 3992 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3992 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3993 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3993 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3994 | 3994 |
| 3995 typedef SizedResult<GLuint> Result; | 3995 typedef SizedResult<GLuint> Result; |
| 3996 | 3996 |
| 3997 static uint32_t ComputeSize() { | 3997 static uint32_t ComputeSize() { |
| 3998 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3998 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3999 } | 3999 } |
| 4000 | 4000 |
| 4001 void SetHeader() { header.SetCmd<ValueType>(); } | 4001 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4002 | 4002 |
| 4003 void Init(GLuint _program, | 4003 void Init(GLuint _program, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4038 "offset of GetAttachedShaders result_shm_id should be 8"); | 4038 "offset of GetAttachedShaders result_shm_id should be 8"); |
| 4039 static_assert(offsetof(GetAttachedShaders, result_shm_offset) == 12, | 4039 static_assert(offsetof(GetAttachedShaders, result_shm_offset) == 12, |
| 4040 "offset of GetAttachedShaders result_shm_offset should be 12"); | 4040 "offset of GetAttachedShaders result_shm_offset should be 12"); |
| 4041 static_assert(offsetof(GetAttachedShaders, result_size) == 16, | 4041 static_assert(offsetof(GetAttachedShaders, result_size) == 16, |
| 4042 "offset of GetAttachedShaders result_size should be 16"); | 4042 "offset of GetAttachedShaders result_size should be 16"); |
| 4043 | 4043 |
| 4044 struct GetAttribLocation { | 4044 struct GetAttribLocation { |
| 4045 typedef GetAttribLocation ValueType; | 4045 typedef GetAttribLocation ValueType; |
| 4046 static const CommandId kCmdId = kGetAttribLocation; | 4046 static const CommandId kCmdId = kGetAttribLocation; |
| 4047 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4047 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4048 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4048 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4049 | 4049 |
| 4050 typedef GLint Result; | 4050 typedef GLint Result; |
| 4051 | 4051 |
| 4052 static uint32_t ComputeSize() { | 4052 static uint32_t ComputeSize() { |
| 4053 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4053 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4054 } | 4054 } |
| 4055 | 4055 |
| 4056 void SetHeader() { header.SetCmd<ValueType>(); } | 4056 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4057 | 4057 |
| 4058 void Init(GLuint _program, | 4058 void Init(GLuint _program, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4093 "offset of GetAttribLocation name_bucket_id should be 8"); | 4093 "offset of GetAttribLocation name_bucket_id should be 8"); |
| 4094 static_assert(offsetof(GetAttribLocation, location_shm_id) == 12, | 4094 static_assert(offsetof(GetAttribLocation, location_shm_id) == 12, |
| 4095 "offset of GetAttribLocation location_shm_id should be 12"); | 4095 "offset of GetAttribLocation location_shm_id should be 12"); |
| 4096 static_assert(offsetof(GetAttribLocation, location_shm_offset) == 16, | 4096 static_assert(offsetof(GetAttribLocation, location_shm_offset) == 16, |
| 4097 "offset of GetAttribLocation location_shm_offset should be 16"); | 4097 "offset of GetAttribLocation location_shm_offset should be 16"); |
| 4098 | 4098 |
| 4099 struct GetBooleanv { | 4099 struct GetBooleanv { |
| 4100 typedef GetBooleanv ValueType; | 4100 typedef GetBooleanv ValueType; |
| 4101 static const CommandId kCmdId = kGetBooleanv; | 4101 static const CommandId kCmdId = kGetBooleanv; |
| 4102 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4102 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4103 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4103 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4104 | 4104 |
| 4105 typedef SizedResult<GLboolean> Result; | 4105 typedef SizedResult<GLboolean> Result; |
| 4106 | 4106 |
| 4107 static uint32_t ComputeSize() { | 4107 static uint32_t ComputeSize() { |
| 4108 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4108 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4109 } | 4109 } |
| 4110 | 4110 |
| 4111 void SetHeader() { header.SetCmd<ValueType>(); } | 4111 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4112 | 4112 |
| 4113 void Init(GLenum _pname, | 4113 void Init(GLenum _pname, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4141 "offset of GetBooleanv pname should be 4"); | 4141 "offset of GetBooleanv pname should be 4"); |
| 4142 static_assert(offsetof(GetBooleanv, params_shm_id) == 8, | 4142 static_assert(offsetof(GetBooleanv, params_shm_id) == 8, |
| 4143 "offset of GetBooleanv params_shm_id should be 8"); | 4143 "offset of GetBooleanv params_shm_id should be 8"); |
| 4144 static_assert(offsetof(GetBooleanv, params_shm_offset) == 12, | 4144 static_assert(offsetof(GetBooleanv, params_shm_offset) == 12, |
| 4145 "offset of GetBooleanv params_shm_offset should be 12"); | 4145 "offset of GetBooleanv params_shm_offset should be 12"); |
| 4146 | 4146 |
| 4147 struct GetBufferParameteri64v { | 4147 struct GetBufferParameteri64v { |
| 4148 typedef GetBufferParameteri64v ValueType; | 4148 typedef GetBufferParameteri64v ValueType; |
| 4149 static const CommandId kCmdId = kGetBufferParameteri64v; | 4149 static const CommandId kCmdId = kGetBufferParameteri64v; |
| 4150 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4150 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4151 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4151 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4152 | 4152 |
| 4153 typedef SizedResult<GLint64> Result; | 4153 typedef SizedResult<GLint64> Result; |
| 4154 | 4154 |
| 4155 static uint32_t ComputeSize() { | 4155 static uint32_t ComputeSize() { |
| 4156 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4156 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4157 } | 4157 } |
| 4158 | 4158 |
| 4159 void SetHeader() { header.SetCmd<ValueType>(); } | 4159 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4160 | 4160 |
| 4161 void Init(GLenum _target, | 4161 void Init(GLenum _target, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4197 static_assert(offsetof(GetBufferParameteri64v, params_shm_id) == 12, | 4197 static_assert(offsetof(GetBufferParameteri64v, params_shm_id) == 12, |
| 4198 "offset of GetBufferParameteri64v params_shm_id should be 12"); | 4198 "offset of GetBufferParameteri64v params_shm_id should be 12"); |
| 4199 static_assert( | 4199 static_assert( |
| 4200 offsetof(GetBufferParameteri64v, params_shm_offset) == 16, | 4200 offsetof(GetBufferParameteri64v, params_shm_offset) == 16, |
| 4201 "offset of GetBufferParameteri64v params_shm_offset should be 16"); | 4201 "offset of GetBufferParameteri64v params_shm_offset should be 16"); |
| 4202 | 4202 |
| 4203 struct GetBufferParameteriv { | 4203 struct GetBufferParameteriv { |
| 4204 typedef GetBufferParameteriv ValueType; | 4204 typedef GetBufferParameteriv ValueType; |
| 4205 static const CommandId kCmdId = kGetBufferParameteriv; | 4205 static const CommandId kCmdId = kGetBufferParameteriv; |
| 4206 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4206 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4207 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4207 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4208 | 4208 |
| 4209 typedef SizedResult<GLint> Result; | 4209 typedef SizedResult<GLint> Result; |
| 4210 | 4210 |
| 4211 static uint32_t ComputeSize() { | 4211 static uint32_t ComputeSize() { |
| 4212 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4212 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4213 } | 4213 } |
| 4214 | 4214 |
| 4215 void SetHeader() { header.SetCmd<ValueType>(); } | 4215 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4216 | 4216 |
| 4217 void Init(GLenum _target, | 4217 void Init(GLenum _target, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4252 "offset of GetBufferParameteriv pname should be 8"); | 4252 "offset of GetBufferParameteriv pname should be 8"); |
| 4253 static_assert(offsetof(GetBufferParameteriv, params_shm_id) == 12, | 4253 static_assert(offsetof(GetBufferParameteriv, params_shm_id) == 12, |
| 4254 "offset of GetBufferParameteriv params_shm_id should be 12"); | 4254 "offset of GetBufferParameteriv params_shm_id should be 12"); |
| 4255 static_assert(offsetof(GetBufferParameteriv, params_shm_offset) == 16, | 4255 static_assert(offsetof(GetBufferParameteriv, params_shm_offset) == 16, |
| 4256 "offset of GetBufferParameteriv params_shm_offset should be 16"); | 4256 "offset of GetBufferParameteriv params_shm_offset should be 16"); |
| 4257 | 4257 |
| 4258 struct GetError { | 4258 struct GetError { |
| 4259 typedef GetError ValueType; | 4259 typedef GetError ValueType; |
| 4260 static const CommandId kCmdId = kGetError; | 4260 static const CommandId kCmdId = kGetError; |
| 4261 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4261 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4262 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4262 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4263 | 4263 |
| 4264 typedef GLenum Result; | 4264 typedef GLenum Result; |
| 4265 | 4265 |
| 4266 static uint32_t ComputeSize() { | 4266 static uint32_t ComputeSize() { |
| 4267 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4267 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4268 } | 4268 } |
| 4269 | 4269 |
| 4270 void SetHeader() { header.SetCmd<ValueType>(); } | 4270 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4271 | 4271 |
| 4272 void Init(uint32_t _result_shm_id, uint32_t _result_shm_offset) { | 4272 void Init(uint32_t _result_shm_id, uint32_t _result_shm_offset) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4290 "offset of GetError header should be 0"); | 4290 "offset of GetError header should be 0"); |
| 4291 static_assert(offsetof(GetError, result_shm_id) == 4, | 4291 static_assert(offsetof(GetError, result_shm_id) == 4, |
| 4292 "offset of GetError result_shm_id should be 4"); | 4292 "offset of GetError result_shm_id should be 4"); |
| 4293 static_assert(offsetof(GetError, result_shm_offset) == 8, | 4293 static_assert(offsetof(GetError, result_shm_offset) == 8, |
| 4294 "offset of GetError result_shm_offset should be 8"); | 4294 "offset of GetError result_shm_offset should be 8"); |
| 4295 | 4295 |
| 4296 struct GetFloatv { | 4296 struct GetFloatv { |
| 4297 typedef GetFloatv ValueType; | 4297 typedef GetFloatv ValueType; |
| 4298 static const CommandId kCmdId = kGetFloatv; | 4298 static const CommandId kCmdId = kGetFloatv; |
| 4299 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4299 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4300 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4300 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4301 | 4301 |
| 4302 typedef SizedResult<GLfloat> Result; | 4302 typedef SizedResult<GLfloat> Result; |
| 4303 | 4303 |
| 4304 static uint32_t ComputeSize() { | 4304 static uint32_t ComputeSize() { |
| 4305 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4305 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4306 } | 4306 } |
| 4307 | 4307 |
| 4308 void SetHeader() { header.SetCmd<ValueType>(); } | 4308 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4309 | 4309 |
| 4310 void Init(GLenum _pname, | 4310 void Init(GLenum _pname, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4338 "offset of GetFloatv pname should be 4"); | 4338 "offset of GetFloatv pname should be 4"); |
| 4339 static_assert(offsetof(GetFloatv, params_shm_id) == 8, | 4339 static_assert(offsetof(GetFloatv, params_shm_id) == 8, |
| 4340 "offset of GetFloatv params_shm_id should be 8"); | 4340 "offset of GetFloatv params_shm_id should be 8"); |
| 4341 static_assert(offsetof(GetFloatv, params_shm_offset) == 12, | 4341 static_assert(offsetof(GetFloatv, params_shm_offset) == 12, |
| 4342 "offset of GetFloatv params_shm_offset should be 12"); | 4342 "offset of GetFloatv params_shm_offset should be 12"); |
| 4343 | 4343 |
| 4344 struct GetFragDataLocation { | 4344 struct GetFragDataLocation { |
| 4345 typedef GetFragDataLocation ValueType; | 4345 typedef GetFragDataLocation ValueType; |
| 4346 static const CommandId kCmdId = kGetFragDataLocation; | 4346 static const CommandId kCmdId = kGetFragDataLocation; |
| 4347 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4347 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4348 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4348 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4349 | 4349 |
| 4350 typedef GLint Result; | 4350 typedef GLint Result; |
| 4351 | 4351 |
| 4352 static uint32_t ComputeSize() { | 4352 static uint32_t ComputeSize() { |
| 4353 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4353 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4354 } | 4354 } |
| 4355 | 4355 |
| 4356 void SetHeader() { header.SetCmd<ValueType>(); } | 4356 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4357 | 4357 |
| 4358 void Init(GLuint _program, | 4358 void Init(GLuint _program, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4393 "offset of GetFragDataLocation name_bucket_id should be 8"); | 4393 "offset of GetFragDataLocation name_bucket_id should be 8"); |
| 4394 static_assert(offsetof(GetFragDataLocation, location_shm_id) == 12, | 4394 static_assert(offsetof(GetFragDataLocation, location_shm_id) == 12, |
| 4395 "offset of GetFragDataLocation location_shm_id should be 12"); | 4395 "offset of GetFragDataLocation location_shm_id should be 12"); |
| 4396 static_assert(offsetof(GetFragDataLocation, location_shm_offset) == 16, | 4396 static_assert(offsetof(GetFragDataLocation, location_shm_offset) == 16, |
| 4397 "offset of GetFragDataLocation location_shm_offset should be 16"); | 4397 "offset of GetFragDataLocation location_shm_offset should be 16"); |
| 4398 | 4398 |
| 4399 struct GetFramebufferAttachmentParameteriv { | 4399 struct GetFramebufferAttachmentParameteriv { |
| 4400 typedef GetFramebufferAttachmentParameteriv ValueType; | 4400 typedef GetFramebufferAttachmentParameteriv ValueType; |
| 4401 static const CommandId kCmdId = kGetFramebufferAttachmentParameteriv; | 4401 static const CommandId kCmdId = kGetFramebufferAttachmentParameteriv; |
| 4402 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4402 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4403 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4403 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4404 | 4404 |
| 4405 typedef SizedResult<GLint> Result; | 4405 typedef SizedResult<GLint> Result; |
| 4406 | 4406 |
| 4407 static uint32_t ComputeSize() { | 4407 static uint32_t ComputeSize() { |
| 4408 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4408 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4409 } | 4409 } |
| 4410 | 4410 |
| 4411 void SetHeader() { header.SetCmd<ValueType>(); } | 4411 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4412 | 4412 |
| 4413 void Init(GLenum _target, | 4413 void Init(GLenum _target, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4461 "offset of GetFramebufferAttachmentParameteriv params_shm_id should be 16"); | 4461 "offset of GetFramebufferAttachmentParameteriv params_shm_id should be 16"); |
| 4462 static_assert(offsetof(GetFramebufferAttachmentParameteriv, | 4462 static_assert(offsetof(GetFramebufferAttachmentParameteriv, |
| 4463 params_shm_offset) == 20, | 4463 params_shm_offset) == 20, |
| 4464 "offset of GetFramebufferAttachmentParameteriv params_shm_offset " | 4464 "offset of GetFramebufferAttachmentParameteriv params_shm_offset " |
| 4465 "should be 20"); | 4465 "should be 20"); |
| 4466 | 4466 |
| 4467 struct GetInteger64v { | 4467 struct GetInteger64v { |
| 4468 typedef GetInteger64v ValueType; | 4468 typedef GetInteger64v ValueType; |
| 4469 static const CommandId kCmdId = kGetInteger64v; | 4469 static const CommandId kCmdId = kGetInteger64v; |
| 4470 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4470 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4471 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4471 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4472 | 4472 |
| 4473 typedef SizedResult<GLint64> Result; | 4473 typedef SizedResult<GLint64> Result; |
| 4474 | 4474 |
| 4475 static uint32_t ComputeSize() { | 4475 static uint32_t ComputeSize() { |
| 4476 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4476 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4477 } | 4477 } |
| 4478 | 4478 |
| 4479 void SetHeader() { header.SetCmd<ValueType>(); } | 4479 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4480 | 4480 |
| 4481 void Init(GLenum _pname, | 4481 void Init(GLenum _pname, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 4510 "offset of GetInteger64v pname should be 4"); | 4510 "offset of GetInteger64v pname should be 4"); |
| 4511 static_assert(offsetof(GetInteger64v, params_shm_id) == 8, | 4511 static_assert(offsetof(GetInteger64v, params_shm_id) == 8, |
| 4512 "offset of GetInteger64v params_shm_id should be 8"); | 4512 "offset of GetInteger64v params_shm_id should be 8"); |
| 4513 static_assert(offsetof(GetInteger64v, params_shm_offset) == 12, | 4513 static_assert(offsetof(GetInteger64v, params_shm_offset) == 12, |
| 4514 "offset of GetInteger64v params_shm_offset should be 12"); | 4514 "offset of GetInteger64v params_shm_offset should be 12"); |
| 4515 | 4515 |
| 4516 struct GetIntegeri_v { | 4516 struct GetIntegeri_v { |
| 4517 typedef GetIntegeri_v ValueType; | 4517 typedef GetIntegeri_v ValueType; |
| 4518 static const CommandId kCmdId = kGetIntegeri_v; | 4518 static const CommandId kCmdId = kGetIntegeri_v; |
| 4519 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4519 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4520 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4520 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4521 | 4521 |
| 4522 typedef SizedResult<GLint> Result; | 4522 typedef SizedResult<GLint> Result; |
| 4523 | 4523 |
| 4524 static uint32_t ComputeSize() { | 4524 static uint32_t ComputeSize() { |
| 4525 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4525 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4526 } | 4526 } |
| 4527 | 4527 |
| 4528 void SetHeader() { header.SetCmd<ValueType>(); } | 4528 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4529 | 4529 |
| 4530 void Init(GLenum _pname, | 4530 void Init(GLenum _pname, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4565 "offset of GetIntegeri_v index should be 8"); | 4565 "offset of GetIntegeri_v index should be 8"); |
| 4566 static_assert(offsetof(GetIntegeri_v, data_shm_id) == 12, | 4566 static_assert(offsetof(GetIntegeri_v, data_shm_id) == 12, |
| 4567 "offset of GetIntegeri_v data_shm_id should be 12"); | 4567 "offset of GetIntegeri_v data_shm_id should be 12"); |
| 4568 static_assert(offsetof(GetIntegeri_v, data_shm_offset) == 16, | 4568 static_assert(offsetof(GetIntegeri_v, data_shm_offset) == 16, |
| 4569 "offset of GetIntegeri_v data_shm_offset should be 16"); | 4569 "offset of GetIntegeri_v data_shm_offset should be 16"); |
| 4570 | 4570 |
| 4571 struct GetInteger64i_v { | 4571 struct GetInteger64i_v { |
| 4572 typedef GetInteger64i_v ValueType; | 4572 typedef GetInteger64i_v ValueType; |
| 4573 static const CommandId kCmdId = kGetInteger64i_v; | 4573 static const CommandId kCmdId = kGetInteger64i_v; |
| 4574 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4574 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4575 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4575 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4576 | 4576 |
| 4577 typedef SizedResult<GLint64> Result; | 4577 typedef SizedResult<GLint64> Result; |
| 4578 | 4578 |
| 4579 static uint32_t ComputeSize() { | 4579 static uint32_t ComputeSize() { |
| 4580 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4580 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4581 } | 4581 } |
| 4582 | 4582 |
| 4583 void SetHeader() { header.SetCmd<ValueType>(); } | 4583 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4584 | 4584 |
| 4585 void Init(GLenum _pname, | 4585 void Init(GLenum _pname, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4620 "offset of GetInteger64i_v index should be 8"); | 4620 "offset of GetInteger64i_v index should be 8"); |
| 4621 static_assert(offsetof(GetInteger64i_v, data_shm_id) == 12, | 4621 static_assert(offsetof(GetInteger64i_v, data_shm_id) == 12, |
| 4622 "offset of GetInteger64i_v data_shm_id should be 12"); | 4622 "offset of GetInteger64i_v data_shm_id should be 12"); |
| 4623 static_assert(offsetof(GetInteger64i_v, data_shm_offset) == 16, | 4623 static_assert(offsetof(GetInteger64i_v, data_shm_offset) == 16, |
| 4624 "offset of GetInteger64i_v data_shm_offset should be 16"); | 4624 "offset of GetInteger64i_v data_shm_offset should be 16"); |
| 4625 | 4625 |
| 4626 struct GetIntegerv { | 4626 struct GetIntegerv { |
| 4627 typedef GetIntegerv ValueType; | 4627 typedef GetIntegerv ValueType; |
| 4628 static const CommandId kCmdId = kGetIntegerv; | 4628 static const CommandId kCmdId = kGetIntegerv; |
| 4629 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4629 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4630 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4630 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4631 | 4631 |
| 4632 typedef SizedResult<GLint> Result; | 4632 typedef SizedResult<GLint> Result; |
| 4633 | 4633 |
| 4634 static uint32_t ComputeSize() { | 4634 static uint32_t ComputeSize() { |
| 4635 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4635 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4636 } | 4636 } |
| 4637 | 4637 |
| 4638 void SetHeader() { header.SetCmd<ValueType>(); } | 4638 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4639 | 4639 |
| 4640 void Init(GLenum _pname, | 4640 void Init(GLenum _pname, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4668 "offset of GetIntegerv pname should be 4"); | 4668 "offset of GetIntegerv pname should be 4"); |
| 4669 static_assert(offsetof(GetIntegerv, params_shm_id) == 8, | 4669 static_assert(offsetof(GetIntegerv, params_shm_id) == 8, |
| 4670 "offset of GetIntegerv params_shm_id should be 8"); | 4670 "offset of GetIntegerv params_shm_id should be 8"); |
| 4671 static_assert(offsetof(GetIntegerv, params_shm_offset) == 12, | 4671 static_assert(offsetof(GetIntegerv, params_shm_offset) == 12, |
| 4672 "offset of GetIntegerv params_shm_offset should be 12"); | 4672 "offset of GetIntegerv params_shm_offset should be 12"); |
| 4673 | 4673 |
| 4674 struct GetInternalformativ { | 4674 struct GetInternalformativ { |
| 4675 typedef GetInternalformativ ValueType; | 4675 typedef GetInternalformativ ValueType; |
| 4676 static const CommandId kCmdId = kGetInternalformativ; | 4676 static const CommandId kCmdId = kGetInternalformativ; |
| 4677 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4677 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4678 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4678 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4679 | 4679 |
| 4680 typedef SizedResult<GLint> Result; | 4680 typedef SizedResult<GLint> Result; |
| 4681 | 4681 |
| 4682 static uint32_t ComputeSize() { | 4682 static uint32_t ComputeSize() { |
| 4683 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4683 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4684 } | 4684 } |
| 4685 | 4685 |
| 4686 void SetHeader() { header.SetCmd<ValueType>(); } | 4686 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4687 | 4687 |
| 4688 void Init(GLenum _target, | 4688 void Init(GLenum _target, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4729 "offset of GetInternalformativ pname should be 12"); | 4729 "offset of GetInternalformativ pname should be 12"); |
| 4730 static_assert(offsetof(GetInternalformativ, params_shm_id) == 16, | 4730 static_assert(offsetof(GetInternalformativ, params_shm_id) == 16, |
| 4731 "offset of GetInternalformativ params_shm_id should be 16"); | 4731 "offset of GetInternalformativ params_shm_id should be 16"); |
| 4732 static_assert(offsetof(GetInternalformativ, params_shm_offset) == 20, | 4732 static_assert(offsetof(GetInternalformativ, params_shm_offset) == 20, |
| 4733 "offset of GetInternalformativ params_shm_offset should be 20"); | 4733 "offset of GetInternalformativ params_shm_offset should be 20"); |
| 4734 | 4734 |
| 4735 struct GetProgramiv { | 4735 struct GetProgramiv { |
| 4736 typedef GetProgramiv ValueType; | 4736 typedef GetProgramiv ValueType; |
| 4737 static const CommandId kCmdId = kGetProgramiv; | 4737 static const CommandId kCmdId = kGetProgramiv; |
| 4738 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4738 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4739 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4739 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4740 | 4740 |
| 4741 typedef SizedResult<GLint> Result; | 4741 typedef SizedResult<GLint> Result; |
| 4742 | 4742 |
| 4743 static uint32_t ComputeSize() { | 4743 static uint32_t ComputeSize() { |
| 4744 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4744 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4745 } | 4745 } |
| 4746 | 4746 |
| 4747 void SetHeader() { header.SetCmd<ValueType>(); } | 4747 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4748 | 4748 |
| 4749 void Init(GLuint _program, | 4749 void Init(GLuint _program, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4783 "offset of GetProgramiv pname should be 8"); | 4783 "offset of GetProgramiv pname should be 8"); |
| 4784 static_assert(offsetof(GetProgramiv, params_shm_id) == 12, | 4784 static_assert(offsetof(GetProgramiv, params_shm_id) == 12, |
| 4785 "offset of GetProgramiv params_shm_id should be 12"); | 4785 "offset of GetProgramiv params_shm_id should be 12"); |
| 4786 static_assert(offsetof(GetProgramiv, params_shm_offset) == 16, | 4786 static_assert(offsetof(GetProgramiv, params_shm_offset) == 16, |
| 4787 "offset of GetProgramiv params_shm_offset should be 16"); | 4787 "offset of GetProgramiv params_shm_offset should be 16"); |
| 4788 | 4788 |
| 4789 struct GetProgramInfoLog { | 4789 struct GetProgramInfoLog { |
| 4790 typedef GetProgramInfoLog ValueType; | 4790 typedef GetProgramInfoLog ValueType; |
| 4791 static const CommandId kCmdId = kGetProgramInfoLog; | 4791 static const CommandId kCmdId = kGetProgramInfoLog; |
| 4792 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4792 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4793 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4793 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4794 | 4794 |
| 4795 static uint32_t ComputeSize() { | 4795 static uint32_t ComputeSize() { |
| 4796 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4796 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4797 } | 4797 } |
| 4798 | 4798 |
| 4799 void SetHeader() { header.SetCmd<ValueType>(); } | 4799 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4800 | 4800 |
| 4801 void Init(GLuint _program, uint32_t _bucket_id) { | 4801 void Init(GLuint _program, uint32_t _bucket_id) { |
| 4802 SetHeader(); | 4802 SetHeader(); |
| 4803 program = _program; | 4803 program = _program; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4820 "offset of GetProgramInfoLog header should be 0"); | 4820 "offset of GetProgramInfoLog header should be 0"); |
| 4821 static_assert(offsetof(GetProgramInfoLog, program) == 4, | 4821 static_assert(offsetof(GetProgramInfoLog, program) == 4, |
| 4822 "offset of GetProgramInfoLog program should be 4"); | 4822 "offset of GetProgramInfoLog program should be 4"); |
| 4823 static_assert(offsetof(GetProgramInfoLog, bucket_id) == 8, | 4823 static_assert(offsetof(GetProgramInfoLog, bucket_id) == 8, |
| 4824 "offset of GetProgramInfoLog bucket_id should be 8"); | 4824 "offset of GetProgramInfoLog bucket_id should be 8"); |
| 4825 | 4825 |
| 4826 struct GetRenderbufferParameteriv { | 4826 struct GetRenderbufferParameteriv { |
| 4827 typedef GetRenderbufferParameteriv ValueType; | 4827 typedef GetRenderbufferParameteriv ValueType; |
| 4828 static const CommandId kCmdId = kGetRenderbufferParameteriv; | 4828 static const CommandId kCmdId = kGetRenderbufferParameteriv; |
| 4829 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4829 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4830 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4830 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4831 | 4831 |
| 4832 typedef SizedResult<GLint> Result; | 4832 typedef SizedResult<GLint> Result; |
| 4833 | 4833 |
| 4834 static uint32_t ComputeSize() { | 4834 static uint32_t ComputeSize() { |
| 4835 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4835 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4836 } | 4836 } |
| 4837 | 4837 |
| 4838 void SetHeader() { header.SetCmd<ValueType>(); } | 4838 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4839 | 4839 |
| 4840 void Init(GLenum _target, | 4840 void Init(GLenum _target, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4877 offsetof(GetRenderbufferParameteriv, params_shm_id) == 12, | 4877 offsetof(GetRenderbufferParameteriv, params_shm_id) == 12, |
| 4878 "offset of GetRenderbufferParameteriv params_shm_id should be 12"); | 4878 "offset of GetRenderbufferParameteriv params_shm_id should be 12"); |
| 4879 static_assert( | 4879 static_assert( |
| 4880 offsetof(GetRenderbufferParameteriv, params_shm_offset) == 16, | 4880 offsetof(GetRenderbufferParameteriv, params_shm_offset) == 16, |
| 4881 "offset of GetRenderbufferParameteriv params_shm_offset should be 16"); | 4881 "offset of GetRenderbufferParameteriv params_shm_offset should be 16"); |
| 4882 | 4882 |
| 4883 struct GetSamplerParameterfv { | 4883 struct GetSamplerParameterfv { |
| 4884 typedef GetSamplerParameterfv ValueType; | 4884 typedef GetSamplerParameterfv ValueType; |
| 4885 static const CommandId kCmdId = kGetSamplerParameterfv; | 4885 static const CommandId kCmdId = kGetSamplerParameterfv; |
| 4886 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4886 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4887 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4887 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4888 | 4888 |
| 4889 typedef SizedResult<GLfloat> Result; | 4889 typedef SizedResult<GLfloat> Result; |
| 4890 | 4890 |
| 4891 static uint32_t ComputeSize() { | 4891 static uint32_t ComputeSize() { |
| 4892 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4892 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4893 } | 4893 } |
| 4894 | 4894 |
| 4895 void SetHeader() { header.SetCmd<ValueType>(); } | 4895 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4896 | 4896 |
| 4897 void Init(GLuint _sampler, | 4897 void Init(GLuint _sampler, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4932 "offset of GetSamplerParameterfv pname should be 8"); | 4932 "offset of GetSamplerParameterfv pname should be 8"); |
| 4933 static_assert(offsetof(GetSamplerParameterfv, params_shm_id) == 12, | 4933 static_assert(offsetof(GetSamplerParameterfv, params_shm_id) == 12, |
| 4934 "offset of GetSamplerParameterfv params_shm_id should be 12"); | 4934 "offset of GetSamplerParameterfv params_shm_id should be 12"); |
| 4935 static_assert(offsetof(GetSamplerParameterfv, params_shm_offset) == 16, | 4935 static_assert(offsetof(GetSamplerParameterfv, params_shm_offset) == 16, |
| 4936 "offset of GetSamplerParameterfv params_shm_offset should be 16"); | 4936 "offset of GetSamplerParameterfv params_shm_offset should be 16"); |
| 4937 | 4937 |
| 4938 struct GetSamplerParameteriv { | 4938 struct GetSamplerParameteriv { |
| 4939 typedef GetSamplerParameteriv ValueType; | 4939 typedef GetSamplerParameteriv ValueType; |
| 4940 static const CommandId kCmdId = kGetSamplerParameteriv; | 4940 static const CommandId kCmdId = kGetSamplerParameteriv; |
| 4941 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4941 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4942 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4942 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4943 | 4943 |
| 4944 typedef SizedResult<GLint> Result; | 4944 typedef SizedResult<GLint> Result; |
| 4945 | 4945 |
| 4946 static uint32_t ComputeSize() { | 4946 static uint32_t ComputeSize() { |
| 4947 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4947 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4948 } | 4948 } |
| 4949 | 4949 |
| 4950 void SetHeader() { header.SetCmd<ValueType>(); } | 4950 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4951 | 4951 |
| 4952 void Init(GLuint _sampler, | 4952 void Init(GLuint _sampler, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4987 "offset of GetSamplerParameteriv pname should be 8"); | 4987 "offset of GetSamplerParameteriv pname should be 8"); |
| 4988 static_assert(offsetof(GetSamplerParameteriv, params_shm_id) == 12, | 4988 static_assert(offsetof(GetSamplerParameteriv, params_shm_id) == 12, |
| 4989 "offset of GetSamplerParameteriv params_shm_id should be 12"); | 4989 "offset of GetSamplerParameteriv params_shm_id should be 12"); |
| 4990 static_assert(offsetof(GetSamplerParameteriv, params_shm_offset) == 16, | 4990 static_assert(offsetof(GetSamplerParameteriv, params_shm_offset) == 16, |
| 4991 "offset of GetSamplerParameteriv params_shm_offset should be 16"); | 4991 "offset of GetSamplerParameteriv params_shm_offset should be 16"); |
| 4992 | 4992 |
| 4993 struct GetShaderiv { | 4993 struct GetShaderiv { |
| 4994 typedef GetShaderiv ValueType; | 4994 typedef GetShaderiv ValueType; |
| 4995 static const CommandId kCmdId = kGetShaderiv; | 4995 static const CommandId kCmdId = kGetShaderiv; |
| 4996 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4996 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4997 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4997 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4998 | 4998 |
| 4999 typedef SizedResult<GLint> Result; | 4999 typedef SizedResult<GLint> Result; |
| 5000 | 5000 |
| 5001 static uint32_t ComputeSize() { | 5001 static uint32_t ComputeSize() { |
| 5002 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5002 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5003 } | 5003 } |
| 5004 | 5004 |
| 5005 void SetHeader() { header.SetCmd<ValueType>(); } | 5005 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5006 | 5006 |
| 5007 void Init(GLuint _shader, | 5007 void Init(GLuint _shader, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5041 "offset of GetShaderiv pname should be 8"); | 5041 "offset of GetShaderiv pname should be 8"); |
| 5042 static_assert(offsetof(GetShaderiv, params_shm_id) == 12, | 5042 static_assert(offsetof(GetShaderiv, params_shm_id) == 12, |
| 5043 "offset of GetShaderiv params_shm_id should be 12"); | 5043 "offset of GetShaderiv params_shm_id should be 12"); |
| 5044 static_assert(offsetof(GetShaderiv, params_shm_offset) == 16, | 5044 static_assert(offsetof(GetShaderiv, params_shm_offset) == 16, |
| 5045 "offset of GetShaderiv params_shm_offset should be 16"); | 5045 "offset of GetShaderiv params_shm_offset should be 16"); |
| 5046 | 5046 |
| 5047 struct GetShaderInfoLog { | 5047 struct GetShaderInfoLog { |
| 5048 typedef GetShaderInfoLog ValueType; | 5048 typedef GetShaderInfoLog ValueType; |
| 5049 static const CommandId kCmdId = kGetShaderInfoLog; | 5049 static const CommandId kCmdId = kGetShaderInfoLog; |
| 5050 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5050 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5051 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5051 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5052 | 5052 |
| 5053 static uint32_t ComputeSize() { | 5053 static uint32_t ComputeSize() { |
| 5054 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5054 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5055 } | 5055 } |
| 5056 | 5056 |
| 5057 void SetHeader() { header.SetCmd<ValueType>(); } | 5057 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5058 | 5058 |
| 5059 void Init(GLuint _shader, uint32_t _bucket_id) { | 5059 void Init(GLuint _shader, uint32_t _bucket_id) { |
| 5060 SetHeader(); | 5060 SetHeader(); |
| 5061 shader = _shader; | 5061 shader = _shader; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5078 "offset of GetShaderInfoLog header should be 0"); | 5078 "offset of GetShaderInfoLog header should be 0"); |
| 5079 static_assert(offsetof(GetShaderInfoLog, shader) == 4, | 5079 static_assert(offsetof(GetShaderInfoLog, shader) == 4, |
| 5080 "offset of GetShaderInfoLog shader should be 4"); | 5080 "offset of GetShaderInfoLog shader should be 4"); |
| 5081 static_assert(offsetof(GetShaderInfoLog, bucket_id) == 8, | 5081 static_assert(offsetof(GetShaderInfoLog, bucket_id) == 8, |
| 5082 "offset of GetShaderInfoLog bucket_id should be 8"); | 5082 "offset of GetShaderInfoLog bucket_id should be 8"); |
| 5083 | 5083 |
| 5084 struct GetShaderPrecisionFormat { | 5084 struct GetShaderPrecisionFormat { |
| 5085 typedef GetShaderPrecisionFormat ValueType; | 5085 typedef GetShaderPrecisionFormat ValueType; |
| 5086 static const CommandId kCmdId = kGetShaderPrecisionFormat; | 5086 static const CommandId kCmdId = kGetShaderPrecisionFormat; |
| 5087 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5087 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5088 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5088 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5089 | 5089 |
| 5090 struct Result { | 5090 struct Result { |
| 5091 int32_t success; | 5091 int32_t success; |
| 5092 int32_t min_range; | 5092 int32_t min_range; |
| 5093 int32_t max_range; | 5093 int32_t max_range; |
| 5094 int32_t precision; | 5094 int32_t precision; |
| 5095 }; | 5095 }; |
| 5096 | 5096 |
| 5097 static uint32_t ComputeSize() { | 5097 static uint32_t ComputeSize() { |
| 5098 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5098 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5151 "offset of GetShaderPrecisionFormat Result max_range should be " | 5151 "offset of GetShaderPrecisionFormat Result max_range should be " |
| 5152 "8"); | 5152 "8"); |
| 5153 static_assert(offsetof(GetShaderPrecisionFormat::Result, precision) == 12, | 5153 static_assert(offsetof(GetShaderPrecisionFormat::Result, precision) == 12, |
| 5154 "offset of GetShaderPrecisionFormat Result precision should be " | 5154 "offset of GetShaderPrecisionFormat Result precision should be " |
| 5155 "12"); | 5155 "12"); |
| 5156 | 5156 |
| 5157 struct GetShaderSource { | 5157 struct GetShaderSource { |
| 5158 typedef GetShaderSource ValueType; | 5158 typedef GetShaderSource ValueType; |
| 5159 static const CommandId kCmdId = kGetShaderSource; | 5159 static const CommandId kCmdId = kGetShaderSource; |
| 5160 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5160 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5161 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5161 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5162 | 5162 |
| 5163 static uint32_t ComputeSize() { | 5163 static uint32_t ComputeSize() { |
| 5164 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5164 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5165 } | 5165 } |
| 5166 | 5166 |
| 5167 void SetHeader() { header.SetCmd<ValueType>(); } | 5167 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5168 | 5168 |
| 5169 void Init(GLuint _shader, uint32_t _bucket_id) { | 5169 void Init(GLuint _shader, uint32_t _bucket_id) { |
| 5170 SetHeader(); | 5170 SetHeader(); |
| 5171 shader = _shader; | 5171 shader = _shader; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5188 "offset of GetShaderSource header should be 0"); | 5188 "offset of GetShaderSource header should be 0"); |
| 5189 static_assert(offsetof(GetShaderSource, shader) == 4, | 5189 static_assert(offsetof(GetShaderSource, shader) == 4, |
| 5190 "offset of GetShaderSource shader should be 4"); | 5190 "offset of GetShaderSource shader should be 4"); |
| 5191 static_assert(offsetof(GetShaderSource, bucket_id) == 8, | 5191 static_assert(offsetof(GetShaderSource, bucket_id) == 8, |
| 5192 "offset of GetShaderSource bucket_id should be 8"); | 5192 "offset of GetShaderSource bucket_id should be 8"); |
| 5193 | 5193 |
| 5194 struct GetString { | 5194 struct GetString { |
| 5195 typedef GetString ValueType; | 5195 typedef GetString ValueType; |
| 5196 static const CommandId kCmdId = kGetString; | 5196 static const CommandId kCmdId = kGetString; |
| 5197 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5197 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5198 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5198 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5199 | 5199 |
| 5200 static uint32_t ComputeSize() { | 5200 static uint32_t ComputeSize() { |
| 5201 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5201 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5202 } | 5202 } |
| 5203 | 5203 |
| 5204 void SetHeader() { header.SetCmd<ValueType>(); } | 5204 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5205 | 5205 |
| 5206 void Init(GLenum _name, uint32_t _bucket_id) { | 5206 void Init(GLenum _name, uint32_t _bucket_id) { |
| 5207 SetHeader(); | 5207 SetHeader(); |
| 5208 name = _name; | 5208 name = _name; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 5224 "offset of GetString header should be 0"); | 5224 "offset of GetString header should be 0"); |
| 5225 static_assert(offsetof(GetString, name) == 4, | 5225 static_assert(offsetof(GetString, name) == 4, |
| 5226 "offset of GetString name should be 4"); | 5226 "offset of GetString name should be 4"); |
| 5227 static_assert(offsetof(GetString, bucket_id) == 8, | 5227 static_assert(offsetof(GetString, bucket_id) == 8, |
| 5228 "offset of GetString bucket_id should be 8"); | 5228 "offset of GetString bucket_id should be 8"); |
| 5229 | 5229 |
| 5230 struct GetSynciv { | 5230 struct GetSynciv { |
| 5231 typedef GetSynciv ValueType; | 5231 typedef GetSynciv ValueType; |
| 5232 static const CommandId kCmdId = kGetSynciv; | 5232 static const CommandId kCmdId = kGetSynciv; |
| 5233 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5233 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5234 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5234 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5235 | 5235 |
| 5236 typedef SizedResult<GLint> Result; | 5236 typedef SizedResult<GLint> Result; |
| 5237 | 5237 |
| 5238 static uint32_t ComputeSize() { | 5238 static uint32_t ComputeSize() { |
| 5239 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5239 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5240 } | 5240 } |
| 5241 | 5241 |
| 5242 void SetHeader() { header.SetCmd<ValueType>(); } | 5242 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5243 | 5243 |
| 5244 void Init(GLuint _sync, | 5244 void Init(GLuint _sync, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5278 "offset of GetSynciv pname should be 8"); | 5278 "offset of GetSynciv pname should be 8"); |
| 5279 static_assert(offsetof(GetSynciv, values_shm_id) == 12, | 5279 static_assert(offsetof(GetSynciv, values_shm_id) == 12, |
| 5280 "offset of GetSynciv values_shm_id should be 12"); | 5280 "offset of GetSynciv values_shm_id should be 12"); |
| 5281 static_assert(offsetof(GetSynciv, values_shm_offset) == 16, | 5281 static_assert(offsetof(GetSynciv, values_shm_offset) == 16, |
| 5282 "offset of GetSynciv values_shm_offset should be 16"); | 5282 "offset of GetSynciv values_shm_offset should be 16"); |
| 5283 | 5283 |
| 5284 struct GetTexParameterfv { | 5284 struct GetTexParameterfv { |
| 5285 typedef GetTexParameterfv ValueType; | 5285 typedef GetTexParameterfv ValueType; |
| 5286 static const CommandId kCmdId = kGetTexParameterfv; | 5286 static const CommandId kCmdId = kGetTexParameterfv; |
| 5287 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5287 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5288 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5288 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5289 | 5289 |
| 5290 typedef SizedResult<GLfloat> Result; | 5290 typedef SizedResult<GLfloat> Result; |
| 5291 | 5291 |
| 5292 static uint32_t ComputeSize() { | 5292 static uint32_t ComputeSize() { |
| 5293 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5293 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5294 } | 5294 } |
| 5295 | 5295 |
| 5296 void SetHeader() { header.SetCmd<ValueType>(); } | 5296 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5297 | 5297 |
| 5298 void Init(GLenum _target, | 5298 void Init(GLenum _target, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5333 "offset of GetTexParameterfv pname should be 8"); | 5333 "offset of GetTexParameterfv pname should be 8"); |
| 5334 static_assert(offsetof(GetTexParameterfv, params_shm_id) == 12, | 5334 static_assert(offsetof(GetTexParameterfv, params_shm_id) == 12, |
| 5335 "offset of GetTexParameterfv params_shm_id should be 12"); | 5335 "offset of GetTexParameterfv params_shm_id should be 12"); |
| 5336 static_assert(offsetof(GetTexParameterfv, params_shm_offset) == 16, | 5336 static_assert(offsetof(GetTexParameterfv, params_shm_offset) == 16, |
| 5337 "offset of GetTexParameterfv params_shm_offset should be 16"); | 5337 "offset of GetTexParameterfv params_shm_offset should be 16"); |
| 5338 | 5338 |
| 5339 struct GetTexParameteriv { | 5339 struct GetTexParameteriv { |
| 5340 typedef GetTexParameteriv ValueType; | 5340 typedef GetTexParameteriv ValueType; |
| 5341 static const CommandId kCmdId = kGetTexParameteriv; | 5341 static const CommandId kCmdId = kGetTexParameteriv; |
| 5342 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5342 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5343 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5343 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5344 | 5344 |
| 5345 typedef SizedResult<GLint> Result; | 5345 typedef SizedResult<GLint> Result; |
| 5346 | 5346 |
| 5347 static uint32_t ComputeSize() { | 5347 static uint32_t ComputeSize() { |
| 5348 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5348 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5349 } | 5349 } |
| 5350 | 5350 |
| 5351 void SetHeader() { header.SetCmd<ValueType>(); } | 5351 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5352 | 5352 |
| 5353 void Init(GLenum _target, | 5353 void Init(GLenum _target, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5388 "offset of GetTexParameteriv pname should be 8"); | 5388 "offset of GetTexParameteriv pname should be 8"); |
| 5389 static_assert(offsetof(GetTexParameteriv, params_shm_id) == 12, | 5389 static_assert(offsetof(GetTexParameteriv, params_shm_id) == 12, |
| 5390 "offset of GetTexParameteriv params_shm_id should be 12"); | 5390 "offset of GetTexParameteriv params_shm_id should be 12"); |
| 5391 static_assert(offsetof(GetTexParameteriv, params_shm_offset) == 16, | 5391 static_assert(offsetof(GetTexParameteriv, params_shm_offset) == 16, |
| 5392 "offset of GetTexParameteriv params_shm_offset should be 16"); | 5392 "offset of GetTexParameteriv params_shm_offset should be 16"); |
| 5393 | 5393 |
| 5394 struct GetTransformFeedbackVarying { | 5394 struct GetTransformFeedbackVarying { |
| 5395 typedef GetTransformFeedbackVarying ValueType; | 5395 typedef GetTransformFeedbackVarying ValueType; |
| 5396 static const CommandId kCmdId = kGetTransformFeedbackVarying; | 5396 static const CommandId kCmdId = kGetTransformFeedbackVarying; |
| 5397 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5397 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5398 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5398 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5399 | 5399 |
| 5400 struct Result { | 5400 struct Result { |
| 5401 int32_t success; | 5401 int32_t success; |
| 5402 int32_t size; | 5402 int32_t size; |
| 5403 uint32_t type; | 5403 uint32_t type; |
| 5404 }; | 5404 }; |
| 5405 | 5405 |
| 5406 static uint32_t ComputeSize() { | 5406 static uint32_t ComputeSize() { |
| 5407 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5407 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5408 } | 5408 } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5465 "offset of GetTransformFeedbackVarying Result size should be " | 5465 "offset of GetTransformFeedbackVarying Result size should be " |
| 5466 "4"); | 5466 "4"); |
| 5467 static_assert(offsetof(GetTransformFeedbackVarying::Result, type) == 8, | 5467 static_assert(offsetof(GetTransformFeedbackVarying::Result, type) == 8, |
| 5468 "offset of GetTransformFeedbackVarying Result type should be " | 5468 "offset of GetTransformFeedbackVarying Result type should be " |
| 5469 "8"); | 5469 "8"); |
| 5470 | 5470 |
| 5471 struct GetUniformBlockIndex { | 5471 struct GetUniformBlockIndex { |
| 5472 typedef GetUniformBlockIndex ValueType; | 5472 typedef GetUniformBlockIndex ValueType; |
| 5473 static const CommandId kCmdId = kGetUniformBlockIndex; | 5473 static const CommandId kCmdId = kGetUniformBlockIndex; |
| 5474 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5474 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5475 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5475 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5476 | 5476 |
| 5477 typedef GLuint Result; | 5477 typedef GLuint Result; |
| 5478 | 5478 |
| 5479 static uint32_t ComputeSize() { | 5479 static uint32_t ComputeSize() { |
| 5480 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5480 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5481 } | 5481 } |
| 5482 | 5482 |
| 5483 void SetHeader() { header.SetCmd<ValueType>(); } | 5483 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5484 | 5484 |
| 5485 void Init(GLuint _program, | 5485 void Init(GLuint _program, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5520 "offset of GetUniformBlockIndex name_bucket_id should be 8"); | 5520 "offset of GetUniformBlockIndex name_bucket_id should be 8"); |
| 5521 static_assert(offsetof(GetUniformBlockIndex, index_shm_id) == 12, | 5521 static_assert(offsetof(GetUniformBlockIndex, index_shm_id) == 12, |
| 5522 "offset of GetUniformBlockIndex index_shm_id should be 12"); | 5522 "offset of GetUniformBlockIndex index_shm_id should be 12"); |
| 5523 static_assert(offsetof(GetUniformBlockIndex, index_shm_offset) == 16, | 5523 static_assert(offsetof(GetUniformBlockIndex, index_shm_offset) == 16, |
| 5524 "offset of GetUniformBlockIndex index_shm_offset should be 16"); | 5524 "offset of GetUniformBlockIndex index_shm_offset should be 16"); |
| 5525 | 5525 |
| 5526 struct GetUniformfv { | 5526 struct GetUniformfv { |
| 5527 typedef GetUniformfv ValueType; | 5527 typedef GetUniformfv ValueType; |
| 5528 static const CommandId kCmdId = kGetUniformfv; | 5528 static const CommandId kCmdId = kGetUniformfv; |
| 5529 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5529 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5530 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5530 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5531 | 5531 |
| 5532 typedef SizedResult<GLfloat> Result; | 5532 typedef SizedResult<GLfloat> Result; |
| 5533 | 5533 |
| 5534 static uint32_t ComputeSize() { | 5534 static uint32_t ComputeSize() { |
| 5535 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5535 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5536 } | 5536 } |
| 5537 | 5537 |
| 5538 void SetHeader() { header.SetCmd<ValueType>(); } | 5538 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5539 | 5539 |
| 5540 void Init(GLuint _program, | 5540 void Init(GLuint _program, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5574 "offset of GetUniformfv location should be 8"); | 5574 "offset of GetUniformfv location should be 8"); |
| 5575 static_assert(offsetof(GetUniformfv, params_shm_id) == 12, | 5575 static_assert(offsetof(GetUniformfv, params_shm_id) == 12, |
| 5576 "offset of GetUniformfv params_shm_id should be 12"); | 5576 "offset of GetUniformfv params_shm_id should be 12"); |
| 5577 static_assert(offsetof(GetUniformfv, params_shm_offset) == 16, | 5577 static_assert(offsetof(GetUniformfv, params_shm_offset) == 16, |
| 5578 "offset of GetUniformfv params_shm_offset should be 16"); | 5578 "offset of GetUniformfv params_shm_offset should be 16"); |
| 5579 | 5579 |
| 5580 struct GetUniformiv { | 5580 struct GetUniformiv { |
| 5581 typedef GetUniformiv ValueType; | 5581 typedef GetUniformiv ValueType; |
| 5582 static const CommandId kCmdId = kGetUniformiv; | 5582 static const CommandId kCmdId = kGetUniformiv; |
| 5583 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5583 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5584 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5584 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5585 | 5585 |
| 5586 typedef SizedResult<GLint> Result; | 5586 typedef SizedResult<GLint> Result; |
| 5587 | 5587 |
| 5588 static uint32_t ComputeSize() { | 5588 static uint32_t ComputeSize() { |
| 5589 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5589 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5590 } | 5590 } |
| 5591 | 5591 |
| 5592 void SetHeader() { header.SetCmd<ValueType>(); } | 5592 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5593 | 5593 |
| 5594 void Init(GLuint _program, | 5594 void Init(GLuint _program, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5628 "offset of GetUniformiv location should be 8"); | 5628 "offset of GetUniformiv location should be 8"); |
| 5629 static_assert(offsetof(GetUniformiv, params_shm_id) == 12, | 5629 static_assert(offsetof(GetUniformiv, params_shm_id) == 12, |
| 5630 "offset of GetUniformiv params_shm_id should be 12"); | 5630 "offset of GetUniformiv params_shm_id should be 12"); |
| 5631 static_assert(offsetof(GetUniformiv, params_shm_offset) == 16, | 5631 static_assert(offsetof(GetUniformiv, params_shm_offset) == 16, |
| 5632 "offset of GetUniformiv params_shm_offset should be 16"); | 5632 "offset of GetUniformiv params_shm_offset should be 16"); |
| 5633 | 5633 |
| 5634 struct GetUniformuiv { | 5634 struct GetUniformuiv { |
| 5635 typedef GetUniformuiv ValueType; | 5635 typedef GetUniformuiv ValueType; |
| 5636 static const CommandId kCmdId = kGetUniformuiv; | 5636 static const CommandId kCmdId = kGetUniformuiv; |
| 5637 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5637 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5638 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5638 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5639 | 5639 |
| 5640 typedef SizedResult<GLuint> Result; | 5640 typedef SizedResult<GLuint> Result; |
| 5641 | 5641 |
| 5642 static uint32_t ComputeSize() { | 5642 static uint32_t ComputeSize() { |
| 5643 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5643 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5644 } | 5644 } |
| 5645 | 5645 |
| 5646 void SetHeader() { header.SetCmd<ValueType>(); } | 5646 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5647 | 5647 |
| 5648 void Init(GLuint _program, | 5648 void Init(GLuint _program, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5683 "offset of GetUniformuiv location should be 8"); | 5683 "offset of GetUniformuiv location should be 8"); |
| 5684 static_assert(offsetof(GetUniformuiv, params_shm_id) == 12, | 5684 static_assert(offsetof(GetUniformuiv, params_shm_id) == 12, |
| 5685 "offset of GetUniformuiv params_shm_id should be 12"); | 5685 "offset of GetUniformuiv params_shm_id should be 12"); |
| 5686 static_assert(offsetof(GetUniformuiv, params_shm_offset) == 16, | 5686 static_assert(offsetof(GetUniformuiv, params_shm_offset) == 16, |
| 5687 "offset of GetUniformuiv params_shm_offset should be 16"); | 5687 "offset of GetUniformuiv params_shm_offset should be 16"); |
| 5688 | 5688 |
| 5689 struct GetUniformIndices { | 5689 struct GetUniformIndices { |
| 5690 typedef GetUniformIndices ValueType; | 5690 typedef GetUniformIndices ValueType; |
| 5691 static const CommandId kCmdId = kGetUniformIndices; | 5691 static const CommandId kCmdId = kGetUniformIndices; |
| 5692 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5692 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5693 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5693 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5694 | 5694 |
| 5695 typedef SizedResult<GLuint> Result; | 5695 typedef SizedResult<GLuint> Result; |
| 5696 | 5696 |
| 5697 static uint32_t ComputeSize() { | 5697 static uint32_t ComputeSize() { |
| 5698 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5698 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5699 } | 5699 } |
| 5700 | 5700 |
| 5701 void SetHeader() { header.SetCmd<ValueType>(); } | 5701 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5702 | 5702 |
| 5703 void Init(GLuint _program, | 5703 void Init(GLuint _program, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5738 "offset of GetUniformIndices names_bucket_id should be 8"); | 5738 "offset of GetUniformIndices names_bucket_id should be 8"); |
| 5739 static_assert(offsetof(GetUniformIndices, indices_shm_id) == 12, | 5739 static_assert(offsetof(GetUniformIndices, indices_shm_id) == 12, |
| 5740 "offset of GetUniformIndices indices_shm_id should be 12"); | 5740 "offset of GetUniformIndices indices_shm_id should be 12"); |
| 5741 static_assert(offsetof(GetUniformIndices, indices_shm_offset) == 16, | 5741 static_assert(offsetof(GetUniformIndices, indices_shm_offset) == 16, |
| 5742 "offset of GetUniformIndices indices_shm_offset should be 16"); | 5742 "offset of GetUniformIndices indices_shm_offset should be 16"); |
| 5743 | 5743 |
| 5744 struct GetUniformLocation { | 5744 struct GetUniformLocation { |
| 5745 typedef GetUniformLocation ValueType; | 5745 typedef GetUniformLocation ValueType; |
| 5746 static const CommandId kCmdId = kGetUniformLocation; | 5746 static const CommandId kCmdId = kGetUniformLocation; |
| 5747 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5747 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5748 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5748 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5749 | 5749 |
| 5750 typedef GLint Result; | 5750 typedef GLint Result; |
| 5751 | 5751 |
| 5752 static uint32_t ComputeSize() { | 5752 static uint32_t ComputeSize() { |
| 5753 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5753 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5754 } | 5754 } |
| 5755 | 5755 |
| 5756 void SetHeader() { header.SetCmd<ValueType>(); } | 5756 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5757 | 5757 |
| 5758 void Init(GLuint _program, | 5758 void Init(GLuint _program, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5793 "offset of GetUniformLocation name_bucket_id should be 8"); | 5793 "offset of GetUniformLocation name_bucket_id should be 8"); |
| 5794 static_assert(offsetof(GetUniformLocation, location_shm_id) == 12, | 5794 static_assert(offsetof(GetUniformLocation, location_shm_id) == 12, |
| 5795 "offset of GetUniformLocation location_shm_id should be 12"); | 5795 "offset of GetUniformLocation location_shm_id should be 12"); |
| 5796 static_assert(offsetof(GetUniformLocation, location_shm_offset) == 16, | 5796 static_assert(offsetof(GetUniformLocation, location_shm_offset) == 16, |
| 5797 "offset of GetUniformLocation location_shm_offset should be 16"); | 5797 "offset of GetUniformLocation location_shm_offset should be 16"); |
| 5798 | 5798 |
| 5799 struct GetVertexAttribfv { | 5799 struct GetVertexAttribfv { |
| 5800 typedef GetVertexAttribfv ValueType; | 5800 typedef GetVertexAttribfv ValueType; |
| 5801 static const CommandId kCmdId = kGetVertexAttribfv; | 5801 static const CommandId kCmdId = kGetVertexAttribfv; |
| 5802 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5802 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5803 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5803 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5804 | 5804 |
| 5805 typedef SizedResult<GLfloat> Result; | 5805 typedef SizedResult<GLfloat> Result; |
| 5806 | 5806 |
| 5807 static uint32_t ComputeSize() { | 5807 static uint32_t ComputeSize() { |
| 5808 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5808 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5809 } | 5809 } |
| 5810 | 5810 |
| 5811 void SetHeader() { header.SetCmd<ValueType>(); } | 5811 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5812 | 5812 |
| 5813 void Init(GLuint _index, | 5813 void Init(GLuint _index, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5848 "offset of GetVertexAttribfv pname should be 8"); | 5848 "offset of GetVertexAttribfv pname should be 8"); |
| 5849 static_assert(offsetof(GetVertexAttribfv, params_shm_id) == 12, | 5849 static_assert(offsetof(GetVertexAttribfv, params_shm_id) == 12, |
| 5850 "offset of GetVertexAttribfv params_shm_id should be 12"); | 5850 "offset of GetVertexAttribfv params_shm_id should be 12"); |
| 5851 static_assert(offsetof(GetVertexAttribfv, params_shm_offset) == 16, | 5851 static_assert(offsetof(GetVertexAttribfv, params_shm_offset) == 16, |
| 5852 "offset of GetVertexAttribfv params_shm_offset should be 16"); | 5852 "offset of GetVertexAttribfv params_shm_offset should be 16"); |
| 5853 | 5853 |
| 5854 struct GetVertexAttribiv { | 5854 struct GetVertexAttribiv { |
| 5855 typedef GetVertexAttribiv ValueType; | 5855 typedef GetVertexAttribiv ValueType; |
| 5856 static const CommandId kCmdId = kGetVertexAttribiv; | 5856 static const CommandId kCmdId = kGetVertexAttribiv; |
| 5857 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5857 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5858 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5858 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5859 | 5859 |
| 5860 typedef SizedResult<GLint> Result; | 5860 typedef SizedResult<GLint> Result; |
| 5861 | 5861 |
| 5862 static uint32_t ComputeSize() { | 5862 static uint32_t ComputeSize() { |
| 5863 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5863 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5864 } | 5864 } |
| 5865 | 5865 |
| 5866 void SetHeader() { header.SetCmd<ValueType>(); } | 5866 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5867 | 5867 |
| 5868 void Init(GLuint _index, | 5868 void Init(GLuint _index, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5903 "offset of GetVertexAttribiv pname should be 8"); | 5903 "offset of GetVertexAttribiv pname should be 8"); |
| 5904 static_assert(offsetof(GetVertexAttribiv, params_shm_id) == 12, | 5904 static_assert(offsetof(GetVertexAttribiv, params_shm_id) == 12, |
| 5905 "offset of GetVertexAttribiv params_shm_id should be 12"); | 5905 "offset of GetVertexAttribiv params_shm_id should be 12"); |
| 5906 static_assert(offsetof(GetVertexAttribiv, params_shm_offset) == 16, | 5906 static_assert(offsetof(GetVertexAttribiv, params_shm_offset) == 16, |
| 5907 "offset of GetVertexAttribiv params_shm_offset should be 16"); | 5907 "offset of GetVertexAttribiv params_shm_offset should be 16"); |
| 5908 | 5908 |
| 5909 struct GetVertexAttribIiv { | 5909 struct GetVertexAttribIiv { |
| 5910 typedef GetVertexAttribIiv ValueType; | 5910 typedef GetVertexAttribIiv ValueType; |
| 5911 static const CommandId kCmdId = kGetVertexAttribIiv; | 5911 static const CommandId kCmdId = kGetVertexAttribIiv; |
| 5912 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5912 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5913 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5913 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5914 | 5914 |
| 5915 typedef SizedResult<GLint> Result; | 5915 typedef SizedResult<GLint> Result; |
| 5916 | 5916 |
| 5917 static uint32_t ComputeSize() { | 5917 static uint32_t ComputeSize() { |
| 5918 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5918 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5919 } | 5919 } |
| 5920 | 5920 |
| 5921 void SetHeader() { header.SetCmd<ValueType>(); } | 5921 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5922 | 5922 |
| 5923 void Init(GLuint _index, | 5923 void Init(GLuint _index, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5958 "offset of GetVertexAttribIiv pname should be 8"); | 5958 "offset of GetVertexAttribIiv pname should be 8"); |
| 5959 static_assert(offsetof(GetVertexAttribIiv, params_shm_id) == 12, | 5959 static_assert(offsetof(GetVertexAttribIiv, params_shm_id) == 12, |
| 5960 "offset of GetVertexAttribIiv params_shm_id should be 12"); | 5960 "offset of GetVertexAttribIiv params_shm_id should be 12"); |
| 5961 static_assert(offsetof(GetVertexAttribIiv, params_shm_offset) == 16, | 5961 static_assert(offsetof(GetVertexAttribIiv, params_shm_offset) == 16, |
| 5962 "offset of GetVertexAttribIiv params_shm_offset should be 16"); | 5962 "offset of GetVertexAttribIiv params_shm_offset should be 16"); |
| 5963 | 5963 |
| 5964 struct GetVertexAttribIuiv { | 5964 struct GetVertexAttribIuiv { |
| 5965 typedef GetVertexAttribIuiv ValueType; | 5965 typedef GetVertexAttribIuiv ValueType; |
| 5966 static const CommandId kCmdId = kGetVertexAttribIuiv; | 5966 static const CommandId kCmdId = kGetVertexAttribIuiv; |
| 5967 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5967 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5968 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5968 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5969 | 5969 |
| 5970 typedef SizedResult<GLuint> Result; | 5970 typedef SizedResult<GLuint> Result; |
| 5971 | 5971 |
| 5972 static uint32_t ComputeSize() { | 5972 static uint32_t ComputeSize() { |
| 5973 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5973 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5974 } | 5974 } |
| 5975 | 5975 |
| 5976 void SetHeader() { header.SetCmd<ValueType>(); } | 5976 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5977 | 5977 |
| 5978 void Init(GLuint _index, | 5978 void Init(GLuint _index, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6013 "offset of GetVertexAttribIuiv pname should be 8"); | 6013 "offset of GetVertexAttribIuiv pname should be 8"); |
| 6014 static_assert(offsetof(GetVertexAttribIuiv, params_shm_id) == 12, | 6014 static_assert(offsetof(GetVertexAttribIuiv, params_shm_id) == 12, |
| 6015 "offset of GetVertexAttribIuiv params_shm_id should be 12"); | 6015 "offset of GetVertexAttribIuiv params_shm_id should be 12"); |
| 6016 static_assert(offsetof(GetVertexAttribIuiv, params_shm_offset) == 16, | 6016 static_assert(offsetof(GetVertexAttribIuiv, params_shm_offset) == 16, |
| 6017 "offset of GetVertexAttribIuiv params_shm_offset should be 16"); | 6017 "offset of GetVertexAttribIuiv params_shm_offset should be 16"); |
| 6018 | 6018 |
| 6019 struct GetVertexAttribPointerv { | 6019 struct GetVertexAttribPointerv { |
| 6020 typedef GetVertexAttribPointerv ValueType; | 6020 typedef GetVertexAttribPointerv ValueType; |
| 6021 static const CommandId kCmdId = kGetVertexAttribPointerv; | 6021 static const CommandId kCmdId = kGetVertexAttribPointerv; |
| 6022 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6022 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6023 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6023 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6024 | 6024 |
| 6025 typedef SizedResult<GLuint> Result; | 6025 typedef SizedResult<GLuint> Result; |
| 6026 | 6026 |
| 6027 static uint32_t ComputeSize() { | 6027 static uint32_t ComputeSize() { |
| 6028 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6028 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6029 } | 6029 } |
| 6030 | 6030 |
| 6031 void SetHeader() { header.SetCmd<ValueType>(); } | 6031 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6032 | 6032 |
| 6033 void Init(GLuint _index, | 6033 void Init(GLuint _index, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6069 static_assert(offsetof(GetVertexAttribPointerv, pointer_shm_id) == 12, | 6069 static_assert(offsetof(GetVertexAttribPointerv, pointer_shm_id) == 12, |
| 6070 "offset of GetVertexAttribPointerv pointer_shm_id should be 12"); | 6070 "offset of GetVertexAttribPointerv pointer_shm_id should be 12"); |
| 6071 static_assert( | 6071 static_assert( |
| 6072 offsetof(GetVertexAttribPointerv, pointer_shm_offset) == 16, | 6072 offsetof(GetVertexAttribPointerv, pointer_shm_offset) == 16, |
| 6073 "offset of GetVertexAttribPointerv pointer_shm_offset should be 16"); | 6073 "offset of GetVertexAttribPointerv pointer_shm_offset should be 16"); |
| 6074 | 6074 |
| 6075 struct Hint { | 6075 struct Hint { |
| 6076 typedef Hint ValueType; | 6076 typedef Hint ValueType; |
| 6077 static const CommandId kCmdId = kHint; | 6077 static const CommandId kCmdId = kHint; |
| 6078 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6078 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6079 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6079 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6080 | 6080 |
| 6081 static uint32_t ComputeSize() { | 6081 static uint32_t ComputeSize() { |
| 6082 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6082 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6083 } | 6083 } |
| 6084 | 6084 |
| 6085 void SetHeader() { header.SetCmd<ValueType>(); } | 6085 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6086 | 6086 |
| 6087 void Init(GLenum _target, GLenum _mode) { | 6087 void Init(GLenum _target, GLenum _mode) { |
| 6088 SetHeader(); | 6088 SetHeader(); |
| 6089 target = _target; | 6089 target = _target; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 6102 | 6102 |
| 6103 static_assert(sizeof(Hint) == 12, "size of Hint should be 12"); | 6103 static_assert(sizeof(Hint) == 12, "size of Hint should be 12"); |
| 6104 static_assert(offsetof(Hint, header) == 0, "offset of Hint header should be 0"); | 6104 static_assert(offsetof(Hint, header) == 0, "offset of Hint header should be 0"); |
| 6105 static_assert(offsetof(Hint, target) == 4, "offset of Hint target should be 4"); | 6105 static_assert(offsetof(Hint, target) == 4, "offset of Hint target should be 4"); |
| 6106 static_assert(offsetof(Hint, mode) == 8, "offset of Hint mode should be 8"); | 6106 static_assert(offsetof(Hint, mode) == 8, "offset of Hint mode should be 8"); |
| 6107 | 6107 |
| 6108 struct InvalidateFramebufferImmediate { | 6108 struct InvalidateFramebufferImmediate { |
| 6109 typedef InvalidateFramebufferImmediate ValueType; | 6109 typedef InvalidateFramebufferImmediate ValueType; |
| 6110 static const CommandId kCmdId = kInvalidateFramebufferImmediate; | 6110 static const CommandId kCmdId = kInvalidateFramebufferImmediate; |
| 6111 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 6111 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 6112 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6112 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6113 | 6113 |
| 6114 static uint32_t ComputeDataSize(GLsizei count) { | 6114 static uint32_t ComputeDataSize(GLsizei count) { |
| 6115 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT | 6115 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT |
| 6116 } | 6116 } |
| 6117 | 6117 |
| 6118 static uint32_t ComputeSize(GLsizei count) { | 6118 static uint32_t ComputeSize(GLsizei count) { |
| 6119 return static_cast<uint32_t>(sizeof(ValueType) + | 6119 return static_cast<uint32_t>(sizeof(ValueType) + |
| 6120 ComputeDataSize(count)); // NOLINT | 6120 ComputeDataSize(count)); // NOLINT |
| 6121 } | 6121 } |
| 6122 | 6122 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 6151 "offset of InvalidateFramebufferImmediate header should be 0"); | 6151 "offset of InvalidateFramebufferImmediate header should be 0"); |
| 6152 static_assert(offsetof(InvalidateFramebufferImmediate, target) == 4, | 6152 static_assert(offsetof(InvalidateFramebufferImmediate, target) == 4, |
| 6153 "offset of InvalidateFramebufferImmediate target should be 4"); | 6153 "offset of InvalidateFramebufferImmediate target should be 4"); |
| 6154 static_assert(offsetof(InvalidateFramebufferImmediate, count) == 8, | 6154 static_assert(offsetof(InvalidateFramebufferImmediate, count) == 8, |
| 6155 "offset of InvalidateFramebufferImmediate count should be 8"); | 6155 "offset of InvalidateFramebufferImmediate count should be 8"); |
| 6156 | 6156 |
| 6157 struct InvalidateSubFramebufferImmediate { | 6157 struct InvalidateSubFramebufferImmediate { |
| 6158 typedef InvalidateSubFramebufferImmediate ValueType; | 6158 typedef InvalidateSubFramebufferImmediate ValueType; |
| 6159 static const CommandId kCmdId = kInvalidateSubFramebufferImmediate; | 6159 static const CommandId kCmdId = kInvalidateSubFramebufferImmediate; |
| 6160 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 6160 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 6161 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6161 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6162 | 6162 |
| 6163 static uint32_t ComputeDataSize(GLsizei count) { | 6163 static uint32_t ComputeDataSize(GLsizei count) { |
| 6164 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT | 6164 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT |
| 6165 } | 6165 } |
| 6166 | 6166 |
| 6167 static uint32_t ComputeSize(GLsizei count) { | 6167 static uint32_t ComputeSize(GLsizei count) { |
| 6168 return static_cast<uint32_t>(sizeof(ValueType) + | 6168 return static_cast<uint32_t>(sizeof(ValueType) + |
| 6169 ComputeDataSize(count)); // NOLINT | 6169 ComputeDataSize(count)); // NOLINT |
| 6170 } | 6170 } |
| 6171 | 6171 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6228 static_assert(offsetof(InvalidateSubFramebufferImmediate, width) == 20, | 6228 static_assert(offsetof(InvalidateSubFramebufferImmediate, width) == 20, |
| 6229 "offset of InvalidateSubFramebufferImmediate width should be 20"); | 6229 "offset of InvalidateSubFramebufferImmediate width should be 20"); |
| 6230 static_assert( | 6230 static_assert( |
| 6231 offsetof(InvalidateSubFramebufferImmediate, height) == 24, | 6231 offsetof(InvalidateSubFramebufferImmediate, height) == 24, |
| 6232 "offset of InvalidateSubFramebufferImmediate height should be 24"); | 6232 "offset of InvalidateSubFramebufferImmediate height should be 24"); |
| 6233 | 6233 |
| 6234 struct IsBuffer { | 6234 struct IsBuffer { |
| 6235 typedef IsBuffer ValueType; | 6235 typedef IsBuffer ValueType; |
| 6236 static const CommandId kCmdId = kIsBuffer; | 6236 static const CommandId kCmdId = kIsBuffer; |
| 6237 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6237 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6238 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6238 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6239 | 6239 |
| 6240 typedef uint32_t Result; | 6240 typedef uint32_t Result; |
| 6241 | 6241 |
| 6242 static uint32_t ComputeSize() { | 6242 static uint32_t ComputeSize() { |
| 6243 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6243 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6244 } | 6244 } |
| 6245 | 6245 |
| 6246 void SetHeader() { header.SetCmd<ValueType>(); } | 6246 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6247 | 6247 |
| 6248 void Init(GLuint _buffer, | 6248 void Init(GLuint _buffer, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6276 "offset of IsBuffer buffer should be 4"); | 6276 "offset of IsBuffer buffer should be 4"); |
| 6277 static_assert(offsetof(IsBuffer, result_shm_id) == 8, | 6277 static_assert(offsetof(IsBuffer, result_shm_id) == 8, |
| 6278 "offset of IsBuffer result_shm_id should be 8"); | 6278 "offset of IsBuffer result_shm_id should be 8"); |
| 6279 static_assert(offsetof(IsBuffer, result_shm_offset) == 12, | 6279 static_assert(offsetof(IsBuffer, result_shm_offset) == 12, |
| 6280 "offset of IsBuffer result_shm_offset should be 12"); | 6280 "offset of IsBuffer result_shm_offset should be 12"); |
| 6281 | 6281 |
| 6282 struct IsEnabled { | 6282 struct IsEnabled { |
| 6283 typedef IsEnabled ValueType; | 6283 typedef IsEnabled ValueType; |
| 6284 static const CommandId kCmdId = kIsEnabled; | 6284 static const CommandId kCmdId = kIsEnabled; |
| 6285 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6285 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6286 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6286 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6287 | 6287 |
| 6288 typedef uint32_t Result; | 6288 typedef uint32_t Result; |
| 6289 | 6289 |
| 6290 static uint32_t ComputeSize() { | 6290 static uint32_t ComputeSize() { |
| 6291 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6291 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6292 } | 6292 } |
| 6293 | 6293 |
| 6294 void SetHeader() { header.SetCmd<ValueType>(); } | 6294 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6295 | 6295 |
| 6296 void Init(GLenum _cap, uint32_t _result_shm_id, uint32_t _result_shm_offset) { | 6296 void Init(GLenum _cap, uint32_t _result_shm_id, uint32_t _result_shm_offset) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6322 "offset of IsEnabled cap should be 4"); | 6322 "offset of IsEnabled cap should be 4"); |
| 6323 static_assert(offsetof(IsEnabled, result_shm_id) == 8, | 6323 static_assert(offsetof(IsEnabled, result_shm_id) == 8, |
| 6324 "offset of IsEnabled result_shm_id should be 8"); | 6324 "offset of IsEnabled result_shm_id should be 8"); |
| 6325 static_assert(offsetof(IsEnabled, result_shm_offset) == 12, | 6325 static_assert(offsetof(IsEnabled, result_shm_offset) == 12, |
| 6326 "offset of IsEnabled result_shm_offset should be 12"); | 6326 "offset of IsEnabled result_shm_offset should be 12"); |
| 6327 | 6327 |
| 6328 struct IsFramebuffer { | 6328 struct IsFramebuffer { |
| 6329 typedef IsFramebuffer ValueType; | 6329 typedef IsFramebuffer ValueType; |
| 6330 static const CommandId kCmdId = kIsFramebuffer; | 6330 static const CommandId kCmdId = kIsFramebuffer; |
| 6331 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6331 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6332 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6332 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6333 | 6333 |
| 6334 typedef uint32_t Result; | 6334 typedef uint32_t Result; |
| 6335 | 6335 |
| 6336 static uint32_t ComputeSize() { | 6336 static uint32_t ComputeSize() { |
| 6337 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6337 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6338 } | 6338 } |
| 6339 | 6339 |
| 6340 void SetHeader() { header.SetCmd<ValueType>(); } | 6340 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6341 | 6341 |
| 6342 void Init(GLuint _framebuffer, | 6342 void Init(GLuint _framebuffer, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 6371 "offset of IsFramebuffer framebuffer should be 4"); | 6371 "offset of IsFramebuffer framebuffer should be 4"); |
| 6372 static_assert(offsetof(IsFramebuffer, result_shm_id) == 8, | 6372 static_assert(offsetof(IsFramebuffer, result_shm_id) == 8, |
| 6373 "offset of IsFramebuffer result_shm_id should be 8"); | 6373 "offset of IsFramebuffer result_shm_id should be 8"); |
| 6374 static_assert(offsetof(IsFramebuffer, result_shm_offset) == 12, | 6374 static_assert(offsetof(IsFramebuffer, result_shm_offset) == 12, |
| 6375 "offset of IsFramebuffer result_shm_offset should be 12"); | 6375 "offset of IsFramebuffer result_shm_offset should be 12"); |
| 6376 | 6376 |
| 6377 struct IsProgram { | 6377 struct IsProgram { |
| 6378 typedef IsProgram ValueType; | 6378 typedef IsProgram ValueType; |
| 6379 static const CommandId kCmdId = kIsProgram; | 6379 static const CommandId kCmdId = kIsProgram; |
| 6380 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6380 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6381 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6381 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6382 | 6382 |
| 6383 typedef uint32_t Result; | 6383 typedef uint32_t Result; |
| 6384 | 6384 |
| 6385 static uint32_t ComputeSize() { | 6385 static uint32_t ComputeSize() { |
| 6386 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6386 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6387 } | 6387 } |
| 6388 | 6388 |
| 6389 void SetHeader() { header.SetCmd<ValueType>(); } | 6389 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6390 | 6390 |
| 6391 void Init(GLuint _program, | 6391 void Init(GLuint _program, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6419 "offset of IsProgram program should be 4"); | 6419 "offset of IsProgram program should be 4"); |
| 6420 static_assert(offsetof(IsProgram, result_shm_id) == 8, | 6420 static_assert(offsetof(IsProgram, result_shm_id) == 8, |
| 6421 "offset of IsProgram result_shm_id should be 8"); | 6421 "offset of IsProgram result_shm_id should be 8"); |
| 6422 static_assert(offsetof(IsProgram, result_shm_offset) == 12, | 6422 static_assert(offsetof(IsProgram, result_shm_offset) == 12, |
| 6423 "offset of IsProgram result_shm_offset should be 12"); | 6423 "offset of IsProgram result_shm_offset should be 12"); |
| 6424 | 6424 |
| 6425 struct IsRenderbuffer { | 6425 struct IsRenderbuffer { |
| 6426 typedef IsRenderbuffer ValueType; | 6426 typedef IsRenderbuffer ValueType; |
| 6427 static const CommandId kCmdId = kIsRenderbuffer; | 6427 static const CommandId kCmdId = kIsRenderbuffer; |
| 6428 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6428 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6429 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6429 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6430 | 6430 |
| 6431 typedef uint32_t Result; | 6431 typedef uint32_t Result; |
| 6432 | 6432 |
| 6433 static uint32_t ComputeSize() { | 6433 static uint32_t ComputeSize() { |
| 6434 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6434 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6435 } | 6435 } |
| 6436 | 6436 |
| 6437 void SetHeader() { header.SetCmd<ValueType>(); } | 6437 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6438 | 6438 |
| 6439 void Init(GLuint _renderbuffer, | 6439 void Init(GLuint _renderbuffer, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 6468 "offset of IsRenderbuffer renderbuffer should be 4"); | 6468 "offset of IsRenderbuffer renderbuffer should be 4"); |
| 6469 static_assert(offsetof(IsRenderbuffer, result_shm_id) == 8, | 6469 static_assert(offsetof(IsRenderbuffer, result_shm_id) == 8, |
| 6470 "offset of IsRenderbuffer result_shm_id should be 8"); | 6470 "offset of IsRenderbuffer result_shm_id should be 8"); |
| 6471 static_assert(offsetof(IsRenderbuffer, result_shm_offset) == 12, | 6471 static_assert(offsetof(IsRenderbuffer, result_shm_offset) == 12, |
| 6472 "offset of IsRenderbuffer result_shm_offset should be 12"); | 6472 "offset of IsRenderbuffer result_shm_offset should be 12"); |
| 6473 | 6473 |
| 6474 struct IsSampler { | 6474 struct IsSampler { |
| 6475 typedef IsSampler ValueType; | 6475 typedef IsSampler ValueType; |
| 6476 static const CommandId kCmdId = kIsSampler; | 6476 static const CommandId kCmdId = kIsSampler; |
| 6477 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6477 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6478 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6478 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6479 | 6479 |
| 6480 typedef uint32_t Result; | 6480 typedef uint32_t Result; |
| 6481 | 6481 |
| 6482 static uint32_t ComputeSize() { | 6482 static uint32_t ComputeSize() { |
| 6483 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6483 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6484 } | 6484 } |
| 6485 | 6485 |
| 6486 void SetHeader() { header.SetCmd<ValueType>(); } | 6486 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6487 | 6487 |
| 6488 void Init(GLuint _sampler, | 6488 void Init(GLuint _sampler, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6516 "offset of IsSampler sampler should be 4"); | 6516 "offset of IsSampler sampler should be 4"); |
| 6517 static_assert(offsetof(IsSampler, result_shm_id) == 8, | 6517 static_assert(offsetof(IsSampler, result_shm_id) == 8, |
| 6518 "offset of IsSampler result_shm_id should be 8"); | 6518 "offset of IsSampler result_shm_id should be 8"); |
| 6519 static_assert(offsetof(IsSampler, result_shm_offset) == 12, | 6519 static_assert(offsetof(IsSampler, result_shm_offset) == 12, |
| 6520 "offset of IsSampler result_shm_offset should be 12"); | 6520 "offset of IsSampler result_shm_offset should be 12"); |
| 6521 | 6521 |
| 6522 struct IsShader { | 6522 struct IsShader { |
| 6523 typedef IsShader ValueType; | 6523 typedef IsShader ValueType; |
| 6524 static const CommandId kCmdId = kIsShader; | 6524 static const CommandId kCmdId = kIsShader; |
| 6525 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6525 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6526 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6526 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6527 | 6527 |
| 6528 typedef uint32_t Result; | 6528 typedef uint32_t Result; |
| 6529 | 6529 |
| 6530 static uint32_t ComputeSize() { | 6530 static uint32_t ComputeSize() { |
| 6531 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6531 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6532 } | 6532 } |
| 6533 | 6533 |
| 6534 void SetHeader() { header.SetCmd<ValueType>(); } | 6534 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6535 | 6535 |
| 6536 void Init(GLuint _shader, | 6536 void Init(GLuint _shader, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6564 "offset of IsShader shader should be 4"); | 6564 "offset of IsShader shader should be 4"); |
| 6565 static_assert(offsetof(IsShader, result_shm_id) == 8, | 6565 static_assert(offsetof(IsShader, result_shm_id) == 8, |
| 6566 "offset of IsShader result_shm_id should be 8"); | 6566 "offset of IsShader result_shm_id should be 8"); |
| 6567 static_assert(offsetof(IsShader, result_shm_offset) == 12, | 6567 static_assert(offsetof(IsShader, result_shm_offset) == 12, |
| 6568 "offset of IsShader result_shm_offset should be 12"); | 6568 "offset of IsShader result_shm_offset should be 12"); |
| 6569 | 6569 |
| 6570 struct IsSync { | 6570 struct IsSync { |
| 6571 typedef IsSync ValueType; | 6571 typedef IsSync ValueType; |
| 6572 static const CommandId kCmdId = kIsSync; | 6572 static const CommandId kCmdId = kIsSync; |
| 6573 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6573 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6574 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6574 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6575 | 6575 |
| 6576 typedef uint32_t Result; | 6576 typedef uint32_t Result; |
| 6577 | 6577 |
| 6578 static uint32_t ComputeSize() { | 6578 static uint32_t ComputeSize() { |
| 6579 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6579 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6580 } | 6580 } |
| 6581 | 6581 |
| 6582 void SetHeader() { header.SetCmd<ValueType>(); } | 6582 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6583 | 6583 |
| 6584 void Init(GLuint _sync, | 6584 void Init(GLuint _sync, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 6611 static_assert(offsetof(IsSync, sync) == 4, "offset of IsSync sync should be 4"); | 6611 static_assert(offsetof(IsSync, sync) == 4, "offset of IsSync sync should be 4"); |
| 6612 static_assert(offsetof(IsSync, result_shm_id) == 8, | 6612 static_assert(offsetof(IsSync, result_shm_id) == 8, |
| 6613 "offset of IsSync result_shm_id should be 8"); | 6613 "offset of IsSync result_shm_id should be 8"); |
| 6614 static_assert(offsetof(IsSync, result_shm_offset) == 12, | 6614 static_assert(offsetof(IsSync, result_shm_offset) == 12, |
| 6615 "offset of IsSync result_shm_offset should be 12"); | 6615 "offset of IsSync result_shm_offset should be 12"); |
| 6616 | 6616 |
| 6617 struct IsTexture { | 6617 struct IsTexture { |
| 6618 typedef IsTexture ValueType; | 6618 typedef IsTexture ValueType; |
| 6619 static const CommandId kCmdId = kIsTexture; | 6619 static const CommandId kCmdId = kIsTexture; |
| 6620 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6620 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6621 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6621 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6622 | 6622 |
| 6623 typedef uint32_t Result; | 6623 typedef uint32_t Result; |
| 6624 | 6624 |
| 6625 static uint32_t ComputeSize() { | 6625 static uint32_t ComputeSize() { |
| 6626 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6626 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6627 } | 6627 } |
| 6628 | 6628 |
| 6629 void SetHeader() { header.SetCmd<ValueType>(); } | 6629 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6630 | 6630 |
| 6631 void Init(GLuint _texture, | 6631 void Init(GLuint _texture, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6659 "offset of IsTexture texture should be 4"); | 6659 "offset of IsTexture texture should be 4"); |
| 6660 static_assert(offsetof(IsTexture, result_shm_id) == 8, | 6660 static_assert(offsetof(IsTexture, result_shm_id) == 8, |
| 6661 "offset of IsTexture result_shm_id should be 8"); | 6661 "offset of IsTexture result_shm_id should be 8"); |
| 6662 static_assert(offsetof(IsTexture, result_shm_offset) == 12, | 6662 static_assert(offsetof(IsTexture, result_shm_offset) == 12, |
| 6663 "offset of IsTexture result_shm_offset should be 12"); | 6663 "offset of IsTexture result_shm_offset should be 12"); |
| 6664 | 6664 |
| 6665 struct IsTransformFeedback { | 6665 struct IsTransformFeedback { |
| 6666 typedef IsTransformFeedback ValueType; | 6666 typedef IsTransformFeedback ValueType; |
| 6667 static const CommandId kCmdId = kIsTransformFeedback; | 6667 static const CommandId kCmdId = kIsTransformFeedback; |
| 6668 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6668 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6669 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6669 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6670 | 6670 |
| 6671 typedef uint32_t Result; | 6671 typedef uint32_t Result; |
| 6672 | 6672 |
| 6673 static uint32_t ComputeSize() { | 6673 static uint32_t ComputeSize() { |
| 6674 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6674 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6675 } | 6675 } |
| 6676 | 6676 |
| 6677 void SetHeader() { header.SetCmd<ValueType>(); } | 6677 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6678 | 6678 |
| 6679 void Init(GLuint _transformfeedback, | 6679 void Init(GLuint _transformfeedback, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 6708 "offset of IsTransformFeedback transformfeedback should be 4"); | 6708 "offset of IsTransformFeedback transformfeedback should be 4"); |
| 6709 static_assert(offsetof(IsTransformFeedback, result_shm_id) == 8, | 6709 static_assert(offsetof(IsTransformFeedback, result_shm_id) == 8, |
| 6710 "offset of IsTransformFeedback result_shm_id should be 8"); | 6710 "offset of IsTransformFeedback result_shm_id should be 8"); |
| 6711 static_assert(offsetof(IsTransformFeedback, result_shm_offset) == 12, | 6711 static_assert(offsetof(IsTransformFeedback, result_shm_offset) == 12, |
| 6712 "offset of IsTransformFeedback result_shm_offset should be 12"); | 6712 "offset of IsTransformFeedback result_shm_offset should be 12"); |
| 6713 | 6713 |
| 6714 struct LineWidth { | 6714 struct LineWidth { |
| 6715 typedef LineWidth ValueType; | 6715 typedef LineWidth ValueType; |
| 6716 static const CommandId kCmdId = kLineWidth; | 6716 static const CommandId kCmdId = kLineWidth; |
| 6717 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6717 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6718 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6718 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6719 | 6719 |
| 6720 static uint32_t ComputeSize() { | 6720 static uint32_t ComputeSize() { |
| 6721 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6721 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6722 } | 6722 } |
| 6723 | 6723 |
| 6724 void SetHeader() { header.SetCmd<ValueType>(); } | 6724 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6725 | 6725 |
| 6726 void Init(GLfloat _width) { | 6726 void Init(GLfloat _width) { |
| 6727 SetHeader(); | 6727 SetHeader(); |
| 6728 width = _width; | 6728 width = _width; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 6740 static_assert(sizeof(LineWidth) == 8, "size of LineWidth should be 8"); | 6740 static_assert(sizeof(LineWidth) == 8, "size of LineWidth should be 8"); |
| 6741 static_assert(offsetof(LineWidth, header) == 0, | 6741 static_assert(offsetof(LineWidth, header) == 0, |
| 6742 "offset of LineWidth header should be 0"); | 6742 "offset of LineWidth header should be 0"); |
| 6743 static_assert(offsetof(LineWidth, width) == 4, | 6743 static_assert(offsetof(LineWidth, width) == 4, |
| 6744 "offset of LineWidth width should be 4"); | 6744 "offset of LineWidth width should be 4"); |
| 6745 | 6745 |
| 6746 struct LinkProgram { | 6746 struct LinkProgram { |
| 6747 typedef LinkProgram ValueType; | 6747 typedef LinkProgram ValueType; |
| 6748 static const CommandId kCmdId = kLinkProgram; | 6748 static const CommandId kCmdId = kLinkProgram; |
| 6749 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6749 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6750 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 6750 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 6751 | 6751 |
| 6752 static uint32_t ComputeSize() { | 6752 static uint32_t ComputeSize() { |
| 6753 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6753 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6754 } | 6754 } |
| 6755 | 6755 |
| 6756 void SetHeader() { header.SetCmd<ValueType>(); } | 6756 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6757 | 6757 |
| 6758 void Init(GLuint _program) { | 6758 void Init(GLuint _program) { |
| 6759 SetHeader(); | 6759 SetHeader(); |
| 6760 program = _program; | 6760 program = _program; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 6772 static_assert(sizeof(LinkProgram) == 8, "size of LinkProgram should be 8"); | 6772 static_assert(sizeof(LinkProgram) == 8, "size of LinkProgram should be 8"); |
| 6773 static_assert(offsetof(LinkProgram, header) == 0, | 6773 static_assert(offsetof(LinkProgram, header) == 0, |
| 6774 "offset of LinkProgram header should be 0"); | 6774 "offset of LinkProgram header should be 0"); |
| 6775 static_assert(offsetof(LinkProgram, program) == 4, | 6775 static_assert(offsetof(LinkProgram, program) == 4, |
| 6776 "offset of LinkProgram program should be 4"); | 6776 "offset of LinkProgram program should be 4"); |
| 6777 | 6777 |
| 6778 struct PauseTransformFeedback { | 6778 struct PauseTransformFeedback { |
| 6779 typedef PauseTransformFeedback ValueType; | 6779 typedef PauseTransformFeedback ValueType; |
| 6780 static const CommandId kCmdId = kPauseTransformFeedback; | 6780 static const CommandId kCmdId = kPauseTransformFeedback; |
| 6781 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6781 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6782 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6782 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6783 | 6783 |
| 6784 static uint32_t ComputeSize() { | 6784 static uint32_t ComputeSize() { |
| 6785 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6785 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6786 } | 6786 } |
| 6787 | 6787 |
| 6788 void SetHeader() { header.SetCmd<ValueType>(); } | 6788 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6789 | 6789 |
| 6790 void Init() { SetHeader(); } | 6790 void Init() { SetHeader(); } |
| 6791 | 6791 |
| 6792 void* Set(void* cmd) { | 6792 void* Set(void* cmd) { |
| 6793 static_cast<ValueType*>(cmd)->Init(); | 6793 static_cast<ValueType*>(cmd)->Init(); |
| 6794 return NextCmdAddress<ValueType>(cmd); | 6794 return NextCmdAddress<ValueType>(cmd); |
| 6795 } | 6795 } |
| 6796 | 6796 |
| 6797 gpu::CommandHeader header; | 6797 gpu::CommandHeader header; |
| 6798 }; | 6798 }; |
| 6799 | 6799 |
| 6800 static_assert(sizeof(PauseTransformFeedback) == 4, | 6800 static_assert(sizeof(PauseTransformFeedback) == 4, |
| 6801 "size of PauseTransformFeedback should be 4"); | 6801 "size of PauseTransformFeedback should be 4"); |
| 6802 static_assert(offsetof(PauseTransformFeedback, header) == 0, | 6802 static_assert(offsetof(PauseTransformFeedback, header) == 0, |
| 6803 "offset of PauseTransformFeedback header should be 0"); | 6803 "offset of PauseTransformFeedback header should be 0"); |
| 6804 | 6804 |
| 6805 struct PixelStorei { | 6805 struct PixelStorei { |
| 6806 typedef PixelStorei ValueType; | 6806 typedef PixelStorei ValueType; |
| 6807 static const CommandId kCmdId = kPixelStorei; | 6807 static const CommandId kCmdId = kPixelStorei; |
| 6808 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6808 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6809 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6809 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6810 | 6810 |
| 6811 static uint32_t ComputeSize() { | 6811 static uint32_t ComputeSize() { |
| 6812 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6812 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6813 } | 6813 } |
| 6814 | 6814 |
| 6815 void SetHeader() { header.SetCmd<ValueType>(); } | 6815 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6816 | 6816 |
| 6817 void Init(GLenum _pname, GLint _param) { | 6817 void Init(GLenum _pname, GLint _param) { |
| 6818 SetHeader(); | 6818 SetHeader(); |
| 6819 pname = _pname; | 6819 pname = _pname; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 6835 "offset of PixelStorei header should be 0"); | 6835 "offset of PixelStorei header should be 0"); |
| 6836 static_assert(offsetof(PixelStorei, pname) == 4, | 6836 static_assert(offsetof(PixelStorei, pname) == 4, |
| 6837 "offset of PixelStorei pname should be 4"); | 6837 "offset of PixelStorei pname should be 4"); |
| 6838 static_assert(offsetof(PixelStorei, param) == 8, | 6838 static_assert(offsetof(PixelStorei, param) == 8, |
| 6839 "offset of PixelStorei param should be 8"); | 6839 "offset of PixelStorei param should be 8"); |
| 6840 | 6840 |
| 6841 struct PolygonOffset { | 6841 struct PolygonOffset { |
| 6842 typedef PolygonOffset ValueType; | 6842 typedef PolygonOffset ValueType; |
| 6843 static const CommandId kCmdId = kPolygonOffset; | 6843 static const CommandId kCmdId = kPolygonOffset; |
| 6844 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6844 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6845 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 6845 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 6846 | 6846 |
| 6847 static uint32_t ComputeSize() { | 6847 static uint32_t ComputeSize() { |
| 6848 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6848 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6849 } | 6849 } |
| 6850 | 6850 |
| 6851 void SetHeader() { header.SetCmd<ValueType>(); } | 6851 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6852 | 6852 |
| 6853 void Init(GLfloat _factor, GLfloat _units) { | 6853 void Init(GLfloat _factor, GLfloat _units) { |
| 6854 SetHeader(); | 6854 SetHeader(); |
| 6855 factor = _factor; | 6855 factor = _factor; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6872 "offset of PolygonOffset header should be 0"); | 6872 "offset of PolygonOffset header should be 0"); |
| 6873 static_assert(offsetof(PolygonOffset, factor) == 4, | 6873 static_assert(offsetof(PolygonOffset, factor) == 4, |
| 6874 "offset of PolygonOffset factor should be 4"); | 6874 "offset of PolygonOffset factor should be 4"); |
| 6875 static_assert(offsetof(PolygonOffset, units) == 8, | 6875 static_assert(offsetof(PolygonOffset, units) == 8, |
| 6876 "offset of PolygonOffset units should be 8"); | 6876 "offset of PolygonOffset units should be 8"); |
| 6877 | 6877 |
| 6878 struct ReadBuffer { | 6878 struct ReadBuffer { |
| 6879 typedef ReadBuffer ValueType; | 6879 typedef ReadBuffer ValueType; |
| 6880 static const CommandId kCmdId = kReadBuffer; | 6880 static const CommandId kCmdId = kReadBuffer; |
| 6881 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6881 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6882 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 6882 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 6883 | 6883 |
| 6884 static uint32_t ComputeSize() { | 6884 static uint32_t ComputeSize() { |
| 6885 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6885 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6886 } | 6886 } |
| 6887 | 6887 |
| 6888 void SetHeader() { header.SetCmd<ValueType>(); } | 6888 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6889 | 6889 |
| 6890 void Init(GLenum _src) { | 6890 void Init(GLenum _src) { |
| 6891 SetHeader(); | 6891 SetHeader(); |
| 6892 src = _src; | 6892 src = _src; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 6907 static_assert(offsetof(ReadBuffer, src) == 4, | 6907 static_assert(offsetof(ReadBuffer, src) == 4, |
| 6908 "offset of ReadBuffer src should be 4"); | 6908 "offset of ReadBuffer src should be 4"); |
| 6909 | 6909 |
| 6910 // ReadPixels has the result separated from the pixel buffer so that | 6910 // ReadPixels has the result separated from the pixel buffer so that |
| 6911 // it is easier to specify the result going to some specific place | 6911 // it is easier to specify the result going to some specific place |
| 6912 // that exactly fits the rectangle of pixels. | 6912 // that exactly fits the rectangle of pixels. |
| 6913 struct ReadPixels { | 6913 struct ReadPixels { |
| 6914 typedef ReadPixels ValueType; | 6914 typedef ReadPixels ValueType; |
| 6915 static const CommandId kCmdId = kReadPixels; | 6915 static const CommandId kCmdId = kReadPixels; |
| 6916 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 6916 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 6917 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 6917 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 6918 | 6918 |
| 6919 typedef uint32_t Result; | 6919 typedef uint32_t Result; |
| 6920 | 6920 |
| 6921 static uint32_t ComputeSize() { | 6921 static uint32_t ComputeSize() { |
| 6922 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 6922 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 6923 } | 6923 } |
| 6924 | 6924 |
| 6925 void SetHeader() { header.SetCmd<ValueType>(); } | 6925 void SetHeader() { header.SetCmd<ValueType>(); } |
| 6926 | 6926 |
| 6927 void Init(GLint _x, | 6927 void Init(GLint _x, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7004 "offset of ReadPixels result_shm_id should be 36"); | 7004 "offset of ReadPixels result_shm_id should be 36"); |
| 7005 static_assert(offsetof(ReadPixels, result_shm_offset) == 40, | 7005 static_assert(offsetof(ReadPixels, result_shm_offset) == 40, |
| 7006 "offset of ReadPixels result_shm_offset should be 40"); | 7006 "offset of ReadPixels result_shm_offset should be 40"); |
| 7007 static_assert(offsetof(ReadPixels, async) == 44, | 7007 static_assert(offsetof(ReadPixels, async) == 44, |
| 7008 "offset of ReadPixels async should be 44"); | 7008 "offset of ReadPixels async should be 44"); |
| 7009 | 7009 |
| 7010 struct ReleaseShaderCompiler { | 7010 struct ReleaseShaderCompiler { |
| 7011 typedef ReleaseShaderCompiler ValueType; | 7011 typedef ReleaseShaderCompiler ValueType; |
| 7012 static const CommandId kCmdId = kReleaseShaderCompiler; | 7012 static const CommandId kCmdId = kReleaseShaderCompiler; |
| 7013 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7013 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7014 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7014 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7015 | 7015 |
| 7016 static uint32_t ComputeSize() { | 7016 static uint32_t ComputeSize() { |
| 7017 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7017 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7018 } | 7018 } |
| 7019 | 7019 |
| 7020 void SetHeader() { header.SetCmd<ValueType>(); } | 7020 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7021 | 7021 |
| 7022 void Init() { SetHeader(); } | 7022 void Init() { SetHeader(); } |
| 7023 | 7023 |
| 7024 void* Set(void* cmd) { | 7024 void* Set(void* cmd) { |
| 7025 static_cast<ValueType*>(cmd)->Init(); | 7025 static_cast<ValueType*>(cmd)->Init(); |
| 7026 return NextCmdAddress<ValueType>(cmd); | 7026 return NextCmdAddress<ValueType>(cmd); |
| 7027 } | 7027 } |
| 7028 | 7028 |
| 7029 gpu::CommandHeader header; | 7029 gpu::CommandHeader header; |
| 7030 }; | 7030 }; |
| 7031 | 7031 |
| 7032 static_assert(sizeof(ReleaseShaderCompiler) == 4, | 7032 static_assert(sizeof(ReleaseShaderCompiler) == 4, |
| 7033 "size of ReleaseShaderCompiler should be 4"); | 7033 "size of ReleaseShaderCompiler should be 4"); |
| 7034 static_assert(offsetof(ReleaseShaderCompiler, header) == 0, | 7034 static_assert(offsetof(ReleaseShaderCompiler, header) == 0, |
| 7035 "offset of ReleaseShaderCompiler header should be 0"); | 7035 "offset of ReleaseShaderCompiler header should be 0"); |
| 7036 | 7036 |
| 7037 struct RenderbufferStorage { | 7037 struct RenderbufferStorage { |
| 7038 typedef RenderbufferStorage ValueType; | 7038 typedef RenderbufferStorage ValueType; |
| 7039 static const CommandId kCmdId = kRenderbufferStorage; | 7039 static const CommandId kCmdId = kRenderbufferStorage; |
| 7040 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7040 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7041 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 7041 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 7042 | 7042 |
| 7043 static uint32_t ComputeSize() { | 7043 static uint32_t ComputeSize() { |
| 7044 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7044 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7045 } | 7045 } |
| 7046 | 7046 |
| 7047 void SetHeader() { header.SetCmd<ValueType>(); } | 7047 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7048 | 7048 |
| 7049 void Init(GLenum _target, | 7049 void Init(GLenum _target, |
| 7050 GLenum _internalformat, | 7050 GLenum _internalformat, |
| 7051 GLsizei _width, | 7051 GLsizei _width, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7084 "offset of RenderbufferStorage internalformat should be 8"); | 7084 "offset of RenderbufferStorage internalformat should be 8"); |
| 7085 static_assert(offsetof(RenderbufferStorage, width) == 12, | 7085 static_assert(offsetof(RenderbufferStorage, width) == 12, |
| 7086 "offset of RenderbufferStorage width should be 12"); | 7086 "offset of RenderbufferStorage width should be 12"); |
| 7087 static_assert(offsetof(RenderbufferStorage, height) == 16, | 7087 static_assert(offsetof(RenderbufferStorage, height) == 16, |
| 7088 "offset of RenderbufferStorage height should be 16"); | 7088 "offset of RenderbufferStorage height should be 16"); |
| 7089 | 7089 |
| 7090 struct ResumeTransformFeedback { | 7090 struct ResumeTransformFeedback { |
| 7091 typedef ResumeTransformFeedback ValueType; | 7091 typedef ResumeTransformFeedback ValueType; |
| 7092 static const CommandId kCmdId = kResumeTransformFeedback; | 7092 static const CommandId kCmdId = kResumeTransformFeedback; |
| 7093 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7093 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7094 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7094 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7095 | 7095 |
| 7096 static uint32_t ComputeSize() { | 7096 static uint32_t ComputeSize() { |
| 7097 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7097 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7098 } | 7098 } |
| 7099 | 7099 |
| 7100 void SetHeader() { header.SetCmd<ValueType>(); } | 7100 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7101 | 7101 |
| 7102 void Init() { SetHeader(); } | 7102 void Init() { SetHeader(); } |
| 7103 | 7103 |
| 7104 void* Set(void* cmd) { | 7104 void* Set(void* cmd) { |
| 7105 static_cast<ValueType*>(cmd)->Init(); | 7105 static_cast<ValueType*>(cmd)->Init(); |
| 7106 return NextCmdAddress<ValueType>(cmd); | 7106 return NextCmdAddress<ValueType>(cmd); |
| 7107 } | 7107 } |
| 7108 | 7108 |
| 7109 gpu::CommandHeader header; | 7109 gpu::CommandHeader header; |
| 7110 }; | 7110 }; |
| 7111 | 7111 |
| 7112 static_assert(sizeof(ResumeTransformFeedback) == 4, | 7112 static_assert(sizeof(ResumeTransformFeedback) == 4, |
| 7113 "size of ResumeTransformFeedback should be 4"); | 7113 "size of ResumeTransformFeedback should be 4"); |
| 7114 static_assert(offsetof(ResumeTransformFeedback, header) == 0, | 7114 static_assert(offsetof(ResumeTransformFeedback, header) == 0, |
| 7115 "offset of ResumeTransformFeedback header should be 0"); | 7115 "offset of ResumeTransformFeedback header should be 0"); |
| 7116 | 7116 |
| 7117 struct SampleCoverage { | 7117 struct SampleCoverage { |
| 7118 typedef SampleCoverage ValueType; | 7118 typedef SampleCoverage ValueType; |
| 7119 static const CommandId kCmdId = kSampleCoverage; | 7119 static const CommandId kCmdId = kSampleCoverage; |
| 7120 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7120 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7121 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7121 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7122 | 7122 |
| 7123 static uint32_t ComputeSize() { | 7123 static uint32_t ComputeSize() { |
| 7124 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7124 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7125 } | 7125 } |
| 7126 | 7126 |
| 7127 void SetHeader() { header.SetCmd<ValueType>(); } | 7127 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7128 | 7128 |
| 7129 void Init(GLclampf _value, GLboolean _invert) { | 7129 void Init(GLclampf _value, GLboolean _invert) { |
| 7130 SetHeader(); | 7130 SetHeader(); |
| 7131 value = _value; | 7131 value = _value; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 7148 "offset of SampleCoverage header should be 0"); | 7148 "offset of SampleCoverage header should be 0"); |
| 7149 static_assert(offsetof(SampleCoverage, value) == 4, | 7149 static_assert(offsetof(SampleCoverage, value) == 4, |
| 7150 "offset of SampleCoverage value should be 4"); | 7150 "offset of SampleCoverage value should be 4"); |
| 7151 static_assert(offsetof(SampleCoverage, invert) == 8, | 7151 static_assert(offsetof(SampleCoverage, invert) == 8, |
| 7152 "offset of SampleCoverage invert should be 8"); | 7152 "offset of SampleCoverage invert should be 8"); |
| 7153 | 7153 |
| 7154 struct SamplerParameterf { | 7154 struct SamplerParameterf { |
| 7155 typedef SamplerParameterf ValueType; | 7155 typedef SamplerParameterf ValueType; |
| 7156 static const CommandId kCmdId = kSamplerParameterf; | 7156 static const CommandId kCmdId = kSamplerParameterf; |
| 7157 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7157 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7158 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7158 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7159 | 7159 |
| 7160 static uint32_t ComputeSize() { | 7160 static uint32_t ComputeSize() { |
| 7161 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7161 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7162 } | 7162 } |
| 7163 | 7163 |
| 7164 void SetHeader() { header.SetCmd<ValueType>(); } | 7164 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7165 | 7165 |
| 7166 void Init(GLuint _sampler, GLenum _pname, GLfloat _param) { | 7166 void Init(GLuint _sampler, GLenum _pname, GLfloat _param) { |
| 7167 SetHeader(); | 7167 SetHeader(); |
| 7168 sampler = _sampler; | 7168 sampler = _sampler; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 7189 "offset of SamplerParameterf sampler should be 4"); | 7189 "offset of SamplerParameterf sampler should be 4"); |
| 7190 static_assert(offsetof(SamplerParameterf, pname) == 8, | 7190 static_assert(offsetof(SamplerParameterf, pname) == 8, |
| 7191 "offset of SamplerParameterf pname should be 8"); | 7191 "offset of SamplerParameterf pname should be 8"); |
| 7192 static_assert(offsetof(SamplerParameterf, param) == 12, | 7192 static_assert(offsetof(SamplerParameterf, param) == 12, |
| 7193 "offset of SamplerParameterf param should be 12"); | 7193 "offset of SamplerParameterf param should be 12"); |
| 7194 | 7194 |
| 7195 struct SamplerParameterfvImmediate { | 7195 struct SamplerParameterfvImmediate { |
| 7196 typedef SamplerParameterfvImmediate ValueType; | 7196 typedef SamplerParameterfvImmediate ValueType; |
| 7197 static const CommandId kCmdId = kSamplerParameterfvImmediate; | 7197 static const CommandId kCmdId = kSamplerParameterfvImmediate; |
| 7198 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 7198 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 7199 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7199 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7200 | 7200 |
| 7201 static uint32_t ComputeDataSize() { | 7201 static uint32_t ComputeDataSize() { |
| 7202 return static_cast<uint32_t>(sizeof(GLfloat) * 1); | 7202 return static_cast<uint32_t>(sizeof(GLfloat) * 1); |
| 7203 } | 7203 } |
| 7204 | 7204 |
| 7205 static uint32_t ComputeSize() { | 7205 static uint32_t ComputeSize() { |
| 7206 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 7206 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 7207 } | 7207 } |
| 7208 | 7208 |
| 7209 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 7209 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 7232 "offset of SamplerParameterfvImmediate header should be 0"); | 7232 "offset of SamplerParameterfvImmediate header should be 0"); |
| 7233 static_assert(offsetof(SamplerParameterfvImmediate, sampler) == 4, | 7233 static_assert(offsetof(SamplerParameterfvImmediate, sampler) == 4, |
| 7234 "offset of SamplerParameterfvImmediate sampler should be 4"); | 7234 "offset of SamplerParameterfvImmediate sampler should be 4"); |
| 7235 static_assert(offsetof(SamplerParameterfvImmediate, pname) == 8, | 7235 static_assert(offsetof(SamplerParameterfvImmediate, pname) == 8, |
| 7236 "offset of SamplerParameterfvImmediate pname should be 8"); | 7236 "offset of SamplerParameterfvImmediate pname should be 8"); |
| 7237 | 7237 |
| 7238 struct SamplerParameteri { | 7238 struct SamplerParameteri { |
| 7239 typedef SamplerParameteri ValueType; | 7239 typedef SamplerParameteri ValueType; |
| 7240 static const CommandId kCmdId = kSamplerParameteri; | 7240 static const CommandId kCmdId = kSamplerParameteri; |
| 7241 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7241 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7242 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7242 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7243 | 7243 |
| 7244 static uint32_t ComputeSize() { | 7244 static uint32_t ComputeSize() { |
| 7245 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7245 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7246 } | 7246 } |
| 7247 | 7247 |
| 7248 void SetHeader() { header.SetCmd<ValueType>(); } | 7248 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7249 | 7249 |
| 7250 void Init(GLuint _sampler, GLenum _pname, GLint _param) { | 7250 void Init(GLuint _sampler, GLenum _pname, GLint _param) { |
| 7251 SetHeader(); | 7251 SetHeader(); |
| 7252 sampler = _sampler; | 7252 sampler = _sampler; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 7273 "offset of SamplerParameteri sampler should be 4"); | 7273 "offset of SamplerParameteri sampler should be 4"); |
| 7274 static_assert(offsetof(SamplerParameteri, pname) == 8, | 7274 static_assert(offsetof(SamplerParameteri, pname) == 8, |
| 7275 "offset of SamplerParameteri pname should be 8"); | 7275 "offset of SamplerParameteri pname should be 8"); |
| 7276 static_assert(offsetof(SamplerParameteri, param) == 12, | 7276 static_assert(offsetof(SamplerParameteri, param) == 12, |
| 7277 "offset of SamplerParameteri param should be 12"); | 7277 "offset of SamplerParameteri param should be 12"); |
| 7278 | 7278 |
| 7279 struct SamplerParameterivImmediate { | 7279 struct SamplerParameterivImmediate { |
| 7280 typedef SamplerParameterivImmediate ValueType; | 7280 typedef SamplerParameterivImmediate ValueType; |
| 7281 static const CommandId kCmdId = kSamplerParameterivImmediate; | 7281 static const CommandId kCmdId = kSamplerParameterivImmediate; |
| 7282 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 7282 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 7283 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7283 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7284 | 7284 |
| 7285 static uint32_t ComputeDataSize() { | 7285 static uint32_t ComputeDataSize() { |
| 7286 return static_cast<uint32_t>(sizeof(GLint) * 1); | 7286 return static_cast<uint32_t>(sizeof(GLint) * 1); |
| 7287 } | 7287 } |
| 7288 | 7288 |
| 7289 static uint32_t ComputeSize() { | 7289 static uint32_t ComputeSize() { |
| 7290 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 7290 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 7291 } | 7291 } |
| 7292 | 7292 |
| 7293 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 7293 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 7316 "offset of SamplerParameterivImmediate header should be 0"); | 7316 "offset of SamplerParameterivImmediate header should be 0"); |
| 7317 static_assert(offsetof(SamplerParameterivImmediate, sampler) == 4, | 7317 static_assert(offsetof(SamplerParameterivImmediate, sampler) == 4, |
| 7318 "offset of SamplerParameterivImmediate sampler should be 4"); | 7318 "offset of SamplerParameterivImmediate sampler should be 4"); |
| 7319 static_assert(offsetof(SamplerParameterivImmediate, pname) == 8, | 7319 static_assert(offsetof(SamplerParameterivImmediate, pname) == 8, |
| 7320 "offset of SamplerParameterivImmediate pname should be 8"); | 7320 "offset of SamplerParameterivImmediate pname should be 8"); |
| 7321 | 7321 |
| 7322 struct Scissor { | 7322 struct Scissor { |
| 7323 typedef Scissor ValueType; | 7323 typedef Scissor ValueType; |
| 7324 static const CommandId kCmdId = kScissor; | 7324 static const CommandId kCmdId = kScissor; |
| 7325 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7325 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7326 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7326 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7327 | 7327 |
| 7328 static uint32_t ComputeSize() { | 7328 static uint32_t ComputeSize() { |
| 7329 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7329 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7330 } | 7330 } |
| 7331 | 7331 |
| 7332 void SetHeader() { header.SetCmd<ValueType>(); } | 7332 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7333 | 7333 |
| 7334 void Init(GLint _x, GLint _y, GLsizei _width, GLsizei _height) { | 7334 void Init(GLint _x, GLint _y, GLsizei _width, GLsizei _height) { |
| 7335 SetHeader(); | 7335 SetHeader(); |
| 7336 x = _x; | 7336 x = _x; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 7358 static_assert(offsetof(Scissor, y) == 8, "offset of Scissor y should be 8"); | 7358 static_assert(offsetof(Scissor, y) == 8, "offset of Scissor y should be 8"); |
| 7359 static_assert(offsetof(Scissor, width) == 12, | 7359 static_assert(offsetof(Scissor, width) == 12, |
| 7360 "offset of Scissor width should be 12"); | 7360 "offset of Scissor width should be 12"); |
| 7361 static_assert(offsetof(Scissor, height) == 16, | 7361 static_assert(offsetof(Scissor, height) == 16, |
| 7362 "offset of Scissor height should be 16"); | 7362 "offset of Scissor height should be 16"); |
| 7363 | 7363 |
| 7364 struct ShaderBinary { | 7364 struct ShaderBinary { |
| 7365 typedef ShaderBinary ValueType; | 7365 typedef ShaderBinary ValueType; |
| 7366 static const CommandId kCmdId = kShaderBinary; | 7366 static const CommandId kCmdId = kShaderBinary; |
| 7367 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7367 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7368 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7368 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7369 | 7369 |
| 7370 static uint32_t ComputeSize() { | 7370 static uint32_t ComputeSize() { |
| 7371 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7371 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7372 } | 7372 } |
| 7373 | 7373 |
| 7374 void SetHeader() { header.SetCmd<ValueType>(); } | 7374 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7375 | 7375 |
| 7376 void Init(GLsizei _n, | 7376 void Init(GLsizei _n, |
| 7377 uint32_t _shaders_shm_id, | 7377 uint32_t _shaders_shm_id, |
| 7378 uint32_t _shaders_shm_offset, | 7378 uint32_t _shaders_shm_offset, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7429 "offset of ShaderBinary binary_shm_id should be 20"); | 7429 "offset of ShaderBinary binary_shm_id should be 20"); |
| 7430 static_assert(offsetof(ShaderBinary, binary_shm_offset) == 24, | 7430 static_assert(offsetof(ShaderBinary, binary_shm_offset) == 24, |
| 7431 "offset of ShaderBinary binary_shm_offset should be 24"); | 7431 "offset of ShaderBinary binary_shm_offset should be 24"); |
| 7432 static_assert(offsetof(ShaderBinary, length) == 28, | 7432 static_assert(offsetof(ShaderBinary, length) == 28, |
| 7433 "offset of ShaderBinary length should be 28"); | 7433 "offset of ShaderBinary length should be 28"); |
| 7434 | 7434 |
| 7435 struct ShaderSourceBucket { | 7435 struct ShaderSourceBucket { |
| 7436 typedef ShaderSourceBucket ValueType; | 7436 typedef ShaderSourceBucket ValueType; |
| 7437 static const CommandId kCmdId = kShaderSourceBucket; | 7437 static const CommandId kCmdId = kShaderSourceBucket; |
| 7438 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7438 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7439 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7439 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7440 | 7440 |
| 7441 static uint32_t ComputeSize() { | 7441 static uint32_t ComputeSize() { |
| 7442 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7442 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7443 } | 7443 } |
| 7444 | 7444 |
| 7445 void SetHeader() { header.SetCmd<ValueType>(); } | 7445 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7446 | 7446 |
| 7447 void Init(GLuint _shader, uint32_t _str_bucket_id) { | 7447 void Init(GLuint _shader, uint32_t _str_bucket_id) { |
| 7448 SetHeader(); | 7448 SetHeader(); |
| 7449 shader = _shader; | 7449 shader = _shader; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 7466 "offset of ShaderSourceBucket header should be 0"); | 7466 "offset of ShaderSourceBucket header should be 0"); |
| 7467 static_assert(offsetof(ShaderSourceBucket, shader) == 4, | 7467 static_assert(offsetof(ShaderSourceBucket, shader) == 4, |
| 7468 "offset of ShaderSourceBucket shader should be 4"); | 7468 "offset of ShaderSourceBucket shader should be 4"); |
| 7469 static_assert(offsetof(ShaderSourceBucket, str_bucket_id) == 8, | 7469 static_assert(offsetof(ShaderSourceBucket, str_bucket_id) == 8, |
| 7470 "offset of ShaderSourceBucket str_bucket_id should be 8"); | 7470 "offset of ShaderSourceBucket str_bucket_id should be 8"); |
| 7471 | 7471 |
| 7472 struct StencilFunc { | 7472 struct StencilFunc { |
| 7473 typedef StencilFunc ValueType; | 7473 typedef StencilFunc ValueType; |
| 7474 static const CommandId kCmdId = kStencilFunc; | 7474 static const CommandId kCmdId = kStencilFunc; |
| 7475 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7475 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7476 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7476 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7477 | 7477 |
| 7478 static uint32_t ComputeSize() { | 7478 static uint32_t ComputeSize() { |
| 7479 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7479 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7480 } | 7480 } |
| 7481 | 7481 |
| 7482 void SetHeader() { header.SetCmd<ValueType>(); } | 7482 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7483 | 7483 |
| 7484 void Init(GLenum _func, GLint _ref, GLuint _mask) { | 7484 void Init(GLenum _func, GLint _ref, GLuint _mask) { |
| 7485 SetHeader(); | 7485 SetHeader(); |
| 7486 func = _func; | 7486 func = _func; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 7506 "offset of StencilFunc func should be 4"); | 7506 "offset of StencilFunc func should be 4"); |
| 7507 static_assert(offsetof(StencilFunc, ref) == 8, | 7507 static_assert(offsetof(StencilFunc, ref) == 8, |
| 7508 "offset of StencilFunc ref should be 8"); | 7508 "offset of StencilFunc ref should be 8"); |
| 7509 static_assert(offsetof(StencilFunc, mask) == 12, | 7509 static_assert(offsetof(StencilFunc, mask) == 12, |
| 7510 "offset of StencilFunc mask should be 12"); | 7510 "offset of StencilFunc mask should be 12"); |
| 7511 | 7511 |
| 7512 struct StencilFuncSeparate { | 7512 struct StencilFuncSeparate { |
| 7513 typedef StencilFuncSeparate ValueType; | 7513 typedef StencilFuncSeparate ValueType; |
| 7514 static const CommandId kCmdId = kStencilFuncSeparate; | 7514 static const CommandId kCmdId = kStencilFuncSeparate; |
| 7515 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7515 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7516 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7516 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7517 | 7517 |
| 7518 static uint32_t ComputeSize() { | 7518 static uint32_t ComputeSize() { |
| 7519 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7519 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7520 } | 7520 } |
| 7521 | 7521 |
| 7522 void SetHeader() { header.SetCmd<ValueType>(); } | 7522 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7523 | 7523 |
| 7524 void Init(GLenum _face, GLenum _func, GLint _ref, GLuint _mask) { | 7524 void Init(GLenum _face, GLenum _func, GLint _ref, GLuint _mask) { |
| 7525 SetHeader(); | 7525 SetHeader(); |
| 7526 face = _face; | 7526 face = _face; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 7551 "offset of StencilFuncSeparate func should be 8"); | 7551 "offset of StencilFuncSeparate func should be 8"); |
| 7552 static_assert(offsetof(StencilFuncSeparate, ref) == 12, | 7552 static_assert(offsetof(StencilFuncSeparate, ref) == 12, |
| 7553 "offset of StencilFuncSeparate ref should be 12"); | 7553 "offset of StencilFuncSeparate ref should be 12"); |
| 7554 static_assert(offsetof(StencilFuncSeparate, mask) == 16, | 7554 static_assert(offsetof(StencilFuncSeparate, mask) == 16, |
| 7555 "offset of StencilFuncSeparate mask should be 16"); | 7555 "offset of StencilFuncSeparate mask should be 16"); |
| 7556 | 7556 |
| 7557 struct StencilMask { | 7557 struct StencilMask { |
| 7558 typedef StencilMask ValueType; | 7558 typedef StencilMask ValueType; |
| 7559 static const CommandId kCmdId = kStencilMask; | 7559 static const CommandId kCmdId = kStencilMask; |
| 7560 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7560 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7561 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7561 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7562 | 7562 |
| 7563 static uint32_t ComputeSize() { | 7563 static uint32_t ComputeSize() { |
| 7564 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7564 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7565 } | 7565 } |
| 7566 | 7566 |
| 7567 void SetHeader() { header.SetCmd<ValueType>(); } | 7567 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7568 | 7568 |
| 7569 void Init(GLuint _mask) { | 7569 void Init(GLuint _mask) { |
| 7570 SetHeader(); | 7570 SetHeader(); |
| 7571 mask = _mask; | 7571 mask = _mask; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 7583 static_assert(sizeof(StencilMask) == 8, "size of StencilMask should be 8"); | 7583 static_assert(sizeof(StencilMask) == 8, "size of StencilMask should be 8"); |
| 7584 static_assert(offsetof(StencilMask, header) == 0, | 7584 static_assert(offsetof(StencilMask, header) == 0, |
| 7585 "offset of StencilMask header should be 0"); | 7585 "offset of StencilMask header should be 0"); |
| 7586 static_assert(offsetof(StencilMask, mask) == 4, | 7586 static_assert(offsetof(StencilMask, mask) == 4, |
| 7587 "offset of StencilMask mask should be 4"); | 7587 "offset of StencilMask mask should be 4"); |
| 7588 | 7588 |
| 7589 struct StencilMaskSeparate { | 7589 struct StencilMaskSeparate { |
| 7590 typedef StencilMaskSeparate ValueType; | 7590 typedef StencilMaskSeparate ValueType; |
| 7591 static const CommandId kCmdId = kStencilMaskSeparate; | 7591 static const CommandId kCmdId = kStencilMaskSeparate; |
| 7592 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7592 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7593 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7593 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7594 | 7594 |
| 7595 static uint32_t ComputeSize() { | 7595 static uint32_t ComputeSize() { |
| 7596 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7596 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7597 } | 7597 } |
| 7598 | 7598 |
| 7599 void SetHeader() { header.SetCmd<ValueType>(); } | 7599 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7600 | 7600 |
| 7601 void Init(GLenum _face, GLuint _mask) { | 7601 void Init(GLenum _face, GLuint _mask) { |
| 7602 SetHeader(); | 7602 SetHeader(); |
| 7603 face = _face; | 7603 face = _face; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 7620 "offset of StencilMaskSeparate header should be 0"); | 7620 "offset of StencilMaskSeparate header should be 0"); |
| 7621 static_assert(offsetof(StencilMaskSeparate, face) == 4, | 7621 static_assert(offsetof(StencilMaskSeparate, face) == 4, |
| 7622 "offset of StencilMaskSeparate face should be 4"); | 7622 "offset of StencilMaskSeparate face should be 4"); |
| 7623 static_assert(offsetof(StencilMaskSeparate, mask) == 8, | 7623 static_assert(offsetof(StencilMaskSeparate, mask) == 8, |
| 7624 "offset of StencilMaskSeparate mask should be 8"); | 7624 "offset of StencilMaskSeparate mask should be 8"); |
| 7625 | 7625 |
| 7626 struct StencilOp { | 7626 struct StencilOp { |
| 7627 typedef StencilOp ValueType; | 7627 typedef StencilOp ValueType; |
| 7628 static const CommandId kCmdId = kStencilOp; | 7628 static const CommandId kCmdId = kStencilOp; |
| 7629 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7629 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7630 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7630 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7631 | 7631 |
| 7632 static uint32_t ComputeSize() { | 7632 static uint32_t ComputeSize() { |
| 7633 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7633 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7634 } | 7634 } |
| 7635 | 7635 |
| 7636 void SetHeader() { header.SetCmd<ValueType>(); } | 7636 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7637 | 7637 |
| 7638 void Init(GLenum _fail, GLenum _zfail, GLenum _zpass) { | 7638 void Init(GLenum _fail, GLenum _zfail, GLenum _zpass) { |
| 7639 SetHeader(); | 7639 SetHeader(); |
| 7640 fail = _fail; | 7640 fail = _fail; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 7660 "offset of StencilOp fail should be 4"); | 7660 "offset of StencilOp fail should be 4"); |
| 7661 static_assert(offsetof(StencilOp, zfail) == 8, | 7661 static_assert(offsetof(StencilOp, zfail) == 8, |
| 7662 "offset of StencilOp zfail should be 8"); | 7662 "offset of StencilOp zfail should be 8"); |
| 7663 static_assert(offsetof(StencilOp, zpass) == 12, | 7663 static_assert(offsetof(StencilOp, zpass) == 12, |
| 7664 "offset of StencilOp zpass should be 12"); | 7664 "offset of StencilOp zpass should be 12"); |
| 7665 | 7665 |
| 7666 struct StencilOpSeparate { | 7666 struct StencilOpSeparate { |
| 7667 typedef StencilOpSeparate ValueType; | 7667 typedef StencilOpSeparate ValueType; |
| 7668 static const CommandId kCmdId = kStencilOpSeparate; | 7668 static const CommandId kCmdId = kStencilOpSeparate; |
| 7669 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7669 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7670 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7670 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7671 | 7671 |
| 7672 static uint32_t ComputeSize() { | 7672 static uint32_t ComputeSize() { |
| 7673 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7673 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7674 } | 7674 } |
| 7675 | 7675 |
| 7676 void SetHeader() { header.SetCmd<ValueType>(); } | 7676 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7677 | 7677 |
| 7678 void Init(GLenum _face, GLenum _fail, GLenum _zfail, GLenum _zpass) { | 7678 void Init(GLenum _face, GLenum _fail, GLenum _zfail, GLenum _zpass) { |
| 7679 SetHeader(); | 7679 SetHeader(); |
| 7680 face = _face; | 7680 face = _face; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 7709 "offset of StencilOpSeparate fail should be 8"); | 7709 "offset of StencilOpSeparate fail should be 8"); |
| 7710 static_assert(offsetof(StencilOpSeparate, zfail) == 12, | 7710 static_assert(offsetof(StencilOpSeparate, zfail) == 12, |
| 7711 "offset of StencilOpSeparate zfail should be 12"); | 7711 "offset of StencilOpSeparate zfail should be 12"); |
| 7712 static_assert(offsetof(StencilOpSeparate, zpass) == 16, | 7712 static_assert(offsetof(StencilOpSeparate, zpass) == 16, |
| 7713 "offset of StencilOpSeparate zpass should be 16"); | 7713 "offset of StencilOpSeparate zpass should be 16"); |
| 7714 | 7714 |
| 7715 struct TexImage2D { | 7715 struct TexImage2D { |
| 7716 typedef TexImage2D ValueType; | 7716 typedef TexImage2D ValueType; |
| 7717 static const CommandId kCmdId = kTexImage2D; | 7717 static const CommandId kCmdId = kTexImage2D; |
| 7718 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7718 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7719 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 7719 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 7720 | 7720 |
| 7721 static uint32_t ComputeSize() { | 7721 static uint32_t ComputeSize() { |
| 7722 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7722 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7723 } | 7723 } |
| 7724 | 7724 |
| 7725 void SetHeader() { header.SetCmd<ValueType>(); } | 7725 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7726 | 7726 |
| 7727 void Init(GLenum _target, | 7727 void Init(GLenum _target, |
| 7728 GLint _level, | 7728 GLint _level, |
| 7729 GLint _internalformat, | 7729 GLint _internalformat, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7793 "offset of TexImage2D type should be 28"); | 7793 "offset of TexImage2D type should be 28"); |
| 7794 static_assert(offsetof(TexImage2D, pixels_shm_id) == 32, | 7794 static_assert(offsetof(TexImage2D, pixels_shm_id) == 32, |
| 7795 "offset of TexImage2D pixels_shm_id should be 32"); | 7795 "offset of TexImage2D pixels_shm_id should be 32"); |
| 7796 static_assert(offsetof(TexImage2D, pixels_shm_offset) == 36, | 7796 static_assert(offsetof(TexImage2D, pixels_shm_offset) == 36, |
| 7797 "offset of TexImage2D pixels_shm_offset should be 36"); | 7797 "offset of TexImage2D pixels_shm_offset should be 36"); |
| 7798 | 7798 |
| 7799 struct TexImage3D { | 7799 struct TexImage3D { |
| 7800 typedef TexImage3D ValueType; | 7800 typedef TexImage3D ValueType; |
| 7801 static const CommandId kCmdId = kTexImage3D; | 7801 static const CommandId kCmdId = kTexImage3D; |
| 7802 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7802 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7803 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 7803 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 7804 | 7804 |
| 7805 static uint32_t ComputeSize() { | 7805 static uint32_t ComputeSize() { |
| 7806 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7806 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7807 } | 7807 } |
| 7808 | 7808 |
| 7809 void SetHeader() { header.SetCmd<ValueType>(); } | 7809 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7810 | 7810 |
| 7811 void Init(GLenum _target, | 7811 void Init(GLenum _target, |
| 7812 GLint _level, | 7812 GLint _level, |
| 7813 GLint _internalformat, | 7813 GLint _internalformat, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7883 "offset of TexImage3D type should be 32"); | 7883 "offset of TexImage3D type should be 32"); |
| 7884 static_assert(offsetof(TexImage3D, pixels_shm_id) == 36, | 7884 static_assert(offsetof(TexImage3D, pixels_shm_id) == 36, |
| 7885 "offset of TexImage3D pixels_shm_id should be 36"); | 7885 "offset of TexImage3D pixels_shm_id should be 36"); |
| 7886 static_assert(offsetof(TexImage3D, pixels_shm_offset) == 40, | 7886 static_assert(offsetof(TexImage3D, pixels_shm_offset) == 40, |
| 7887 "offset of TexImage3D pixels_shm_offset should be 40"); | 7887 "offset of TexImage3D pixels_shm_offset should be 40"); |
| 7888 | 7888 |
| 7889 struct TexParameterf { | 7889 struct TexParameterf { |
| 7890 typedef TexParameterf ValueType; | 7890 typedef TexParameterf ValueType; |
| 7891 static const CommandId kCmdId = kTexParameterf; | 7891 static const CommandId kCmdId = kTexParameterf; |
| 7892 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7892 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7893 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7893 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7894 | 7894 |
| 7895 static uint32_t ComputeSize() { | 7895 static uint32_t ComputeSize() { |
| 7896 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7896 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7897 } | 7897 } |
| 7898 | 7898 |
| 7899 void SetHeader() { header.SetCmd<ValueType>(); } | 7899 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7900 | 7900 |
| 7901 void Init(GLenum _target, GLenum _pname, GLfloat _param) { | 7901 void Init(GLenum _target, GLenum _pname, GLfloat _param) { |
| 7902 SetHeader(); | 7902 SetHeader(); |
| 7903 target = _target; | 7903 target = _target; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 7924 "offset of TexParameterf target should be 4"); | 7924 "offset of TexParameterf target should be 4"); |
| 7925 static_assert(offsetof(TexParameterf, pname) == 8, | 7925 static_assert(offsetof(TexParameterf, pname) == 8, |
| 7926 "offset of TexParameterf pname should be 8"); | 7926 "offset of TexParameterf pname should be 8"); |
| 7927 static_assert(offsetof(TexParameterf, param) == 12, | 7927 static_assert(offsetof(TexParameterf, param) == 12, |
| 7928 "offset of TexParameterf param should be 12"); | 7928 "offset of TexParameterf param should be 12"); |
| 7929 | 7929 |
| 7930 struct TexParameterfvImmediate { | 7930 struct TexParameterfvImmediate { |
| 7931 typedef TexParameterfvImmediate ValueType; | 7931 typedef TexParameterfvImmediate ValueType; |
| 7932 static const CommandId kCmdId = kTexParameterfvImmediate; | 7932 static const CommandId kCmdId = kTexParameterfvImmediate; |
| 7933 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 7933 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 7934 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7934 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7935 | 7935 |
| 7936 static uint32_t ComputeDataSize() { | 7936 static uint32_t ComputeDataSize() { |
| 7937 return static_cast<uint32_t>(sizeof(GLfloat) * 1); | 7937 return static_cast<uint32_t>(sizeof(GLfloat) * 1); |
| 7938 } | 7938 } |
| 7939 | 7939 |
| 7940 static uint32_t ComputeSize() { | 7940 static uint32_t ComputeSize() { |
| 7941 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 7941 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 7942 } | 7942 } |
| 7943 | 7943 |
| 7944 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 7944 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 7967 "offset of TexParameterfvImmediate header should be 0"); | 7967 "offset of TexParameterfvImmediate header should be 0"); |
| 7968 static_assert(offsetof(TexParameterfvImmediate, target) == 4, | 7968 static_assert(offsetof(TexParameterfvImmediate, target) == 4, |
| 7969 "offset of TexParameterfvImmediate target should be 4"); | 7969 "offset of TexParameterfvImmediate target should be 4"); |
| 7970 static_assert(offsetof(TexParameterfvImmediate, pname) == 8, | 7970 static_assert(offsetof(TexParameterfvImmediate, pname) == 8, |
| 7971 "offset of TexParameterfvImmediate pname should be 8"); | 7971 "offset of TexParameterfvImmediate pname should be 8"); |
| 7972 | 7972 |
| 7973 struct TexParameteri { | 7973 struct TexParameteri { |
| 7974 typedef TexParameteri ValueType; | 7974 typedef TexParameteri ValueType; |
| 7975 static const CommandId kCmdId = kTexParameteri; | 7975 static const CommandId kCmdId = kTexParameteri; |
| 7976 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 7976 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 7977 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 7977 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 7978 | 7978 |
| 7979 static uint32_t ComputeSize() { | 7979 static uint32_t ComputeSize() { |
| 7980 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 7980 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 7981 } | 7981 } |
| 7982 | 7982 |
| 7983 void SetHeader() { header.SetCmd<ValueType>(); } | 7983 void SetHeader() { header.SetCmd<ValueType>(); } |
| 7984 | 7984 |
| 7985 void Init(GLenum _target, GLenum _pname, GLint _param) { | 7985 void Init(GLenum _target, GLenum _pname, GLint _param) { |
| 7986 SetHeader(); | 7986 SetHeader(); |
| 7987 target = _target; | 7987 target = _target; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 8008 "offset of TexParameteri target should be 4"); | 8008 "offset of TexParameteri target should be 4"); |
| 8009 static_assert(offsetof(TexParameteri, pname) == 8, | 8009 static_assert(offsetof(TexParameteri, pname) == 8, |
| 8010 "offset of TexParameteri pname should be 8"); | 8010 "offset of TexParameteri pname should be 8"); |
| 8011 static_assert(offsetof(TexParameteri, param) == 12, | 8011 static_assert(offsetof(TexParameteri, param) == 12, |
| 8012 "offset of TexParameteri param should be 12"); | 8012 "offset of TexParameteri param should be 12"); |
| 8013 | 8013 |
| 8014 struct TexParameterivImmediate { | 8014 struct TexParameterivImmediate { |
| 8015 typedef TexParameterivImmediate ValueType; | 8015 typedef TexParameterivImmediate ValueType; |
| 8016 static const CommandId kCmdId = kTexParameterivImmediate; | 8016 static const CommandId kCmdId = kTexParameterivImmediate; |
| 8017 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 8017 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 8018 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8018 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8019 | 8019 |
| 8020 static uint32_t ComputeDataSize() { | 8020 static uint32_t ComputeDataSize() { |
| 8021 return static_cast<uint32_t>(sizeof(GLint) * 1); | 8021 return static_cast<uint32_t>(sizeof(GLint) * 1); |
| 8022 } | 8022 } |
| 8023 | 8023 |
| 8024 static uint32_t ComputeSize() { | 8024 static uint32_t ComputeSize() { |
| 8025 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 8025 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 8026 } | 8026 } |
| 8027 | 8027 |
| 8028 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 8028 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 8051 "offset of TexParameterivImmediate header should be 0"); | 8051 "offset of TexParameterivImmediate header should be 0"); |
| 8052 static_assert(offsetof(TexParameterivImmediate, target) == 4, | 8052 static_assert(offsetof(TexParameterivImmediate, target) == 4, |
| 8053 "offset of TexParameterivImmediate target should be 4"); | 8053 "offset of TexParameterivImmediate target should be 4"); |
| 8054 static_assert(offsetof(TexParameterivImmediate, pname) == 8, | 8054 static_assert(offsetof(TexParameterivImmediate, pname) == 8, |
| 8055 "offset of TexParameterivImmediate pname should be 8"); | 8055 "offset of TexParameterivImmediate pname should be 8"); |
| 8056 | 8056 |
| 8057 struct TexStorage3D { | 8057 struct TexStorage3D { |
| 8058 typedef TexStorage3D ValueType; | 8058 typedef TexStorage3D ValueType; |
| 8059 static const CommandId kCmdId = kTexStorage3D; | 8059 static const CommandId kCmdId = kTexStorage3D; |
| 8060 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8060 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8061 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 8061 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 8062 | 8062 |
| 8063 static uint32_t ComputeSize() { | 8063 static uint32_t ComputeSize() { |
| 8064 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8064 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8065 } | 8065 } |
| 8066 | 8066 |
| 8067 void SetHeader() { header.SetCmd<ValueType>(); } | 8067 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8068 | 8068 |
| 8069 void Init(GLenum _target, | 8069 void Init(GLenum _target, |
| 8070 GLsizei _levels, | 8070 GLsizei _levels, |
| 8071 GLenum _internalFormat, | 8071 GLenum _internalFormat, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8115 "offset of TexStorage3D width should be 16"); | 8115 "offset of TexStorage3D width should be 16"); |
| 8116 static_assert(offsetof(TexStorage3D, height) == 20, | 8116 static_assert(offsetof(TexStorage3D, height) == 20, |
| 8117 "offset of TexStorage3D height should be 20"); | 8117 "offset of TexStorage3D height should be 20"); |
| 8118 static_assert(offsetof(TexStorage3D, depth) == 24, | 8118 static_assert(offsetof(TexStorage3D, depth) == 24, |
| 8119 "offset of TexStorage3D depth should be 24"); | 8119 "offset of TexStorage3D depth should be 24"); |
| 8120 | 8120 |
| 8121 struct TexSubImage2D { | 8121 struct TexSubImage2D { |
| 8122 typedef TexSubImage2D ValueType; | 8122 typedef TexSubImage2D ValueType; |
| 8123 static const CommandId kCmdId = kTexSubImage2D; | 8123 static const CommandId kCmdId = kTexSubImage2D; |
| 8124 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8124 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8125 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 8125 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 8126 | 8126 |
| 8127 static uint32_t ComputeSize() { | 8127 static uint32_t ComputeSize() { |
| 8128 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8128 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8129 } | 8129 } |
| 8130 | 8130 |
| 8131 void SetHeader() { header.SetCmd<ValueType>(); } | 8131 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8132 | 8132 |
| 8133 void Init(GLenum _target, | 8133 void Init(GLenum _target, |
| 8134 GLint _level, | 8134 GLint _level, |
| 8135 GLint _xoffset, | 8135 GLint _xoffset, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8211 "offset of TexSubImage2D pixels_shm_id should be 36"); | 8211 "offset of TexSubImage2D pixels_shm_id should be 36"); |
| 8212 static_assert(offsetof(TexSubImage2D, pixels_shm_offset) == 40, | 8212 static_assert(offsetof(TexSubImage2D, pixels_shm_offset) == 40, |
| 8213 "offset of TexSubImage2D pixels_shm_offset should be 40"); | 8213 "offset of TexSubImage2D pixels_shm_offset should be 40"); |
| 8214 static_assert(offsetof(TexSubImage2D, internal) == 44, | 8214 static_assert(offsetof(TexSubImage2D, internal) == 44, |
| 8215 "offset of TexSubImage2D internal should be 44"); | 8215 "offset of TexSubImage2D internal should be 44"); |
| 8216 | 8216 |
| 8217 struct TexSubImage3D { | 8217 struct TexSubImage3D { |
| 8218 typedef TexSubImage3D ValueType; | 8218 typedef TexSubImage3D ValueType; |
| 8219 static const CommandId kCmdId = kTexSubImage3D; | 8219 static const CommandId kCmdId = kTexSubImage3D; |
| 8220 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8220 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8221 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 8221 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 8222 | 8222 |
| 8223 static uint32_t ComputeSize() { | 8223 static uint32_t ComputeSize() { |
| 8224 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8224 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8225 } | 8225 } |
| 8226 | 8226 |
| 8227 void SetHeader() { header.SetCmd<ValueType>(); } | 8227 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8228 | 8228 |
| 8229 void Init(GLenum _target, | 8229 void Init(GLenum _target, |
| 8230 GLint _level, | 8230 GLint _level, |
| 8231 GLint _xoffset, | 8231 GLint _xoffset, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8319 "offset of TexSubImage3D pixels_shm_id should be 44"); | 8319 "offset of TexSubImage3D pixels_shm_id should be 44"); |
| 8320 static_assert(offsetof(TexSubImage3D, pixels_shm_offset) == 48, | 8320 static_assert(offsetof(TexSubImage3D, pixels_shm_offset) == 48, |
| 8321 "offset of TexSubImage3D pixels_shm_offset should be 48"); | 8321 "offset of TexSubImage3D pixels_shm_offset should be 48"); |
| 8322 static_assert(offsetof(TexSubImage3D, internal) == 52, | 8322 static_assert(offsetof(TexSubImage3D, internal) == 52, |
| 8323 "offset of TexSubImage3D internal should be 52"); | 8323 "offset of TexSubImage3D internal should be 52"); |
| 8324 | 8324 |
| 8325 struct TransformFeedbackVaryingsBucket { | 8325 struct TransformFeedbackVaryingsBucket { |
| 8326 typedef TransformFeedbackVaryingsBucket ValueType; | 8326 typedef TransformFeedbackVaryingsBucket ValueType; |
| 8327 static const CommandId kCmdId = kTransformFeedbackVaryingsBucket; | 8327 static const CommandId kCmdId = kTransformFeedbackVaryingsBucket; |
| 8328 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8328 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8329 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8329 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8330 | 8330 |
| 8331 static uint32_t ComputeSize() { | 8331 static uint32_t ComputeSize() { |
| 8332 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8332 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8333 } | 8333 } |
| 8334 | 8334 |
| 8335 void SetHeader() { header.SetCmd<ValueType>(); } | 8335 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8336 | 8336 |
| 8337 void Init(GLuint _program, uint32_t _varyings_bucket_id, GLenum _buffermode) { | 8337 void Init(GLuint _program, uint32_t _varyings_bucket_id, GLenum _buffermode) { |
| 8338 SetHeader(); | 8338 SetHeader(); |
| 8339 program = _program; | 8339 program = _program; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 8366 offsetof(TransformFeedbackVaryingsBucket, varyings_bucket_id) == 8, | 8366 offsetof(TransformFeedbackVaryingsBucket, varyings_bucket_id) == 8, |
| 8367 "offset of TransformFeedbackVaryingsBucket varyings_bucket_id should be 8"); | 8367 "offset of TransformFeedbackVaryingsBucket varyings_bucket_id should be 8"); |
| 8368 static_assert( | 8368 static_assert( |
| 8369 offsetof(TransformFeedbackVaryingsBucket, buffermode) == 12, | 8369 offsetof(TransformFeedbackVaryingsBucket, buffermode) == 12, |
| 8370 "offset of TransformFeedbackVaryingsBucket buffermode should be 12"); | 8370 "offset of TransformFeedbackVaryingsBucket buffermode should be 12"); |
| 8371 | 8371 |
| 8372 struct Uniform1f { | 8372 struct Uniform1f { |
| 8373 typedef Uniform1f ValueType; | 8373 typedef Uniform1f ValueType; |
| 8374 static const CommandId kCmdId = kUniform1f; | 8374 static const CommandId kCmdId = kUniform1f; |
| 8375 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8375 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8376 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8376 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8377 | 8377 |
| 8378 static uint32_t ComputeSize() { | 8378 static uint32_t ComputeSize() { |
| 8379 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8379 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8380 } | 8380 } |
| 8381 | 8381 |
| 8382 void SetHeader() { header.SetCmd<ValueType>(); } | 8382 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8383 | 8383 |
| 8384 void Init(GLint _location, GLfloat _x) { | 8384 void Init(GLint _location, GLfloat _x) { |
| 8385 SetHeader(); | 8385 SetHeader(); |
| 8386 location = _location; | 8386 location = _location; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 8401 static_assert(offsetof(Uniform1f, header) == 0, | 8401 static_assert(offsetof(Uniform1f, header) == 0, |
| 8402 "offset of Uniform1f header should be 0"); | 8402 "offset of Uniform1f header should be 0"); |
| 8403 static_assert(offsetof(Uniform1f, location) == 4, | 8403 static_assert(offsetof(Uniform1f, location) == 4, |
| 8404 "offset of Uniform1f location should be 4"); | 8404 "offset of Uniform1f location should be 4"); |
| 8405 static_assert(offsetof(Uniform1f, x) == 8, "offset of Uniform1f x should be 8"); | 8405 static_assert(offsetof(Uniform1f, x) == 8, "offset of Uniform1f x should be 8"); |
| 8406 | 8406 |
| 8407 struct Uniform1fvImmediate { | 8407 struct Uniform1fvImmediate { |
| 8408 typedef Uniform1fvImmediate ValueType; | 8408 typedef Uniform1fvImmediate ValueType; |
| 8409 static const CommandId kCmdId = kUniform1fvImmediate; | 8409 static const CommandId kCmdId = kUniform1fvImmediate; |
| 8410 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 8410 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 8411 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8411 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8412 | 8412 |
| 8413 static uint32_t ComputeDataSize(GLsizei count) { | 8413 static uint32_t ComputeDataSize(GLsizei count) { |
| 8414 return static_cast<uint32_t>(sizeof(GLfloat) * 1 * count); // NOLINT | 8414 return static_cast<uint32_t>(sizeof(GLfloat) * 1 * count); // NOLINT |
| 8415 } | 8415 } |
| 8416 | 8416 |
| 8417 static uint32_t ComputeSize(GLsizei count) { | 8417 static uint32_t ComputeSize(GLsizei count) { |
| 8418 return static_cast<uint32_t>(sizeof(ValueType) + | 8418 return static_cast<uint32_t>(sizeof(ValueType) + |
| 8419 ComputeDataSize(count)); // NOLINT | 8419 ComputeDataSize(count)); // NOLINT |
| 8420 } | 8420 } |
| 8421 | 8421 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 8447 "offset of Uniform1fvImmediate header should be 0"); | 8447 "offset of Uniform1fvImmediate header should be 0"); |
| 8448 static_assert(offsetof(Uniform1fvImmediate, location) == 4, | 8448 static_assert(offsetof(Uniform1fvImmediate, location) == 4, |
| 8449 "offset of Uniform1fvImmediate location should be 4"); | 8449 "offset of Uniform1fvImmediate location should be 4"); |
| 8450 static_assert(offsetof(Uniform1fvImmediate, count) == 8, | 8450 static_assert(offsetof(Uniform1fvImmediate, count) == 8, |
| 8451 "offset of Uniform1fvImmediate count should be 8"); | 8451 "offset of Uniform1fvImmediate count should be 8"); |
| 8452 | 8452 |
| 8453 struct Uniform1i { | 8453 struct Uniform1i { |
| 8454 typedef Uniform1i ValueType; | 8454 typedef Uniform1i ValueType; |
| 8455 static const CommandId kCmdId = kUniform1i; | 8455 static const CommandId kCmdId = kUniform1i; |
| 8456 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8456 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8457 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8457 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8458 | 8458 |
| 8459 static uint32_t ComputeSize() { | 8459 static uint32_t ComputeSize() { |
| 8460 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8460 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8461 } | 8461 } |
| 8462 | 8462 |
| 8463 void SetHeader() { header.SetCmd<ValueType>(); } | 8463 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8464 | 8464 |
| 8465 void Init(GLint _location, GLint _x) { | 8465 void Init(GLint _location, GLint _x) { |
| 8466 SetHeader(); | 8466 SetHeader(); |
| 8467 location = _location; | 8467 location = _location; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 8482 static_assert(offsetof(Uniform1i, header) == 0, | 8482 static_assert(offsetof(Uniform1i, header) == 0, |
| 8483 "offset of Uniform1i header should be 0"); | 8483 "offset of Uniform1i header should be 0"); |
| 8484 static_assert(offsetof(Uniform1i, location) == 4, | 8484 static_assert(offsetof(Uniform1i, location) == 4, |
| 8485 "offset of Uniform1i location should be 4"); | 8485 "offset of Uniform1i location should be 4"); |
| 8486 static_assert(offsetof(Uniform1i, x) == 8, "offset of Uniform1i x should be 8"); | 8486 static_assert(offsetof(Uniform1i, x) == 8, "offset of Uniform1i x should be 8"); |
| 8487 | 8487 |
| 8488 struct Uniform1ivImmediate { | 8488 struct Uniform1ivImmediate { |
| 8489 typedef Uniform1ivImmediate ValueType; | 8489 typedef Uniform1ivImmediate ValueType; |
| 8490 static const CommandId kCmdId = kUniform1ivImmediate; | 8490 static const CommandId kCmdId = kUniform1ivImmediate; |
| 8491 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 8491 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 8492 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8492 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8493 | 8493 |
| 8494 static uint32_t ComputeDataSize(GLsizei count) { | 8494 static uint32_t ComputeDataSize(GLsizei count) { |
| 8495 return static_cast<uint32_t>(sizeof(GLint) * 1 * count); // NOLINT | 8495 return static_cast<uint32_t>(sizeof(GLint) * 1 * count); // NOLINT |
| 8496 } | 8496 } |
| 8497 | 8497 |
| 8498 static uint32_t ComputeSize(GLsizei count) { | 8498 static uint32_t ComputeSize(GLsizei count) { |
| 8499 return static_cast<uint32_t>(sizeof(ValueType) + | 8499 return static_cast<uint32_t>(sizeof(ValueType) + |
| 8500 ComputeDataSize(count)); // NOLINT | 8500 ComputeDataSize(count)); // NOLINT |
| 8501 } | 8501 } |
| 8502 | 8502 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 8528 "offset of Uniform1ivImmediate header should be 0"); | 8528 "offset of Uniform1ivImmediate header should be 0"); |
| 8529 static_assert(offsetof(Uniform1ivImmediate, location) == 4, | 8529 static_assert(offsetof(Uniform1ivImmediate, location) == 4, |
| 8530 "offset of Uniform1ivImmediate location should be 4"); | 8530 "offset of Uniform1ivImmediate location should be 4"); |
| 8531 static_assert(offsetof(Uniform1ivImmediate, count) == 8, | 8531 static_assert(offsetof(Uniform1ivImmediate, count) == 8, |
| 8532 "offset of Uniform1ivImmediate count should be 8"); | 8532 "offset of Uniform1ivImmediate count should be 8"); |
| 8533 | 8533 |
| 8534 struct Uniform1ui { | 8534 struct Uniform1ui { |
| 8535 typedef Uniform1ui ValueType; | 8535 typedef Uniform1ui ValueType; |
| 8536 static const CommandId kCmdId = kUniform1ui; | 8536 static const CommandId kCmdId = kUniform1ui; |
| 8537 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8537 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8538 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8538 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8539 | 8539 |
| 8540 static uint32_t ComputeSize() { | 8540 static uint32_t ComputeSize() { |
| 8541 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8541 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8542 } | 8542 } |
| 8543 | 8543 |
| 8544 void SetHeader() { header.SetCmd<ValueType>(); } | 8544 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8545 | 8545 |
| 8546 void Init(GLint _location, GLuint _x) { | 8546 void Init(GLint _location, GLuint _x) { |
| 8547 SetHeader(); | 8547 SetHeader(); |
| 8548 location = _location; | 8548 location = _location; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 8564 "offset of Uniform1ui header should be 0"); | 8564 "offset of Uniform1ui header should be 0"); |
| 8565 static_assert(offsetof(Uniform1ui, location) == 4, | 8565 static_assert(offsetof(Uniform1ui, location) == 4, |
| 8566 "offset of Uniform1ui location should be 4"); | 8566 "offset of Uniform1ui location should be 4"); |
| 8567 static_assert(offsetof(Uniform1ui, x) == 8, | 8567 static_assert(offsetof(Uniform1ui, x) == 8, |
| 8568 "offset of Uniform1ui x should be 8"); | 8568 "offset of Uniform1ui x should be 8"); |
| 8569 | 8569 |
| 8570 struct Uniform1uivImmediate { | 8570 struct Uniform1uivImmediate { |
| 8571 typedef Uniform1uivImmediate ValueType; | 8571 typedef Uniform1uivImmediate ValueType; |
| 8572 static const CommandId kCmdId = kUniform1uivImmediate; | 8572 static const CommandId kCmdId = kUniform1uivImmediate; |
| 8573 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 8573 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 8574 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8574 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8575 | 8575 |
| 8576 static uint32_t ComputeDataSize(GLsizei count) { | 8576 static uint32_t ComputeDataSize(GLsizei count) { |
| 8577 return static_cast<uint32_t>(sizeof(GLuint) * 1 * count); // NOLINT | 8577 return static_cast<uint32_t>(sizeof(GLuint) * 1 * count); // NOLINT |
| 8578 } | 8578 } |
| 8579 | 8579 |
| 8580 static uint32_t ComputeSize(GLsizei count) { | 8580 static uint32_t ComputeSize(GLsizei count) { |
| 8581 return static_cast<uint32_t>(sizeof(ValueType) + | 8581 return static_cast<uint32_t>(sizeof(ValueType) + |
| 8582 ComputeDataSize(count)); // NOLINT | 8582 ComputeDataSize(count)); // NOLINT |
| 8583 } | 8583 } |
| 8584 | 8584 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 8610 "offset of Uniform1uivImmediate header should be 0"); | 8610 "offset of Uniform1uivImmediate header should be 0"); |
| 8611 static_assert(offsetof(Uniform1uivImmediate, location) == 4, | 8611 static_assert(offsetof(Uniform1uivImmediate, location) == 4, |
| 8612 "offset of Uniform1uivImmediate location should be 4"); | 8612 "offset of Uniform1uivImmediate location should be 4"); |
| 8613 static_assert(offsetof(Uniform1uivImmediate, count) == 8, | 8613 static_assert(offsetof(Uniform1uivImmediate, count) == 8, |
| 8614 "offset of Uniform1uivImmediate count should be 8"); | 8614 "offset of Uniform1uivImmediate count should be 8"); |
| 8615 | 8615 |
| 8616 struct Uniform2f { | 8616 struct Uniform2f { |
| 8617 typedef Uniform2f ValueType; | 8617 typedef Uniform2f ValueType; |
| 8618 static const CommandId kCmdId = kUniform2f; | 8618 static const CommandId kCmdId = kUniform2f; |
| 8619 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8619 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8620 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8620 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8621 | 8621 |
| 8622 static uint32_t ComputeSize() { | 8622 static uint32_t ComputeSize() { |
| 8623 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8623 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8624 } | 8624 } |
| 8625 | 8625 |
| 8626 void SetHeader() { header.SetCmd<ValueType>(); } | 8626 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8627 | 8627 |
| 8628 void Init(GLint _location, GLfloat _x, GLfloat _y) { | 8628 void Init(GLint _location, GLfloat _x, GLfloat _y) { |
| 8629 SetHeader(); | 8629 SetHeader(); |
| 8630 location = _location; | 8630 location = _location; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8649 static_assert(offsetof(Uniform2f, location) == 4, | 8649 static_assert(offsetof(Uniform2f, location) == 4, |
| 8650 "offset of Uniform2f location should be 4"); | 8650 "offset of Uniform2f location should be 4"); |
| 8651 static_assert(offsetof(Uniform2f, x) == 8, "offset of Uniform2f x should be 8"); | 8651 static_assert(offsetof(Uniform2f, x) == 8, "offset of Uniform2f x should be 8"); |
| 8652 static_assert(offsetof(Uniform2f, y) == 12, | 8652 static_assert(offsetof(Uniform2f, y) == 12, |
| 8653 "offset of Uniform2f y should be 12"); | 8653 "offset of Uniform2f y should be 12"); |
| 8654 | 8654 |
| 8655 struct Uniform2fvImmediate { | 8655 struct Uniform2fvImmediate { |
| 8656 typedef Uniform2fvImmediate ValueType; | 8656 typedef Uniform2fvImmediate ValueType; |
| 8657 static const CommandId kCmdId = kUniform2fvImmediate; | 8657 static const CommandId kCmdId = kUniform2fvImmediate; |
| 8658 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 8658 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 8659 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8659 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8660 | 8660 |
| 8661 static uint32_t ComputeDataSize(GLsizei count) { | 8661 static uint32_t ComputeDataSize(GLsizei count) { |
| 8662 return static_cast<uint32_t>(sizeof(GLfloat) * 2 * count); // NOLINT | 8662 return static_cast<uint32_t>(sizeof(GLfloat) * 2 * count); // NOLINT |
| 8663 } | 8663 } |
| 8664 | 8664 |
| 8665 static uint32_t ComputeSize(GLsizei count) { | 8665 static uint32_t ComputeSize(GLsizei count) { |
| 8666 return static_cast<uint32_t>(sizeof(ValueType) + | 8666 return static_cast<uint32_t>(sizeof(ValueType) + |
| 8667 ComputeDataSize(count)); // NOLINT | 8667 ComputeDataSize(count)); // NOLINT |
| 8668 } | 8668 } |
| 8669 | 8669 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 8695 "offset of Uniform2fvImmediate header should be 0"); | 8695 "offset of Uniform2fvImmediate header should be 0"); |
| 8696 static_assert(offsetof(Uniform2fvImmediate, location) == 4, | 8696 static_assert(offsetof(Uniform2fvImmediate, location) == 4, |
| 8697 "offset of Uniform2fvImmediate location should be 4"); | 8697 "offset of Uniform2fvImmediate location should be 4"); |
| 8698 static_assert(offsetof(Uniform2fvImmediate, count) == 8, | 8698 static_assert(offsetof(Uniform2fvImmediate, count) == 8, |
| 8699 "offset of Uniform2fvImmediate count should be 8"); | 8699 "offset of Uniform2fvImmediate count should be 8"); |
| 8700 | 8700 |
| 8701 struct Uniform2i { | 8701 struct Uniform2i { |
| 8702 typedef Uniform2i ValueType; | 8702 typedef Uniform2i ValueType; |
| 8703 static const CommandId kCmdId = kUniform2i; | 8703 static const CommandId kCmdId = kUniform2i; |
| 8704 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8704 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8705 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8705 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8706 | 8706 |
| 8707 static uint32_t ComputeSize() { | 8707 static uint32_t ComputeSize() { |
| 8708 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8708 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8709 } | 8709 } |
| 8710 | 8710 |
| 8711 void SetHeader() { header.SetCmd<ValueType>(); } | 8711 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8712 | 8712 |
| 8713 void Init(GLint _location, GLint _x, GLint _y) { | 8713 void Init(GLint _location, GLint _x, GLint _y) { |
| 8714 SetHeader(); | 8714 SetHeader(); |
| 8715 location = _location; | 8715 location = _location; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8734 static_assert(offsetof(Uniform2i, location) == 4, | 8734 static_assert(offsetof(Uniform2i, location) == 4, |
| 8735 "offset of Uniform2i location should be 4"); | 8735 "offset of Uniform2i location should be 4"); |
| 8736 static_assert(offsetof(Uniform2i, x) == 8, "offset of Uniform2i x should be 8"); | 8736 static_assert(offsetof(Uniform2i, x) == 8, "offset of Uniform2i x should be 8"); |
| 8737 static_assert(offsetof(Uniform2i, y) == 12, | 8737 static_assert(offsetof(Uniform2i, y) == 12, |
| 8738 "offset of Uniform2i y should be 12"); | 8738 "offset of Uniform2i y should be 12"); |
| 8739 | 8739 |
| 8740 struct Uniform2ivImmediate { | 8740 struct Uniform2ivImmediate { |
| 8741 typedef Uniform2ivImmediate ValueType; | 8741 typedef Uniform2ivImmediate ValueType; |
| 8742 static const CommandId kCmdId = kUniform2ivImmediate; | 8742 static const CommandId kCmdId = kUniform2ivImmediate; |
| 8743 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 8743 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 8744 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8744 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8745 | 8745 |
| 8746 static uint32_t ComputeDataSize(GLsizei count) { | 8746 static uint32_t ComputeDataSize(GLsizei count) { |
| 8747 return static_cast<uint32_t>(sizeof(GLint) * 2 * count); // NOLINT | 8747 return static_cast<uint32_t>(sizeof(GLint) * 2 * count); // NOLINT |
| 8748 } | 8748 } |
| 8749 | 8749 |
| 8750 static uint32_t ComputeSize(GLsizei count) { | 8750 static uint32_t ComputeSize(GLsizei count) { |
| 8751 return static_cast<uint32_t>(sizeof(ValueType) + | 8751 return static_cast<uint32_t>(sizeof(ValueType) + |
| 8752 ComputeDataSize(count)); // NOLINT | 8752 ComputeDataSize(count)); // NOLINT |
| 8753 } | 8753 } |
| 8754 | 8754 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 8780 "offset of Uniform2ivImmediate header should be 0"); | 8780 "offset of Uniform2ivImmediate header should be 0"); |
| 8781 static_assert(offsetof(Uniform2ivImmediate, location) == 4, | 8781 static_assert(offsetof(Uniform2ivImmediate, location) == 4, |
| 8782 "offset of Uniform2ivImmediate location should be 4"); | 8782 "offset of Uniform2ivImmediate location should be 4"); |
| 8783 static_assert(offsetof(Uniform2ivImmediate, count) == 8, | 8783 static_assert(offsetof(Uniform2ivImmediate, count) == 8, |
| 8784 "offset of Uniform2ivImmediate count should be 8"); | 8784 "offset of Uniform2ivImmediate count should be 8"); |
| 8785 | 8785 |
| 8786 struct Uniform2ui { | 8786 struct Uniform2ui { |
| 8787 typedef Uniform2ui ValueType; | 8787 typedef Uniform2ui ValueType; |
| 8788 static const CommandId kCmdId = kUniform2ui; | 8788 static const CommandId kCmdId = kUniform2ui; |
| 8789 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8789 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8790 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8790 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8791 | 8791 |
| 8792 static uint32_t ComputeSize() { | 8792 static uint32_t ComputeSize() { |
| 8793 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8793 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8794 } | 8794 } |
| 8795 | 8795 |
| 8796 void SetHeader() { header.SetCmd<ValueType>(); } | 8796 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8797 | 8797 |
| 8798 void Init(GLint _location, GLuint _x, GLuint _y) { | 8798 void Init(GLint _location, GLuint _x, GLuint _y) { |
| 8799 SetHeader(); | 8799 SetHeader(); |
| 8800 location = _location; | 8800 location = _location; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 8820 "offset of Uniform2ui location should be 4"); | 8820 "offset of Uniform2ui location should be 4"); |
| 8821 static_assert(offsetof(Uniform2ui, x) == 8, | 8821 static_assert(offsetof(Uniform2ui, x) == 8, |
| 8822 "offset of Uniform2ui x should be 8"); | 8822 "offset of Uniform2ui x should be 8"); |
| 8823 static_assert(offsetof(Uniform2ui, y) == 12, | 8823 static_assert(offsetof(Uniform2ui, y) == 12, |
| 8824 "offset of Uniform2ui y should be 12"); | 8824 "offset of Uniform2ui y should be 12"); |
| 8825 | 8825 |
| 8826 struct Uniform2uivImmediate { | 8826 struct Uniform2uivImmediate { |
| 8827 typedef Uniform2uivImmediate ValueType; | 8827 typedef Uniform2uivImmediate ValueType; |
| 8828 static const CommandId kCmdId = kUniform2uivImmediate; | 8828 static const CommandId kCmdId = kUniform2uivImmediate; |
| 8829 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 8829 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 8830 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8830 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8831 | 8831 |
| 8832 static uint32_t ComputeDataSize(GLsizei count) { | 8832 static uint32_t ComputeDataSize(GLsizei count) { |
| 8833 return static_cast<uint32_t>(sizeof(GLuint) * 2 * count); // NOLINT | 8833 return static_cast<uint32_t>(sizeof(GLuint) * 2 * count); // NOLINT |
| 8834 } | 8834 } |
| 8835 | 8835 |
| 8836 static uint32_t ComputeSize(GLsizei count) { | 8836 static uint32_t ComputeSize(GLsizei count) { |
| 8837 return static_cast<uint32_t>(sizeof(ValueType) + | 8837 return static_cast<uint32_t>(sizeof(ValueType) + |
| 8838 ComputeDataSize(count)); // NOLINT | 8838 ComputeDataSize(count)); // NOLINT |
| 8839 } | 8839 } |
| 8840 | 8840 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 8866 "offset of Uniform2uivImmediate header should be 0"); | 8866 "offset of Uniform2uivImmediate header should be 0"); |
| 8867 static_assert(offsetof(Uniform2uivImmediate, location) == 4, | 8867 static_assert(offsetof(Uniform2uivImmediate, location) == 4, |
| 8868 "offset of Uniform2uivImmediate location should be 4"); | 8868 "offset of Uniform2uivImmediate location should be 4"); |
| 8869 static_assert(offsetof(Uniform2uivImmediate, count) == 8, | 8869 static_assert(offsetof(Uniform2uivImmediate, count) == 8, |
| 8870 "offset of Uniform2uivImmediate count should be 8"); | 8870 "offset of Uniform2uivImmediate count should be 8"); |
| 8871 | 8871 |
| 8872 struct Uniform3f { | 8872 struct Uniform3f { |
| 8873 typedef Uniform3f ValueType; | 8873 typedef Uniform3f ValueType; |
| 8874 static const CommandId kCmdId = kUniform3f; | 8874 static const CommandId kCmdId = kUniform3f; |
| 8875 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8875 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8876 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8876 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8877 | 8877 |
| 8878 static uint32_t ComputeSize() { | 8878 static uint32_t ComputeSize() { |
| 8879 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8879 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8880 } | 8880 } |
| 8881 | 8881 |
| 8882 void SetHeader() { header.SetCmd<ValueType>(); } | 8882 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8883 | 8883 |
| 8884 void Init(GLint _location, GLfloat _x, GLfloat _y, GLfloat _z) { | 8884 void Init(GLint _location, GLfloat _x, GLfloat _y, GLfloat _z) { |
| 8885 SetHeader(); | 8885 SetHeader(); |
| 8886 location = _location; | 8886 location = _location; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 8909 static_assert(offsetof(Uniform3f, x) == 8, "offset of Uniform3f x should be 8"); | 8909 static_assert(offsetof(Uniform3f, x) == 8, "offset of Uniform3f x should be 8"); |
| 8910 static_assert(offsetof(Uniform3f, y) == 12, | 8910 static_assert(offsetof(Uniform3f, y) == 12, |
| 8911 "offset of Uniform3f y should be 12"); | 8911 "offset of Uniform3f y should be 12"); |
| 8912 static_assert(offsetof(Uniform3f, z) == 16, | 8912 static_assert(offsetof(Uniform3f, z) == 16, |
| 8913 "offset of Uniform3f z should be 16"); | 8913 "offset of Uniform3f z should be 16"); |
| 8914 | 8914 |
| 8915 struct Uniform3fvImmediate { | 8915 struct Uniform3fvImmediate { |
| 8916 typedef Uniform3fvImmediate ValueType; | 8916 typedef Uniform3fvImmediate ValueType; |
| 8917 static const CommandId kCmdId = kUniform3fvImmediate; | 8917 static const CommandId kCmdId = kUniform3fvImmediate; |
| 8918 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 8918 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 8919 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8919 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8920 | 8920 |
| 8921 static uint32_t ComputeDataSize(GLsizei count) { | 8921 static uint32_t ComputeDataSize(GLsizei count) { |
| 8922 return static_cast<uint32_t>(sizeof(GLfloat) * 3 * count); // NOLINT | 8922 return static_cast<uint32_t>(sizeof(GLfloat) * 3 * count); // NOLINT |
| 8923 } | 8923 } |
| 8924 | 8924 |
| 8925 static uint32_t ComputeSize(GLsizei count) { | 8925 static uint32_t ComputeSize(GLsizei count) { |
| 8926 return static_cast<uint32_t>(sizeof(ValueType) + | 8926 return static_cast<uint32_t>(sizeof(ValueType) + |
| 8927 ComputeDataSize(count)); // NOLINT | 8927 ComputeDataSize(count)); // NOLINT |
| 8928 } | 8928 } |
| 8929 | 8929 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 8955 "offset of Uniform3fvImmediate header should be 0"); | 8955 "offset of Uniform3fvImmediate header should be 0"); |
| 8956 static_assert(offsetof(Uniform3fvImmediate, location) == 4, | 8956 static_assert(offsetof(Uniform3fvImmediate, location) == 4, |
| 8957 "offset of Uniform3fvImmediate location should be 4"); | 8957 "offset of Uniform3fvImmediate location should be 4"); |
| 8958 static_assert(offsetof(Uniform3fvImmediate, count) == 8, | 8958 static_assert(offsetof(Uniform3fvImmediate, count) == 8, |
| 8959 "offset of Uniform3fvImmediate count should be 8"); | 8959 "offset of Uniform3fvImmediate count should be 8"); |
| 8960 | 8960 |
| 8961 struct Uniform3i { | 8961 struct Uniform3i { |
| 8962 typedef Uniform3i ValueType; | 8962 typedef Uniform3i ValueType; |
| 8963 static const CommandId kCmdId = kUniform3i; | 8963 static const CommandId kCmdId = kUniform3i; |
| 8964 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8964 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8965 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8965 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8966 | 8966 |
| 8967 static uint32_t ComputeSize() { | 8967 static uint32_t ComputeSize() { |
| 8968 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 8968 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8969 } | 8969 } |
| 8970 | 8970 |
| 8971 void SetHeader() { header.SetCmd<ValueType>(); } | 8971 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8972 | 8972 |
| 8973 void Init(GLint _location, GLint _x, GLint _y, GLint _z) { | 8973 void Init(GLint _location, GLint _x, GLint _y, GLint _z) { |
| 8974 SetHeader(); | 8974 SetHeader(); |
| 8975 location = _location; | 8975 location = _location; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 8998 static_assert(offsetof(Uniform3i, x) == 8, "offset of Uniform3i x should be 8"); | 8998 static_assert(offsetof(Uniform3i, x) == 8, "offset of Uniform3i x should be 8"); |
| 8999 static_assert(offsetof(Uniform3i, y) == 12, | 8999 static_assert(offsetof(Uniform3i, y) == 12, |
| 9000 "offset of Uniform3i y should be 12"); | 9000 "offset of Uniform3i y should be 12"); |
| 9001 static_assert(offsetof(Uniform3i, z) == 16, | 9001 static_assert(offsetof(Uniform3i, z) == 16, |
| 9002 "offset of Uniform3i z should be 16"); | 9002 "offset of Uniform3i z should be 16"); |
| 9003 | 9003 |
| 9004 struct Uniform3ivImmediate { | 9004 struct Uniform3ivImmediate { |
| 9005 typedef Uniform3ivImmediate ValueType; | 9005 typedef Uniform3ivImmediate ValueType; |
| 9006 static const CommandId kCmdId = kUniform3ivImmediate; | 9006 static const CommandId kCmdId = kUniform3ivImmediate; |
| 9007 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9007 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9008 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9008 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9009 | 9009 |
| 9010 static uint32_t ComputeDataSize(GLsizei count) { | 9010 static uint32_t ComputeDataSize(GLsizei count) { |
| 9011 return static_cast<uint32_t>(sizeof(GLint) * 3 * count); // NOLINT | 9011 return static_cast<uint32_t>(sizeof(GLint) * 3 * count); // NOLINT |
| 9012 } | 9012 } |
| 9013 | 9013 |
| 9014 static uint32_t ComputeSize(GLsizei count) { | 9014 static uint32_t ComputeSize(GLsizei count) { |
| 9015 return static_cast<uint32_t>(sizeof(ValueType) + | 9015 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9016 ComputeDataSize(count)); // NOLINT | 9016 ComputeDataSize(count)); // NOLINT |
| 9017 } | 9017 } |
| 9018 | 9018 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 9044 "offset of Uniform3ivImmediate header should be 0"); | 9044 "offset of Uniform3ivImmediate header should be 0"); |
| 9045 static_assert(offsetof(Uniform3ivImmediate, location) == 4, | 9045 static_assert(offsetof(Uniform3ivImmediate, location) == 4, |
| 9046 "offset of Uniform3ivImmediate location should be 4"); | 9046 "offset of Uniform3ivImmediate location should be 4"); |
| 9047 static_assert(offsetof(Uniform3ivImmediate, count) == 8, | 9047 static_assert(offsetof(Uniform3ivImmediate, count) == 8, |
| 9048 "offset of Uniform3ivImmediate count should be 8"); | 9048 "offset of Uniform3ivImmediate count should be 8"); |
| 9049 | 9049 |
| 9050 struct Uniform3ui { | 9050 struct Uniform3ui { |
| 9051 typedef Uniform3ui ValueType; | 9051 typedef Uniform3ui ValueType; |
| 9052 static const CommandId kCmdId = kUniform3ui; | 9052 static const CommandId kCmdId = kUniform3ui; |
| 9053 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9053 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9054 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9054 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9055 | 9055 |
| 9056 static uint32_t ComputeSize() { | 9056 static uint32_t ComputeSize() { |
| 9057 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9057 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9058 } | 9058 } |
| 9059 | 9059 |
| 9060 void SetHeader() { header.SetCmd<ValueType>(); } | 9060 void SetHeader() { header.SetCmd<ValueType>(); } |
| 9061 | 9061 |
| 9062 void Init(GLint _location, GLuint _x, GLuint _y, GLuint _z) { | 9062 void Init(GLint _location, GLuint _x, GLuint _y, GLuint _z) { |
| 9063 SetHeader(); | 9063 SetHeader(); |
| 9064 location = _location; | 9064 location = _location; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 9088 "offset of Uniform3ui x should be 8"); | 9088 "offset of Uniform3ui x should be 8"); |
| 9089 static_assert(offsetof(Uniform3ui, y) == 12, | 9089 static_assert(offsetof(Uniform3ui, y) == 12, |
| 9090 "offset of Uniform3ui y should be 12"); | 9090 "offset of Uniform3ui y should be 12"); |
| 9091 static_assert(offsetof(Uniform3ui, z) == 16, | 9091 static_assert(offsetof(Uniform3ui, z) == 16, |
| 9092 "offset of Uniform3ui z should be 16"); | 9092 "offset of Uniform3ui z should be 16"); |
| 9093 | 9093 |
| 9094 struct Uniform3uivImmediate { | 9094 struct Uniform3uivImmediate { |
| 9095 typedef Uniform3uivImmediate ValueType; | 9095 typedef Uniform3uivImmediate ValueType; |
| 9096 static const CommandId kCmdId = kUniform3uivImmediate; | 9096 static const CommandId kCmdId = kUniform3uivImmediate; |
| 9097 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9097 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9098 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9098 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9099 | 9099 |
| 9100 static uint32_t ComputeDataSize(GLsizei count) { | 9100 static uint32_t ComputeDataSize(GLsizei count) { |
| 9101 return static_cast<uint32_t>(sizeof(GLuint) * 3 * count); // NOLINT | 9101 return static_cast<uint32_t>(sizeof(GLuint) * 3 * count); // NOLINT |
| 9102 } | 9102 } |
| 9103 | 9103 |
| 9104 static uint32_t ComputeSize(GLsizei count) { | 9104 static uint32_t ComputeSize(GLsizei count) { |
| 9105 return static_cast<uint32_t>(sizeof(ValueType) + | 9105 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9106 ComputeDataSize(count)); // NOLINT | 9106 ComputeDataSize(count)); // NOLINT |
| 9107 } | 9107 } |
| 9108 | 9108 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 9134 "offset of Uniform3uivImmediate header should be 0"); | 9134 "offset of Uniform3uivImmediate header should be 0"); |
| 9135 static_assert(offsetof(Uniform3uivImmediate, location) == 4, | 9135 static_assert(offsetof(Uniform3uivImmediate, location) == 4, |
| 9136 "offset of Uniform3uivImmediate location should be 4"); | 9136 "offset of Uniform3uivImmediate location should be 4"); |
| 9137 static_assert(offsetof(Uniform3uivImmediate, count) == 8, | 9137 static_assert(offsetof(Uniform3uivImmediate, count) == 8, |
| 9138 "offset of Uniform3uivImmediate count should be 8"); | 9138 "offset of Uniform3uivImmediate count should be 8"); |
| 9139 | 9139 |
| 9140 struct Uniform4f { | 9140 struct Uniform4f { |
| 9141 typedef Uniform4f ValueType; | 9141 typedef Uniform4f ValueType; |
| 9142 static const CommandId kCmdId = kUniform4f; | 9142 static const CommandId kCmdId = kUniform4f; |
| 9143 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9143 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9144 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9144 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9145 | 9145 |
| 9146 static uint32_t ComputeSize() { | 9146 static uint32_t ComputeSize() { |
| 9147 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9147 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9148 } | 9148 } |
| 9149 | 9149 |
| 9150 void SetHeader() { header.SetCmd<ValueType>(); } | 9150 void SetHeader() { header.SetCmd<ValueType>(); } |
| 9151 | 9151 |
| 9152 void Init(GLint _location, GLfloat _x, GLfloat _y, GLfloat _z, GLfloat _w) { | 9152 void Init(GLint _location, GLfloat _x, GLfloat _y, GLfloat _z, GLfloat _w) { |
| 9153 SetHeader(); | 9153 SetHeader(); |
| 9154 location = _location; | 9154 location = _location; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9186 "offset of Uniform4f y should be 12"); | 9186 "offset of Uniform4f y should be 12"); |
| 9187 static_assert(offsetof(Uniform4f, z) == 16, | 9187 static_assert(offsetof(Uniform4f, z) == 16, |
| 9188 "offset of Uniform4f z should be 16"); | 9188 "offset of Uniform4f z should be 16"); |
| 9189 static_assert(offsetof(Uniform4f, w) == 20, | 9189 static_assert(offsetof(Uniform4f, w) == 20, |
| 9190 "offset of Uniform4f w should be 20"); | 9190 "offset of Uniform4f w should be 20"); |
| 9191 | 9191 |
| 9192 struct Uniform4fvImmediate { | 9192 struct Uniform4fvImmediate { |
| 9193 typedef Uniform4fvImmediate ValueType; | 9193 typedef Uniform4fvImmediate ValueType; |
| 9194 static const CommandId kCmdId = kUniform4fvImmediate; | 9194 static const CommandId kCmdId = kUniform4fvImmediate; |
| 9195 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9195 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9196 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9196 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9197 | 9197 |
| 9198 static uint32_t ComputeDataSize(GLsizei count) { | 9198 static uint32_t ComputeDataSize(GLsizei count) { |
| 9199 return static_cast<uint32_t>(sizeof(GLfloat) * 4 * count); // NOLINT | 9199 return static_cast<uint32_t>(sizeof(GLfloat) * 4 * count); // NOLINT |
| 9200 } | 9200 } |
| 9201 | 9201 |
| 9202 static uint32_t ComputeSize(GLsizei count) { | 9202 static uint32_t ComputeSize(GLsizei count) { |
| 9203 return static_cast<uint32_t>(sizeof(ValueType) + | 9203 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9204 ComputeDataSize(count)); // NOLINT | 9204 ComputeDataSize(count)); // NOLINT |
| 9205 } | 9205 } |
| 9206 | 9206 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 9232 "offset of Uniform4fvImmediate header should be 0"); | 9232 "offset of Uniform4fvImmediate header should be 0"); |
| 9233 static_assert(offsetof(Uniform4fvImmediate, location) == 4, | 9233 static_assert(offsetof(Uniform4fvImmediate, location) == 4, |
| 9234 "offset of Uniform4fvImmediate location should be 4"); | 9234 "offset of Uniform4fvImmediate location should be 4"); |
| 9235 static_assert(offsetof(Uniform4fvImmediate, count) == 8, | 9235 static_assert(offsetof(Uniform4fvImmediate, count) == 8, |
| 9236 "offset of Uniform4fvImmediate count should be 8"); | 9236 "offset of Uniform4fvImmediate count should be 8"); |
| 9237 | 9237 |
| 9238 struct Uniform4i { | 9238 struct Uniform4i { |
| 9239 typedef Uniform4i ValueType; | 9239 typedef Uniform4i ValueType; |
| 9240 static const CommandId kCmdId = kUniform4i; | 9240 static const CommandId kCmdId = kUniform4i; |
| 9241 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9241 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9242 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9242 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9243 | 9243 |
| 9244 static uint32_t ComputeSize() { | 9244 static uint32_t ComputeSize() { |
| 9245 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9245 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9246 } | 9246 } |
| 9247 | 9247 |
| 9248 void SetHeader() { header.SetCmd<ValueType>(); } | 9248 void SetHeader() { header.SetCmd<ValueType>(); } |
| 9249 | 9249 |
| 9250 void Init(GLint _location, GLint _x, GLint _y, GLint _z, GLint _w) { | 9250 void Init(GLint _location, GLint _x, GLint _y, GLint _z, GLint _w) { |
| 9251 SetHeader(); | 9251 SetHeader(); |
| 9252 location = _location; | 9252 location = _location; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9284 "offset of Uniform4i y should be 12"); | 9284 "offset of Uniform4i y should be 12"); |
| 9285 static_assert(offsetof(Uniform4i, z) == 16, | 9285 static_assert(offsetof(Uniform4i, z) == 16, |
| 9286 "offset of Uniform4i z should be 16"); | 9286 "offset of Uniform4i z should be 16"); |
| 9287 static_assert(offsetof(Uniform4i, w) == 20, | 9287 static_assert(offsetof(Uniform4i, w) == 20, |
| 9288 "offset of Uniform4i w should be 20"); | 9288 "offset of Uniform4i w should be 20"); |
| 9289 | 9289 |
| 9290 struct Uniform4ivImmediate { | 9290 struct Uniform4ivImmediate { |
| 9291 typedef Uniform4ivImmediate ValueType; | 9291 typedef Uniform4ivImmediate ValueType; |
| 9292 static const CommandId kCmdId = kUniform4ivImmediate; | 9292 static const CommandId kCmdId = kUniform4ivImmediate; |
| 9293 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9293 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9294 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9294 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9295 | 9295 |
| 9296 static uint32_t ComputeDataSize(GLsizei count) { | 9296 static uint32_t ComputeDataSize(GLsizei count) { |
| 9297 return static_cast<uint32_t>(sizeof(GLint) * 4 * count); // NOLINT | 9297 return static_cast<uint32_t>(sizeof(GLint) * 4 * count); // NOLINT |
| 9298 } | 9298 } |
| 9299 | 9299 |
| 9300 static uint32_t ComputeSize(GLsizei count) { | 9300 static uint32_t ComputeSize(GLsizei count) { |
| 9301 return static_cast<uint32_t>(sizeof(ValueType) + | 9301 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9302 ComputeDataSize(count)); // NOLINT | 9302 ComputeDataSize(count)); // NOLINT |
| 9303 } | 9303 } |
| 9304 | 9304 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 9330 "offset of Uniform4ivImmediate header should be 0"); | 9330 "offset of Uniform4ivImmediate header should be 0"); |
| 9331 static_assert(offsetof(Uniform4ivImmediate, location) == 4, | 9331 static_assert(offsetof(Uniform4ivImmediate, location) == 4, |
| 9332 "offset of Uniform4ivImmediate location should be 4"); | 9332 "offset of Uniform4ivImmediate location should be 4"); |
| 9333 static_assert(offsetof(Uniform4ivImmediate, count) == 8, | 9333 static_assert(offsetof(Uniform4ivImmediate, count) == 8, |
| 9334 "offset of Uniform4ivImmediate count should be 8"); | 9334 "offset of Uniform4ivImmediate count should be 8"); |
| 9335 | 9335 |
| 9336 struct Uniform4ui { | 9336 struct Uniform4ui { |
| 9337 typedef Uniform4ui ValueType; | 9337 typedef Uniform4ui ValueType; |
| 9338 static const CommandId kCmdId = kUniform4ui; | 9338 static const CommandId kCmdId = kUniform4ui; |
| 9339 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9339 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9340 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9340 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9341 | 9341 |
| 9342 static uint32_t ComputeSize() { | 9342 static uint32_t ComputeSize() { |
| 9343 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9343 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9344 } | 9344 } |
| 9345 | 9345 |
| 9346 void SetHeader() { header.SetCmd<ValueType>(); } | 9346 void SetHeader() { header.SetCmd<ValueType>(); } |
| 9347 | 9347 |
| 9348 void Init(GLint _location, GLuint _x, GLuint _y, GLuint _z, GLuint _w) { | 9348 void Init(GLint _location, GLuint _x, GLuint _y, GLuint _z, GLuint _w) { |
| 9349 SetHeader(); | 9349 SetHeader(); |
| 9350 location = _location; | 9350 location = _location; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9383 "offset of Uniform4ui y should be 12"); | 9383 "offset of Uniform4ui y should be 12"); |
| 9384 static_assert(offsetof(Uniform4ui, z) == 16, | 9384 static_assert(offsetof(Uniform4ui, z) == 16, |
| 9385 "offset of Uniform4ui z should be 16"); | 9385 "offset of Uniform4ui z should be 16"); |
| 9386 static_assert(offsetof(Uniform4ui, w) == 20, | 9386 static_assert(offsetof(Uniform4ui, w) == 20, |
| 9387 "offset of Uniform4ui w should be 20"); | 9387 "offset of Uniform4ui w should be 20"); |
| 9388 | 9388 |
| 9389 struct Uniform4uivImmediate { | 9389 struct Uniform4uivImmediate { |
| 9390 typedef Uniform4uivImmediate ValueType; | 9390 typedef Uniform4uivImmediate ValueType; |
| 9391 static const CommandId kCmdId = kUniform4uivImmediate; | 9391 static const CommandId kCmdId = kUniform4uivImmediate; |
| 9392 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9392 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9393 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9393 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9394 | 9394 |
| 9395 static uint32_t ComputeDataSize(GLsizei count) { | 9395 static uint32_t ComputeDataSize(GLsizei count) { |
| 9396 return static_cast<uint32_t>(sizeof(GLuint) * 4 * count); // NOLINT | 9396 return static_cast<uint32_t>(sizeof(GLuint) * 4 * count); // NOLINT |
| 9397 } | 9397 } |
| 9398 | 9398 |
| 9399 static uint32_t ComputeSize(GLsizei count) { | 9399 static uint32_t ComputeSize(GLsizei count) { |
| 9400 return static_cast<uint32_t>(sizeof(ValueType) + | 9400 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9401 ComputeDataSize(count)); // NOLINT | 9401 ComputeDataSize(count)); // NOLINT |
| 9402 } | 9402 } |
| 9403 | 9403 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 9429 "offset of Uniform4uivImmediate header should be 0"); | 9429 "offset of Uniform4uivImmediate header should be 0"); |
| 9430 static_assert(offsetof(Uniform4uivImmediate, location) == 4, | 9430 static_assert(offsetof(Uniform4uivImmediate, location) == 4, |
| 9431 "offset of Uniform4uivImmediate location should be 4"); | 9431 "offset of Uniform4uivImmediate location should be 4"); |
| 9432 static_assert(offsetof(Uniform4uivImmediate, count) == 8, | 9432 static_assert(offsetof(Uniform4uivImmediate, count) == 8, |
| 9433 "offset of Uniform4uivImmediate count should be 8"); | 9433 "offset of Uniform4uivImmediate count should be 8"); |
| 9434 | 9434 |
| 9435 struct UniformBlockBinding { | 9435 struct UniformBlockBinding { |
| 9436 typedef UniformBlockBinding ValueType; | 9436 typedef UniformBlockBinding ValueType; |
| 9437 static const CommandId kCmdId = kUniformBlockBinding; | 9437 static const CommandId kCmdId = kUniformBlockBinding; |
| 9438 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9438 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9439 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9439 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9440 | 9440 |
| 9441 static uint32_t ComputeSize() { | 9441 static uint32_t ComputeSize() { |
| 9442 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9442 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9443 } | 9443 } |
| 9444 | 9444 |
| 9445 void SetHeader() { header.SetCmd<ValueType>(); } | 9445 void SetHeader() { header.SetCmd<ValueType>(); } |
| 9446 | 9446 |
| 9447 void Init(GLuint _program, GLuint _index, GLuint _binding) { | 9447 void Init(GLuint _program, GLuint _index, GLuint _binding) { |
| 9448 SetHeader(); | 9448 SetHeader(); |
| 9449 program = _program; | 9449 program = _program; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 9470 "offset of UniformBlockBinding program should be 4"); | 9470 "offset of UniformBlockBinding program should be 4"); |
| 9471 static_assert(offsetof(UniformBlockBinding, index) == 8, | 9471 static_assert(offsetof(UniformBlockBinding, index) == 8, |
| 9472 "offset of UniformBlockBinding index should be 8"); | 9472 "offset of UniformBlockBinding index should be 8"); |
| 9473 static_assert(offsetof(UniformBlockBinding, binding) == 12, | 9473 static_assert(offsetof(UniformBlockBinding, binding) == 12, |
| 9474 "offset of UniformBlockBinding binding should be 12"); | 9474 "offset of UniformBlockBinding binding should be 12"); |
| 9475 | 9475 |
| 9476 struct UniformMatrix2fvImmediate { | 9476 struct UniformMatrix2fvImmediate { |
| 9477 typedef UniformMatrix2fvImmediate ValueType; | 9477 typedef UniformMatrix2fvImmediate ValueType; |
| 9478 static const CommandId kCmdId = kUniformMatrix2fvImmediate; | 9478 static const CommandId kCmdId = kUniformMatrix2fvImmediate; |
| 9479 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9479 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9480 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9480 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9481 | 9481 |
| 9482 static uint32_t ComputeDataSize(GLsizei count) { | 9482 static uint32_t ComputeDataSize(GLsizei count) { |
| 9483 return static_cast<uint32_t>(sizeof(GLfloat) * 4 * count); // NOLINT | 9483 return static_cast<uint32_t>(sizeof(GLfloat) * 4 * count); // NOLINT |
| 9484 } | 9484 } |
| 9485 | 9485 |
| 9486 static uint32_t ComputeSize(GLsizei count) { | 9486 static uint32_t ComputeSize(GLsizei count) { |
| 9487 return static_cast<uint32_t>(sizeof(ValueType) + | 9487 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9488 ComputeDataSize(count)); // NOLINT | 9488 ComputeDataSize(count)); // NOLINT |
| 9489 } | 9489 } |
| 9490 | 9490 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 9517 "offset of UniformMatrix2fvImmediate header should be 0"); | 9517 "offset of UniformMatrix2fvImmediate header should be 0"); |
| 9518 static_assert(offsetof(UniformMatrix2fvImmediate, location) == 4, | 9518 static_assert(offsetof(UniformMatrix2fvImmediate, location) == 4, |
| 9519 "offset of UniformMatrix2fvImmediate location should be 4"); | 9519 "offset of UniformMatrix2fvImmediate location should be 4"); |
| 9520 static_assert(offsetof(UniformMatrix2fvImmediate, count) == 8, | 9520 static_assert(offsetof(UniformMatrix2fvImmediate, count) == 8, |
| 9521 "offset of UniformMatrix2fvImmediate count should be 8"); | 9521 "offset of UniformMatrix2fvImmediate count should be 8"); |
| 9522 | 9522 |
| 9523 struct UniformMatrix2x3fvImmediate { | 9523 struct UniformMatrix2x3fvImmediate { |
| 9524 typedef UniformMatrix2x3fvImmediate ValueType; | 9524 typedef UniformMatrix2x3fvImmediate ValueType; |
| 9525 static const CommandId kCmdId = kUniformMatrix2x3fvImmediate; | 9525 static const CommandId kCmdId = kUniformMatrix2x3fvImmediate; |
| 9526 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9526 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9527 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9527 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9528 | 9528 |
| 9529 static uint32_t ComputeDataSize(GLsizei count) { | 9529 static uint32_t ComputeDataSize(GLsizei count) { |
| 9530 return static_cast<uint32_t>(sizeof(GLfloat) * 6 * count); // NOLINT | 9530 return static_cast<uint32_t>(sizeof(GLfloat) * 6 * count); // NOLINT |
| 9531 } | 9531 } |
| 9532 | 9532 |
| 9533 static uint32_t ComputeSize(GLsizei count) { | 9533 static uint32_t ComputeSize(GLsizei count) { |
| 9534 return static_cast<uint32_t>(sizeof(ValueType) + | 9534 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9535 ComputeDataSize(count)); // NOLINT | 9535 ComputeDataSize(count)); // NOLINT |
| 9536 } | 9536 } |
| 9537 | 9537 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 9564 "offset of UniformMatrix2x3fvImmediate header should be 0"); | 9564 "offset of UniformMatrix2x3fvImmediate header should be 0"); |
| 9565 static_assert(offsetof(UniformMatrix2x3fvImmediate, location) == 4, | 9565 static_assert(offsetof(UniformMatrix2x3fvImmediate, location) == 4, |
| 9566 "offset of UniformMatrix2x3fvImmediate location should be 4"); | 9566 "offset of UniformMatrix2x3fvImmediate location should be 4"); |
| 9567 static_assert(offsetof(UniformMatrix2x3fvImmediate, count) == 8, | 9567 static_assert(offsetof(UniformMatrix2x3fvImmediate, count) == 8, |
| 9568 "offset of UniformMatrix2x3fvImmediate count should be 8"); | 9568 "offset of UniformMatrix2x3fvImmediate count should be 8"); |
| 9569 | 9569 |
| 9570 struct UniformMatrix2x4fvImmediate { | 9570 struct UniformMatrix2x4fvImmediate { |
| 9571 typedef UniformMatrix2x4fvImmediate ValueType; | 9571 typedef UniformMatrix2x4fvImmediate ValueType; |
| 9572 static const CommandId kCmdId = kUniformMatrix2x4fvImmediate; | 9572 static const CommandId kCmdId = kUniformMatrix2x4fvImmediate; |
| 9573 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9573 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9574 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9574 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9575 | 9575 |
| 9576 static uint32_t ComputeDataSize(GLsizei count) { | 9576 static uint32_t ComputeDataSize(GLsizei count) { |
| 9577 return static_cast<uint32_t>(sizeof(GLfloat) * 8 * count); // NOLINT | 9577 return static_cast<uint32_t>(sizeof(GLfloat) * 8 * count); // NOLINT |
| 9578 } | 9578 } |
| 9579 | 9579 |
| 9580 static uint32_t ComputeSize(GLsizei count) { | 9580 static uint32_t ComputeSize(GLsizei count) { |
| 9581 return static_cast<uint32_t>(sizeof(ValueType) + | 9581 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9582 ComputeDataSize(count)); // NOLINT | 9582 ComputeDataSize(count)); // NOLINT |
| 9583 } | 9583 } |
| 9584 | 9584 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 9611 "offset of UniformMatrix2x4fvImmediate header should be 0"); | 9611 "offset of UniformMatrix2x4fvImmediate header should be 0"); |
| 9612 static_assert(offsetof(UniformMatrix2x4fvImmediate, location) == 4, | 9612 static_assert(offsetof(UniformMatrix2x4fvImmediate, location) == 4, |
| 9613 "offset of UniformMatrix2x4fvImmediate location should be 4"); | 9613 "offset of UniformMatrix2x4fvImmediate location should be 4"); |
| 9614 static_assert(offsetof(UniformMatrix2x4fvImmediate, count) == 8, | 9614 static_assert(offsetof(UniformMatrix2x4fvImmediate, count) == 8, |
| 9615 "offset of UniformMatrix2x4fvImmediate count should be 8"); | 9615 "offset of UniformMatrix2x4fvImmediate count should be 8"); |
| 9616 | 9616 |
| 9617 struct UniformMatrix3fvImmediate { | 9617 struct UniformMatrix3fvImmediate { |
| 9618 typedef UniformMatrix3fvImmediate ValueType; | 9618 typedef UniformMatrix3fvImmediate ValueType; |
| 9619 static const CommandId kCmdId = kUniformMatrix3fvImmediate; | 9619 static const CommandId kCmdId = kUniformMatrix3fvImmediate; |
| 9620 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9620 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9621 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9621 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9622 | 9622 |
| 9623 static uint32_t ComputeDataSize(GLsizei count) { | 9623 static uint32_t ComputeDataSize(GLsizei count) { |
| 9624 return static_cast<uint32_t>(sizeof(GLfloat) * 9 * count); // NOLINT | 9624 return static_cast<uint32_t>(sizeof(GLfloat) * 9 * count); // NOLINT |
| 9625 } | 9625 } |
| 9626 | 9626 |
| 9627 static uint32_t ComputeSize(GLsizei count) { | 9627 static uint32_t ComputeSize(GLsizei count) { |
| 9628 return static_cast<uint32_t>(sizeof(ValueType) + | 9628 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9629 ComputeDataSize(count)); // NOLINT | 9629 ComputeDataSize(count)); // NOLINT |
| 9630 } | 9630 } |
| 9631 | 9631 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 9658 "offset of UniformMatrix3fvImmediate header should be 0"); | 9658 "offset of UniformMatrix3fvImmediate header should be 0"); |
| 9659 static_assert(offsetof(UniformMatrix3fvImmediate, location) == 4, | 9659 static_assert(offsetof(UniformMatrix3fvImmediate, location) == 4, |
| 9660 "offset of UniformMatrix3fvImmediate location should be 4"); | 9660 "offset of UniformMatrix3fvImmediate location should be 4"); |
| 9661 static_assert(offsetof(UniformMatrix3fvImmediate, count) == 8, | 9661 static_assert(offsetof(UniformMatrix3fvImmediate, count) == 8, |
| 9662 "offset of UniformMatrix3fvImmediate count should be 8"); | 9662 "offset of UniformMatrix3fvImmediate count should be 8"); |
| 9663 | 9663 |
| 9664 struct UniformMatrix3x2fvImmediate { | 9664 struct UniformMatrix3x2fvImmediate { |
| 9665 typedef UniformMatrix3x2fvImmediate ValueType; | 9665 typedef UniformMatrix3x2fvImmediate ValueType; |
| 9666 static const CommandId kCmdId = kUniformMatrix3x2fvImmediate; | 9666 static const CommandId kCmdId = kUniformMatrix3x2fvImmediate; |
| 9667 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9667 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9668 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9668 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9669 | 9669 |
| 9670 static uint32_t ComputeDataSize(GLsizei count) { | 9670 static uint32_t ComputeDataSize(GLsizei count) { |
| 9671 return static_cast<uint32_t>(sizeof(GLfloat) * 6 * count); // NOLINT | 9671 return static_cast<uint32_t>(sizeof(GLfloat) * 6 * count); // NOLINT |
| 9672 } | 9672 } |
| 9673 | 9673 |
| 9674 static uint32_t ComputeSize(GLsizei count) { | 9674 static uint32_t ComputeSize(GLsizei count) { |
| 9675 return static_cast<uint32_t>(sizeof(ValueType) + | 9675 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9676 ComputeDataSize(count)); // NOLINT | 9676 ComputeDataSize(count)); // NOLINT |
| 9677 } | 9677 } |
| 9678 | 9678 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 9705 "offset of UniformMatrix3x2fvImmediate header should be 0"); | 9705 "offset of UniformMatrix3x2fvImmediate header should be 0"); |
| 9706 static_assert(offsetof(UniformMatrix3x2fvImmediate, location) == 4, | 9706 static_assert(offsetof(UniformMatrix3x2fvImmediate, location) == 4, |
| 9707 "offset of UniformMatrix3x2fvImmediate location should be 4"); | 9707 "offset of UniformMatrix3x2fvImmediate location should be 4"); |
| 9708 static_assert(offsetof(UniformMatrix3x2fvImmediate, count) == 8, | 9708 static_assert(offsetof(UniformMatrix3x2fvImmediate, count) == 8, |
| 9709 "offset of UniformMatrix3x2fvImmediate count should be 8"); | 9709 "offset of UniformMatrix3x2fvImmediate count should be 8"); |
| 9710 | 9710 |
| 9711 struct UniformMatrix3x4fvImmediate { | 9711 struct UniformMatrix3x4fvImmediate { |
| 9712 typedef UniformMatrix3x4fvImmediate ValueType; | 9712 typedef UniformMatrix3x4fvImmediate ValueType; |
| 9713 static const CommandId kCmdId = kUniformMatrix3x4fvImmediate; | 9713 static const CommandId kCmdId = kUniformMatrix3x4fvImmediate; |
| 9714 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9714 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9715 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9715 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9716 | 9716 |
| 9717 static uint32_t ComputeDataSize(GLsizei count) { | 9717 static uint32_t ComputeDataSize(GLsizei count) { |
| 9718 return static_cast<uint32_t>(sizeof(GLfloat) * 12 * count); // NOLINT | 9718 return static_cast<uint32_t>(sizeof(GLfloat) * 12 * count); // NOLINT |
| 9719 } | 9719 } |
| 9720 | 9720 |
| 9721 static uint32_t ComputeSize(GLsizei count) { | 9721 static uint32_t ComputeSize(GLsizei count) { |
| 9722 return static_cast<uint32_t>(sizeof(ValueType) + | 9722 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9723 ComputeDataSize(count)); // NOLINT | 9723 ComputeDataSize(count)); // NOLINT |
| 9724 } | 9724 } |
| 9725 | 9725 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 9752 "offset of UniformMatrix3x4fvImmediate header should be 0"); | 9752 "offset of UniformMatrix3x4fvImmediate header should be 0"); |
| 9753 static_assert(offsetof(UniformMatrix3x4fvImmediate, location) == 4, | 9753 static_assert(offsetof(UniformMatrix3x4fvImmediate, location) == 4, |
| 9754 "offset of UniformMatrix3x4fvImmediate location should be 4"); | 9754 "offset of UniformMatrix3x4fvImmediate location should be 4"); |
| 9755 static_assert(offsetof(UniformMatrix3x4fvImmediate, count) == 8, | 9755 static_assert(offsetof(UniformMatrix3x4fvImmediate, count) == 8, |
| 9756 "offset of UniformMatrix3x4fvImmediate count should be 8"); | 9756 "offset of UniformMatrix3x4fvImmediate count should be 8"); |
| 9757 | 9757 |
| 9758 struct UniformMatrix4fvImmediate { | 9758 struct UniformMatrix4fvImmediate { |
| 9759 typedef UniformMatrix4fvImmediate ValueType; | 9759 typedef UniformMatrix4fvImmediate ValueType; |
| 9760 static const CommandId kCmdId = kUniformMatrix4fvImmediate; | 9760 static const CommandId kCmdId = kUniformMatrix4fvImmediate; |
| 9761 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9761 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9762 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9762 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9763 | 9763 |
| 9764 static uint32_t ComputeDataSize(GLsizei count) { | 9764 static uint32_t ComputeDataSize(GLsizei count) { |
| 9765 return static_cast<uint32_t>(sizeof(GLfloat) * 16 * count); // NOLINT | 9765 return static_cast<uint32_t>(sizeof(GLfloat) * 16 * count); // NOLINT |
| 9766 } | 9766 } |
| 9767 | 9767 |
| 9768 static uint32_t ComputeSize(GLsizei count) { | 9768 static uint32_t ComputeSize(GLsizei count) { |
| 9769 return static_cast<uint32_t>(sizeof(ValueType) + | 9769 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9770 ComputeDataSize(count)); // NOLINT | 9770 ComputeDataSize(count)); // NOLINT |
| 9771 } | 9771 } |
| 9772 | 9772 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 9799 "offset of UniformMatrix4fvImmediate header should be 0"); | 9799 "offset of UniformMatrix4fvImmediate header should be 0"); |
| 9800 static_assert(offsetof(UniformMatrix4fvImmediate, location) == 4, | 9800 static_assert(offsetof(UniformMatrix4fvImmediate, location) == 4, |
| 9801 "offset of UniformMatrix4fvImmediate location should be 4"); | 9801 "offset of UniformMatrix4fvImmediate location should be 4"); |
| 9802 static_assert(offsetof(UniformMatrix4fvImmediate, count) == 8, | 9802 static_assert(offsetof(UniformMatrix4fvImmediate, count) == 8, |
| 9803 "offset of UniformMatrix4fvImmediate count should be 8"); | 9803 "offset of UniformMatrix4fvImmediate count should be 8"); |
| 9804 | 9804 |
| 9805 struct UniformMatrix4x2fvImmediate { | 9805 struct UniformMatrix4x2fvImmediate { |
| 9806 typedef UniformMatrix4x2fvImmediate ValueType; | 9806 typedef UniformMatrix4x2fvImmediate ValueType; |
| 9807 static const CommandId kCmdId = kUniformMatrix4x2fvImmediate; | 9807 static const CommandId kCmdId = kUniformMatrix4x2fvImmediate; |
| 9808 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9808 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9809 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9809 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9810 | 9810 |
| 9811 static uint32_t ComputeDataSize(GLsizei count) { | 9811 static uint32_t ComputeDataSize(GLsizei count) { |
| 9812 return static_cast<uint32_t>(sizeof(GLfloat) * 8 * count); // NOLINT | 9812 return static_cast<uint32_t>(sizeof(GLfloat) * 8 * count); // NOLINT |
| 9813 } | 9813 } |
| 9814 | 9814 |
| 9815 static uint32_t ComputeSize(GLsizei count) { | 9815 static uint32_t ComputeSize(GLsizei count) { |
| 9816 return static_cast<uint32_t>(sizeof(ValueType) + | 9816 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9817 ComputeDataSize(count)); // NOLINT | 9817 ComputeDataSize(count)); // NOLINT |
| 9818 } | 9818 } |
| 9819 | 9819 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 9846 "offset of UniformMatrix4x2fvImmediate header should be 0"); | 9846 "offset of UniformMatrix4x2fvImmediate header should be 0"); |
| 9847 static_assert(offsetof(UniformMatrix4x2fvImmediate, location) == 4, | 9847 static_assert(offsetof(UniformMatrix4x2fvImmediate, location) == 4, |
| 9848 "offset of UniformMatrix4x2fvImmediate location should be 4"); | 9848 "offset of UniformMatrix4x2fvImmediate location should be 4"); |
| 9849 static_assert(offsetof(UniformMatrix4x2fvImmediate, count) == 8, | 9849 static_assert(offsetof(UniformMatrix4x2fvImmediate, count) == 8, |
| 9850 "offset of UniformMatrix4x2fvImmediate count should be 8"); | 9850 "offset of UniformMatrix4x2fvImmediate count should be 8"); |
| 9851 | 9851 |
| 9852 struct UniformMatrix4x3fvImmediate { | 9852 struct UniformMatrix4x3fvImmediate { |
| 9853 typedef UniformMatrix4x3fvImmediate ValueType; | 9853 typedef UniformMatrix4x3fvImmediate ValueType; |
| 9854 static const CommandId kCmdId = kUniformMatrix4x3fvImmediate; | 9854 static const CommandId kCmdId = kUniformMatrix4x3fvImmediate; |
| 9855 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9855 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9856 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9856 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9857 | 9857 |
| 9858 static uint32_t ComputeDataSize(GLsizei count) { | 9858 static uint32_t ComputeDataSize(GLsizei count) { |
| 9859 return static_cast<uint32_t>(sizeof(GLfloat) * 12 * count); // NOLINT | 9859 return static_cast<uint32_t>(sizeof(GLfloat) * 12 * count); // NOLINT |
| 9860 } | 9860 } |
| 9861 | 9861 |
| 9862 static uint32_t ComputeSize(GLsizei count) { | 9862 static uint32_t ComputeSize(GLsizei count) { |
| 9863 return static_cast<uint32_t>(sizeof(ValueType) + | 9863 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9864 ComputeDataSize(count)); // NOLINT | 9864 ComputeDataSize(count)); // NOLINT |
| 9865 } | 9865 } |
| 9866 | 9866 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 9893 "offset of UniformMatrix4x3fvImmediate header should be 0"); | 9893 "offset of UniformMatrix4x3fvImmediate header should be 0"); |
| 9894 static_assert(offsetof(UniformMatrix4x3fvImmediate, location) == 4, | 9894 static_assert(offsetof(UniformMatrix4x3fvImmediate, location) == 4, |
| 9895 "offset of UniformMatrix4x3fvImmediate location should be 4"); | 9895 "offset of UniformMatrix4x3fvImmediate location should be 4"); |
| 9896 static_assert(offsetof(UniformMatrix4x3fvImmediate, count) == 8, | 9896 static_assert(offsetof(UniformMatrix4x3fvImmediate, count) == 8, |
| 9897 "offset of UniformMatrix4x3fvImmediate count should be 8"); | 9897 "offset of UniformMatrix4x3fvImmediate count should be 8"); |
| 9898 | 9898 |
| 9899 struct UseProgram { | 9899 struct UseProgram { |
| 9900 typedef UseProgram ValueType; | 9900 typedef UseProgram ValueType; |
| 9901 static const CommandId kCmdId = kUseProgram; | 9901 static const CommandId kCmdId = kUseProgram; |
| 9902 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9902 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9903 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9903 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9904 | 9904 |
| 9905 static uint32_t ComputeSize() { | 9905 static uint32_t ComputeSize() { |
| 9906 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9906 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9907 } | 9907 } |
| 9908 | 9908 |
| 9909 void SetHeader() { header.SetCmd<ValueType>(); } | 9909 void SetHeader() { header.SetCmd<ValueType>(); } |
| 9910 | 9910 |
| 9911 void Init(GLuint _program) { | 9911 void Init(GLuint _program) { |
| 9912 SetHeader(); | 9912 SetHeader(); |
| 9913 program = _program; | 9913 program = _program; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 9925 static_assert(sizeof(UseProgram) == 8, "size of UseProgram should be 8"); | 9925 static_assert(sizeof(UseProgram) == 8, "size of UseProgram should be 8"); |
| 9926 static_assert(offsetof(UseProgram, header) == 0, | 9926 static_assert(offsetof(UseProgram, header) == 0, |
| 9927 "offset of UseProgram header should be 0"); | 9927 "offset of UseProgram header should be 0"); |
| 9928 static_assert(offsetof(UseProgram, program) == 4, | 9928 static_assert(offsetof(UseProgram, program) == 4, |
| 9929 "offset of UseProgram program should be 4"); | 9929 "offset of UseProgram program should be 4"); |
| 9930 | 9930 |
| 9931 struct ValidateProgram { | 9931 struct ValidateProgram { |
| 9932 typedef ValidateProgram ValueType; | 9932 typedef ValidateProgram ValueType; |
| 9933 static const CommandId kCmdId = kValidateProgram; | 9933 static const CommandId kCmdId = kValidateProgram; |
| 9934 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9934 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9935 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9935 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9936 | 9936 |
| 9937 static uint32_t ComputeSize() { | 9937 static uint32_t ComputeSize() { |
| 9938 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9938 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9939 } | 9939 } |
| 9940 | 9940 |
| 9941 void SetHeader() { header.SetCmd<ValueType>(); } | 9941 void SetHeader() { header.SetCmd<ValueType>(); } |
| 9942 | 9942 |
| 9943 void Init(GLuint _program) { | 9943 void Init(GLuint _program) { |
| 9944 SetHeader(); | 9944 SetHeader(); |
| 9945 program = _program; | 9945 program = _program; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 9958 "size of ValidateProgram should be 8"); | 9958 "size of ValidateProgram should be 8"); |
| 9959 static_assert(offsetof(ValidateProgram, header) == 0, | 9959 static_assert(offsetof(ValidateProgram, header) == 0, |
| 9960 "offset of ValidateProgram header should be 0"); | 9960 "offset of ValidateProgram header should be 0"); |
| 9961 static_assert(offsetof(ValidateProgram, program) == 4, | 9961 static_assert(offsetof(ValidateProgram, program) == 4, |
| 9962 "offset of ValidateProgram program should be 4"); | 9962 "offset of ValidateProgram program should be 4"); |
| 9963 | 9963 |
| 9964 struct VertexAttrib1f { | 9964 struct VertexAttrib1f { |
| 9965 typedef VertexAttrib1f ValueType; | 9965 typedef VertexAttrib1f ValueType; |
| 9966 static const CommandId kCmdId = kVertexAttrib1f; | 9966 static const CommandId kCmdId = kVertexAttrib1f; |
| 9967 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9967 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9968 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9968 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9969 | 9969 |
| 9970 static uint32_t ComputeSize() { | 9970 static uint32_t ComputeSize() { |
| 9971 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9971 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9972 } | 9972 } |
| 9973 | 9973 |
| 9974 void SetHeader() { header.SetCmd<ValueType>(); } | 9974 void SetHeader() { header.SetCmd<ValueType>(); } |
| 9975 | 9975 |
| 9976 void Init(GLuint _indx, GLfloat _x) { | 9976 void Init(GLuint _indx, GLfloat _x) { |
| 9977 SetHeader(); | 9977 SetHeader(); |
| 9978 indx = _indx; | 9978 indx = _indx; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 9995 "offset of VertexAttrib1f header should be 0"); | 9995 "offset of VertexAttrib1f header should be 0"); |
| 9996 static_assert(offsetof(VertexAttrib1f, indx) == 4, | 9996 static_assert(offsetof(VertexAttrib1f, indx) == 4, |
| 9997 "offset of VertexAttrib1f indx should be 4"); | 9997 "offset of VertexAttrib1f indx should be 4"); |
| 9998 static_assert(offsetof(VertexAttrib1f, x) == 8, | 9998 static_assert(offsetof(VertexAttrib1f, x) == 8, |
| 9999 "offset of VertexAttrib1f x should be 8"); | 9999 "offset of VertexAttrib1f x should be 8"); |
| 10000 | 10000 |
| 10001 struct VertexAttrib1fvImmediate { | 10001 struct VertexAttrib1fvImmediate { |
| 10002 typedef VertexAttrib1fvImmediate ValueType; | 10002 typedef VertexAttrib1fvImmediate ValueType; |
| 10003 static const CommandId kCmdId = kVertexAttrib1fvImmediate; | 10003 static const CommandId kCmdId = kVertexAttrib1fvImmediate; |
| 10004 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 10004 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 10005 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10005 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10006 | 10006 |
| 10007 static uint32_t ComputeDataSize() { | 10007 static uint32_t ComputeDataSize() { |
| 10008 return static_cast<uint32_t>(sizeof(GLfloat) * 1); | 10008 return static_cast<uint32_t>(sizeof(GLfloat) * 1); |
| 10009 } | 10009 } |
| 10010 | 10010 |
| 10011 static uint32_t ComputeSize() { | 10011 static uint32_t ComputeSize() { |
| 10012 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 10012 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 10013 } | 10013 } |
| 10014 | 10014 |
| 10015 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 10015 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10034 "size of VertexAttrib1fvImmediate should be 8"); | 10034 "size of VertexAttrib1fvImmediate should be 8"); |
| 10035 static_assert(offsetof(VertexAttrib1fvImmediate, header) == 0, | 10035 static_assert(offsetof(VertexAttrib1fvImmediate, header) == 0, |
| 10036 "offset of VertexAttrib1fvImmediate header should be 0"); | 10036 "offset of VertexAttrib1fvImmediate header should be 0"); |
| 10037 static_assert(offsetof(VertexAttrib1fvImmediate, indx) == 4, | 10037 static_assert(offsetof(VertexAttrib1fvImmediate, indx) == 4, |
| 10038 "offset of VertexAttrib1fvImmediate indx should be 4"); | 10038 "offset of VertexAttrib1fvImmediate indx should be 4"); |
| 10039 | 10039 |
| 10040 struct VertexAttrib2f { | 10040 struct VertexAttrib2f { |
| 10041 typedef VertexAttrib2f ValueType; | 10041 typedef VertexAttrib2f ValueType; |
| 10042 static const CommandId kCmdId = kVertexAttrib2f; | 10042 static const CommandId kCmdId = kVertexAttrib2f; |
| 10043 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10043 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10044 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10044 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10045 | 10045 |
| 10046 static uint32_t ComputeSize() { | 10046 static uint32_t ComputeSize() { |
| 10047 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10047 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10048 } | 10048 } |
| 10049 | 10049 |
| 10050 void SetHeader() { header.SetCmd<ValueType>(); } | 10050 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10051 | 10051 |
| 10052 void Init(GLuint _indx, GLfloat _x, GLfloat _y) { | 10052 void Init(GLuint _indx, GLfloat _x, GLfloat _y) { |
| 10053 SetHeader(); | 10053 SetHeader(); |
| 10054 indx = _indx; | 10054 indx = _indx; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 10075 "offset of VertexAttrib2f indx should be 4"); | 10075 "offset of VertexAttrib2f indx should be 4"); |
| 10076 static_assert(offsetof(VertexAttrib2f, x) == 8, | 10076 static_assert(offsetof(VertexAttrib2f, x) == 8, |
| 10077 "offset of VertexAttrib2f x should be 8"); | 10077 "offset of VertexAttrib2f x should be 8"); |
| 10078 static_assert(offsetof(VertexAttrib2f, y) == 12, | 10078 static_assert(offsetof(VertexAttrib2f, y) == 12, |
| 10079 "offset of VertexAttrib2f y should be 12"); | 10079 "offset of VertexAttrib2f y should be 12"); |
| 10080 | 10080 |
| 10081 struct VertexAttrib2fvImmediate { | 10081 struct VertexAttrib2fvImmediate { |
| 10082 typedef VertexAttrib2fvImmediate ValueType; | 10082 typedef VertexAttrib2fvImmediate ValueType; |
| 10083 static const CommandId kCmdId = kVertexAttrib2fvImmediate; | 10083 static const CommandId kCmdId = kVertexAttrib2fvImmediate; |
| 10084 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 10084 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 10085 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10085 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10086 | 10086 |
| 10087 static uint32_t ComputeDataSize() { | 10087 static uint32_t ComputeDataSize() { |
| 10088 return static_cast<uint32_t>(sizeof(GLfloat) * 2); | 10088 return static_cast<uint32_t>(sizeof(GLfloat) * 2); |
| 10089 } | 10089 } |
| 10090 | 10090 |
| 10091 static uint32_t ComputeSize() { | 10091 static uint32_t ComputeSize() { |
| 10092 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 10092 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 10093 } | 10093 } |
| 10094 | 10094 |
| 10095 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 10095 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10114 "size of VertexAttrib2fvImmediate should be 8"); | 10114 "size of VertexAttrib2fvImmediate should be 8"); |
| 10115 static_assert(offsetof(VertexAttrib2fvImmediate, header) == 0, | 10115 static_assert(offsetof(VertexAttrib2fvImmediate, header) == 0, |
| 10116 "offset of VertexAttrib2fvImmediate header should be 0"); | 10116 "offset of VertexAttrib2fvImmediate header should be 0"); |
| 10117 static_assert(offsetof(VertexAttrib2fvImmediate, indx) == 4, | 10117 static_assert(offsetof(VertexAttrib2fvImmediate, indx) == 4, |
| 10118 "offset of VertexAttrib2fvImmediate indx should be 4"); | 10118 "offset of VertexAttrib2fvImmediate indx should be 4"); |
| 10119 | 10119 |
| 10120 struct VertexAttrib3f { | 10120 struct VertexAttrib3f { |
| 10121 typedef VertexAttrib3f ValueType; | 10121 typedef VertexAttrib3f ValueType; |
| 10122 static const CommandId kCmdId = kVertexAttrib3f; | 10122 static const CommandId kCmdId = kVertexAttrib3f; |
| 10123 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10123 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10124 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10124 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10125 | 10125 |
| 10126 static uint32_t ComputeSize() { | 10126 static uint32_t ComputeSize() { |
| 10127 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10127 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10128 } | 10128 } |
| 10129 | 10129 |
| 10130 void SetHeader() { header.SetCmd<ValueType>(); } | 10130 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10131 | 10131 |
| 10132 void Init(GLuint _indx, GLfloat _x, GLfloat _y, GLfloat _z) { | 10132 void Init(GLuint _indx, GLfloat _x, GLfloat _y, GLfloat _z) { |
| 10133 SetHeader(); | 10133 SetHeader(); |
| 10134 indx = _indx; | 10134 indx = _indx; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 10159 "offset of VertexAttrib3f x should be 8"); | 10159 "offset of VertexAttrib3f x should be 8"); |
| 10160 static_assert(offsetof(VertexAttrib3f, y) == 12, | 10160 static_assert(offsetof(VertexAttrib3f, y) == 12, |
| 10161 "offset of VertexAttrib3f y should be 12"); | 10161 "offset of VertexAttrib3f y should be 12"); |
| 10162 static_assert(offsetof(VertexAttrib3f, z) == 16, | 10162 static_assert(offsetof(VertexAttrib3f, z) == 16, |
| 10163 "offset of VertexAttrib3f z should be 16"); | 10163 "offset of VertexAttrib3f z should be 16"); |
| 10164 | 10164 |
| 10165 struct VertexAttrib3fvImmediate { | 10165 struct VertexAttrib3fvImmediate { |
| 10166 typedef VertexAttrib3fvImmediate ValueType; | 10166 typedef VertexAttrib3fvImmediate ValueType; |
| 10167 static const CommandId kCmdId = kVertexAttrib3fvImmediate; | 10167 static const CommandId kCmdId = kVertexAttrib3fvImmediate; |
| 10168 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 10168 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 10169 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10169 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10170 | 10170 |
| 10171 static uint32_t ComputeDataSize() { | 10171 static uint32_t ComputeDataSize() { |
| 10172 return static_cast<uint32_t>(sizeof(GLfloat) * 3); | 10172 return static_cast<uint32_t>(sizeof(GLfloat) * 3); |
| 10173 } | 10173 } |
| 10174 | 10174 |
| 10175 static uint32_t ComputeSize() { | 10175 static uint32_t ComputeSize() { |
| 10176 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 10176 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 10177 } | 10177 } |
| 10178 | 10178 |
| 10179 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 10179 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10198 "size of VertexAttrib3fvImmediate should be 8"); | 10198 "size of VertexAttrib3fvImmediate should be 8"); |
| 10199 static_assert(offsetof(VertexAttrib3fvImmediate, header) == 0, | 10199 static_assert(offsetof(VertexAttrib3fvImmediate, header) == 0, |
| 10200 "offset of VertexAttrib3fvImmediate header should be 0"); | 10200 "offset of VertexAttrib3fvImmediate header should be 0"); |
| 10201 static_assert(offsetof(VertexAttrib3fvImmediate, indx) == 4, | 10201 static_assert(offsetof(VertexAttrib3fvImmediate, indx) == 4, |
| 10202 "offset of VertexAttrib3fvImmediate indx should be 4"); | 10202 "offset of VertexAttrib3fvImmediate indx should be 4"); |
| 10203 | 10203 |
| 10204 struct VertexAttrib4f { | 10204 struct VertexAttrib4f { |
| 10205 typedef VertexAttrib4f ValueType; | 10205 typedef VertexAttrib4f ValueType; |
| 10206 static const CommandId kCmdId = kVertexAttrib4f; | 10206 static const CommandId kCmdId = kVertexAttrib4f; |
| 10207 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10207 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10208 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10208 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10209 | 10209 |
| 10210 static uint32_t ComputeSize() { | 10210 static uint32_t ComputeSize() { |
| 10211 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10211 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10212 } | 10212 } |
| 10213 | 10213 |
| 10214 void SetHeader() { header.SetCmd<ValueType>(); } | 10214 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10215 | 10215 |
| 10216 void Init(GLuint _indx, GLfloat _x, GLfloat _y, GLfloat _z, GLfloat _w) { | 10216 void Init(GLuint _indx, GLfloat _x, GLfloat _y, GLfloat _z, GLfloat _w) { |
| 10217 SetHeader(); | 10217 SetHeader(); |
| 10218 indx = _indx; | 10218 indx = _indx; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10252 "offset of VertexAttrib4f y should be 12"); | 10252 "offset of VertexAttrib4f y should be 12"); |
| 10253 static_assert(offsetof(VertexAttrib4f, z) == 16, | 10253 static_assert(offsetof(VertexAttrib4f, z) == 16, |
| 10254 "offset of VertexAttrib4f z should be 16"); | 10254 "offset of VertexAttrib4f z should be 16"); |
| 10255 static_assert(offsetof(VertexAttrib4f, w) == 20, | 10255 static_assert(offsetof(VertexAttrib4f, w) == 20, |
| 10256 "offset of VertexAttrib4f w should be 20"); | 10256 "offset of VertexAttrib4f w should be 20"); |
| 10257 | 10257 |
| 10258 struct VertexAttrib4fvImmediate { | 10258 struct VertexAttrib4fvImmediate { |
| 10259 typedef VertexAttrib4fvImmediate ValueType; | 10259 typedef VertexAttrib4fvImmediate ValueType; |
| 10260 static const CommandId kCmdId = kVertexAttrib4fvImmediate; | 10260 static const CommandId kCmdId = kVertexAttrib4fvImmediate; |
| 10261 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 10261 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 10262 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10262 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10263 | 10263 |
| 10264 static uint32_t ComputeDataSize() { | 10264 static uint32_t ComputeDataSize() { |
| 10265 return static_cast<uint32_t>(sizeof(GLfloat) * 4); | 10265 return static_cast<uint32_t>(sizeof(GLfloat) * 4); |
| 10266 } | 10266 } |
| 10267 | 10267 |
| 10268 static uint32_t ComputeSize() { | 10268 static uint32_t ComputeSize() { |
| 10269 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 10269 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 10270 } | 10270 } |
| 10271 | 10271 |
| 10272 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 10272 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10291 "size of VertexAttrib4fvImmediate should be 8"); | 10291 "size of VertexAttrib4fvImmediate should be 8"); |
| 10292 static_assert(offsetof(VertexAttrib4fvImmediate, header) == 0, | 10292 static_assert(offsetof(VertexAttrib4fvImmediate, header) == 0, |
| 10293 "offset of VertexAttrib4fvImmediate header should be 0"); | 10293 "offset of VertexAttrib4fvImmediate header should be 0"); |
| 10294 static_assert(offsetof(VertexAttrib4fvImmediate, indx) == 4, | 10294 static_assert(offsetof(VertexAttrib4fvImmediate, indx) == 4, |
| 10295 "offset of VertexAttrib4fvImmediate indx should be 4"); | 10295 "offset of VertexAttrib4fvImmediate indx should be 4"); |
| 10296 | 10296 |
| 10297 struct VertexAttribI4i { | 10297 struct VertexAttribI4i { |
| 10298 typedef VertexAttribI4i ValueType; | 10298 typedef VertexAttribI4i ValueType; |
| 10299 static const CommandId kCmdId = kVertexAttribI4i; | 10299 static const CommandId kCmdId = kVertexAttribI4i; |
| 10300 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10300 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10301 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10301 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10302 | 10302 |
| 10303 static uint32_t ComputeSize() { | 10303 static uint32_t ComputeSize() { |
| 10304 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10304 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10305 } | 10305 } |
| 10306 | 10306 |
| 10307 void SetHeader() { header.SetCmd<ValueType>(); } | 10307 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10308 | 10308 |
| 10309 void Init(GLuint _indx, GLint _x, GLint _y, GLint _z, GLint _w) { | 10309 void Init(GLuint _indx, GLint _x, GLint _y, GLint _z, GLint _w) { |
| 10310 SetHeader(); | 10310 SetHeader(); |
| 10311 indx = _indx; | 10311 indx = _indx; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 10340 "offset of VertexAttribI4i y should be 12"); | 10340 "offset of VertexAttribI4i y should be 12"); |
| 10341 static_assert(offsetof(VertexAttribI4i, z) == 16, | 10341 static_assert(offsetof(VertexAttribI4i, z) == 16, |
| 10342 "offset of VertexAttribI4i z should be 16"); | 10342 "offset of VertexAttribI4i z should be 16"); |
| 10343 static_assert(offsetof(VertexAttribI4i, w) == 20, | 10343 static_assert(offsetof(VertexAttribI4i, w) == 20, |
| 10344 "offset of VertexAttribI4i w should be 20"); | 10344 "offset of VertexAttribI4i w should be 20"); |
| 10345 | 10345 |
| 10346 struct VertexAttribI4ivImmediate { | 10346 struct VertexAttribI4ivImmediate { |
| 10347 typedef VertexAttribI4ivImmediate ValueType; | 10347 typedef VertexAttribI4ivImmediate ValueType; |
| 10348 static const CommandId kCmdId = kVertexAttribI4ivImmediate; | 10348 static const CommandId kCmdId = kVertexAttribI4ivImmediate; |
| 10349 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 10349 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 10350 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10350 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10351 | 10351 |
| 10352 static uint32_t ComputeDataSize() { | 10352 static uint32_t ComputeDataSize() { |
| 10353 return static_cast<uint32_t>(sizeof(GLint) * 4); | 10353 return static_cast<uint32_t>(sizeof(GLint) * 4); |
| 10354 } | 10354 } |
| 10355 | 10355 |
| 10356 static uint32_t ComputeSize() { | 10356 static uint32_t ComputeSize() { |
| 10357 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 10357 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 10358 } | 10358 } |
| 10359 | 10359 |
| 10360 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 10360 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10379 "size of VertexAttribI4ivImmediate should be 8"); | 10379 "size of VertexAttribI4ivImmediate should be 8"); |
| 10380 static_assert(offsetof(VertexAttribI4ivImmediate, header) == 0, | 10380 static_assert(offsetof(VertexAttribI4ivImmediate, header) == 0, |
| 10381 "offset of VertexAttribI4ivImmediate header should be 0"); | 10381 "offset of VertexAttribI4ivImmediate header should be 0"); |
| 10382 static_assert(offsetof(VertexAttribI4ivImmediate, indx) == 4, | 10382 static_assert(offsetof(VertexAttribI4ivImmediate, indx) == 4, |
| 10383 "offset of VertexAttribI4ivImmediate indx should be 4"); | 10383 "offset of VertexAttribI4ivImmediate indx should be 4"); |
| 10384 | 10384 |
| 10385 struct VertexAttribI4ui { | 10385 struct VertexAttribI4ui { |
| 10386 typedef VertexAttribI4ui ValueType; | 10386 typedef VertexAttribI4ui ValueType; |
| 10387 static const CommandId kCmdId = kVertexAttribI4ui; | 10387 static const CommandId kCmdId = kVertexAttribI4ui; |
| 10388 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10388 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10389 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10389 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10390 | 10390 |
| 10391 static uint32_t ComputeSize() { | 10391 static uint32_t ComputeSize() { |
| 10392 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10392 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10393 } | 10393 } |
| 10394 | 10394 |
| 10395 void SetHeader() { header.SetCmd<ValueType>(); } | 10395 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10396 | 10396 |
| 10397 void Init(GLuint _indx, GLuint _x, GLuint _y, GLuint _z, GLuint _w) { | 10397 void Init(GLuint _indx, GLuint _x, GLuint _y, GLuint _z, GLuint _w) { |
| 10398 SetHeader(); | 10398 SetHeader(); |
| 10399 indx = _indx; | 10399 indx = _indx; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10433 "offset of VertexAttribI4ui y should be 12"); | 10433 "offset of VertexAttribI4ui y should be 12"); |
| 10434 static_assert(offsetof(VertexAttribI4ui, z) == 16, | 10434 static_assert(offsetof(VertexAttribI4ui, z) == 16, |
| 10435 "offset of VertexAttribI4ui z should be 16"); | 10435 "offset of VertexAttribI4ui z should be 16"); |
| 10436 static_assert(offsetof(VertexAttribI4ui, w) == 20, | 10436 static_assert(offsetof(VertexAttribI4ui, w) == 20, |
| 10437 "offset of VertexAttribI4ui w should be 20"); | 10437 "offset of VertexAttribI4ui w should be 20"); |
| 10438 | 10438 |
| 10439 struct VertexAttribI4uivImmediate { | 10439 struct VertexAttribI4uivImmediate { |
| 10440 typedef VertexAttribI4uivImmediate ValueType; | 10440 typedef VertexAttribI4uivImmediate ValueType; |
| 10441 static const CommandId kCmdId = kVertexAttribI4uivImmediate; | 10441 static const CommandId kCmdId = kVertexAttribI4uivImmediate; |
| 10442 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 10442 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 10443 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10443 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10444 | 10444 |
| 10445 static uint32_t ComputeDataSize() { | 10445 static uint32_t ComputeDataSize() { |
| 10446 return static_cast<uint32_t>(sizeof(GLuint) * 4); | 10446 return static_cast<uint32_t>(sizeof(GLuint) * 4); |
| 10447 } | 10447 } |
| 10448 | 10448 |
| 10449 static uint32_t ComputeSize() { | 10449 static uint32_t ComputeSize() { |
| 10450 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 10450 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 10451 } | 10451 } |
| 10452 | 10452 |
| 10453 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 10453 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10472 "size of VertexAttribI4uivImmediate should be 8"); | 10472 "size of VertexAttribI4uivImmediate should be 8"); |
| 10473 static_assert(offsetof(VertexAttribI4uivImmediate, header) == 0, | 10473 static_assert(offsetof(VertexAttribI4uivImmediate, header) == 0, |
| 10474 "offset of VertexAttribI4uivImmediate header should be 0"); | 10474 "offset of VertexAttribI4uivImmediate header should be 0"); |
| 10475 static_assert(offsetof(VertexAttribI4uivImmediate, indx) == 4, | 10475 static_assert(offsetof(VertexAttribI4uivImmediate, indx) == 4, |
| 10476 "offset of VertexAttribI4uivImmediate indx should be 4"); | 10476 "offset of VertexAttribI4uivImmediate indx should be 4"); |
| 10477 | 10477 |
| 10478 struct VertexAttribIPointer { | 10478 struct VertexAttribIPointer { |
| 10479 typedef VertexAttribIPointer ValueType; | 10479 typedef VertexAttribIPointer ValueType; |
| 10480 static const CommandId kCmdId = kVertexAttribIPointer; | 10480 static const CommandId kCmdId = kVertexAttribIPointer; |
| 10481 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10481 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10482 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10482 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10483 | 10483 |
| 10484 static uint32_t ComputeSize() { | 10484 static uint32_t ComputeSize() { |
| 10485 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10485 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10486 } | 10486 } |
| 10487 | 10487 |
| 10488 void SetHeader() { header.SetCmd<ValueType>(); } | 10488 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10489 | 10489 |
| 10490 void Init(GLuint _indx, | 10490 void Init(GLuint _indx, |
| 10491 GLint _size, | 10491 GLint _size, |
| 10492 GLenum _type, | 10492 GLenum _type, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10530 "offset of VertexAttribIPointer type should be 12"); | 10530 "offset of VertexAttribIPointer type should be 12"); |
| 10531 static_assert(offsetof(VertexAttribIPointer, stride) == 16, | 10531 static_assert(offsetof(VertexAttribIPointer, stride) == 16, |
| 10532 "offset of VertexAttribIPointer stride should be 16"); | 10532 "offset of VertexAttribIPointer stride should be 16"); |
| 10533 static_assert(offsetof(VertexAttribIPointer, offset) == 20, | 10533 static_assert(offsetof(VertexAttribIPointer, offset) == 20, |
| 10534 "offset of VertexAttribIPointer offset should be 20"); | 10534 "offset of VertexAttribIPointer offset should be 20"); |
| 10535 | 10535 |
| 10536 struct VertexAttribPointer { | 10536 struct VertexAttribPointer { |
| 10537 typedef VertexAttribPointer ValueType; | 10537 typedef VertexAttribPointer ValueType; |
| 10538 static const CommandId kCmdId = kVertexAttribPointer; | 10538 static const CommandId kCmdId = kVertexAttribPointer; |
| 10539 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10539 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10540 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10540 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10541 | 10541 |
| 10542 static uint32_t ComputeSize() { | 10542 static uint32_t ComputeSize() { |
| 10543 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10543 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10544 } | 10544 } |
| 10545 | 10545 |
| 10546 void SetHeader() { header.SetCmd<ValueType>(); } | 10546 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10547 | 10547 |
| 10548 void Init(GLuint _indx, | 10548 void Init(GLuint _indx, |
| 10549 GLint _size, | 10549 GLint _size, |
| 10550 GLenum _type, | 10550 GLenum _type, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10595 "offset of VertexAttribPointer normalized should be 16"); | 10595 "offset of VertexAttribPointer normalized should be 16"); |
| 10596 static_assert(offsetof(VertexAttribPointer, stride) == 20, | 10596 static_assert(offsetof(VertexAttribPointer, stride) == 20, |
| 10597 "offset of VertexAttribPointer stride should be 20"); | 10597 "offset of VertexAttribPointer stride should be 20"); |
| 10598 static_assert(offsetof(VertexAttribPointer, offset) == 24, | 10598 static_assert(offsetof(VertexAttribPointer, offset) == 24, |
| 10599 "offset of VertexAttribPointer offset should be 24"); | 10599 "offset of VertexAttribPointer offset should be 24"); |
| 10600 | 10600 |
| 10601 struct Viewport { | 10601 struct Viewport { |
| 10602 typedef Viewport ValueType; | 10602 typedef Viewport ValueType; |
| 10603 static const CommandId kCmdId = kViewport; | 10603 static const CommandId kCmdId = kViewport; |
| 10604 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10604 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10605 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10605 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10606 | 10606 |
| 10607 static uint32_t ComputeSize() { | 10607 static uint32_t ComputeSize() { |
| 10608 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10608 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10609 } | 10609 } |
| 10610 | 10610 |
| 10611 void SetHeader() { header.SetCmd<ValueType>(); } | 10611 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10612 | 10612 |
| 10613 void Init(GLint _x, GLint _y, GLsizei _width, GLsizei _height) { | 10613 void Init(GLint _x, GLint _y, GLsizei _width, GLsizei _height) { |
| 10614 SetHeader(); | 10614 SetHeader(); |
| 10615 x = _x; | 10615 x = _x; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 10637 static_assert(offsetof(Viewport, y) == 8, "offset of Viewport y should be 8"); | 10637 static_assert(offsetof(Viewport, y) == 8, "offset of Viewport y should be 8"); |
| 10638 static_assert(offsetof(Viewport, width) == 12, | 10638 static_assert(offsetof(Viewport, width) == 12, |
| 10639 "offset of Viewport width should be 12"); | 10639 "offset of Viewport width should be 12"); |
| 10640 static_assert(offsetof(Viewport, height) == 16, | 10640 static_assert(offsetof(Viewport, height) == 16, |
| 10641 "offset of Viewport height should be 16"); | 10641 "offset of Viewport height should be 16"); |
| 10642 | 10642 |
| 10643 struct WaitSync { | 10643 struct WaitSync { |
| 10644 typedef WaitSync ValueType; | 10644 typedef WaitSync ValueType; |
| 10645 static const CommandId kCmdId = kWaitSync; | 10645 static const CommandId kCmdId = kWaitSync; |
| 10646 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10646 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10647 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 10647 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 10648 | 10648 |
| 10649 static uint32_t ComputeSize() { | 10649 static uint32_t ComputeSize() { |
| 10650 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10650 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10651 } | 10651 } |
| 10652 | 10652 |
| 10653 void SetHeader() { header.SetCmd<ValueType>(); } | 10653 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10654 | 10654 |
| 10655 void Init(GLuint _sync, GLbitfield _flags, GLuint64 _timeout) { | 10655 void Init(GLuint _sync, GLbitfield _flags, GLuint64 _timeout) { |
| 10656 SetHeader(); | 10656 SetHeader(); |
| 10657 sync = _sync; | 10657 sync = _sync; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 10686 "offset of WaitSync flags should be 8"); | 10686 "offset of WaitSync flags should be 8"); |
| 10687 static_assert(offsetof(WaitSync, timeout_0) == 12, | 10687 static_assert(offsetof(WaitSync, timeout_0) == 12, |
| 10688 "offset of WaitSync timeout_0 should be 12"); | 10688 "offset of WaitSync timeout_0 should be 12"); |
| 10689 static_assert(offsetof(WaitSync, timeout_1) == 16, | 10689 static_assert(offsetof(WaitSync, timeout_1) == 16, |
| 10690 "offset of WaitSync timeout_1 should be 16"); | 10690 "offset of WaitSync timeout_1 should be 16"); |
| 10691 | 10691 |
| 10692 struct BlitFramebufferCHROMIUM { | 10692 struct BlitFramebufferCHROMIUM { |
| 10693 typedef BlitFramebufferCHROMIUM ValueType; | 10693 typedef BlitFramebufferCHROMIUM ValueType; |
| 10694 static const CommandId kCmdId = kBlitFramebufferCHROMIUM; | 10694 static const CommandId kCmdId = kBlitFramebufferCHROMIUM; |
| 10695 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10695 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10696 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 10696 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 10697 | 10697 |
| 10698 static uint32_t ComputeSize() { | 10698 static uint32_t ComputeSize() { |
| 10699 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10699 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10700 } | 10700 } |
| 10701 | 10701 |
| 10702 void SetHeader() { header.SetCmd<ValueType>(); } | 10702 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10703 | 10703 |
| 10704 void Init(GLint _srcX0, | 10704 void Init(GLint _srcX0, |
| 10705 GLint _srcY0, | 10705 GLint _srcY0, |
| 10706 GLint _srcX1, | 10706 GLint _srcX1, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10776 static_assert(offsetof(BlitFramebufferCHROMIUM, mask) == 36, | 10776 static_assert(offsetof(BlitFramebufferCHROMIUM, mask) == 36, |
| 10777 "offset of BlitFramebufferCHROMIUM mask should be 36"); | 10777 "offset of BlitFramebufferCHROMIUM mask should be 36"); |
| 10778 static_assert(offsetof(BlitFramebufferCHROMIUM, filter) == 40, | 10778 static_assert(offsetof(BlitFramebufferCHROMIUM, filter) == 40, |
| 10779 "offset of BlitFramebufferCHROMIUM filter should be 40"); | 10779 "offset of BlitFramebufferCHROMIUM filter should be 40"); |
| 10780 | 10780 |
| 10781 // GL_CHROMIUM_framebuffer_multisample | 10781 // GL_CHROMIUM_framebuffer_multisample |
| 10782 struct RenderbufferStorageMultisampleCHROMIUM { | 10782 struct RenderbufferStorageMultisampleCHROMIUM { |
| 10783 typedef RenderbufferStorageMultisampleCHROMIUM ValueType; | 10783 typedef RenderbufferStorageMultisampleCHROMIUM ValueType; |
| 10784 static const CommandId kCmdId = kRenderbufferStorageMultisampleCHROMIUM; | 10784 static const CommandId kCmdId = kRenderbufferStorageMultisampleCHROMIUM; |
| 10785 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10785 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10786 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 10786 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 10787 | 10787 |
| 10788 static uint32_t ComputeSize() { | 10788 static uint32_t ComputeSize() { |
| 10789 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10789 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10790 } | 10790 } |
| 10791 | 10791 |
| 10792 void SetHeader() { header.SetCmd<ValueType>(); } | 10792 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10793 | 10793 |
| 10794 void Init(GLenum _target, | 10794 void Init(GLenum _target, |
| 10795 GLsizei _samples, | 10795 GLsizei _samples, |
| 10796 GLenum _internalformat, | 10796 GLenum _internalformat, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10843 "offset of RenderbufferStorageMultisampleCHROMIUM width should be 16"); | 10843 "offset of RenderbufferStorageMultisampleCHROMIUM width should be 16"); |
| 10844 static_assert( | 10844 static_assert( |
| 10845 offsetof(RenderbufferStorageMultisampleCHROMIUM, height) == 20, | 10845 offsetof(RenderbufferStorageMultisampleCHROMIUM, height) == 20, |
| 10846 "offset of RenderbufferStorageMultisampleCHROMIUM height should be 20"); | 10846 "offset of RenderbufferStorageMultisampleCHROMIUM height should be 20"); |
| 10847 | 10847 |
| 10848 // GL_EXT_multisampled_render_to_texture | 10848 // GL_EXT_multisampled_render_to_texture |
| 10849 struct RenderbufferStorageMultisampleEXT { | 10849 struct RenderbufferStorageMultisampleEXT { |
| 10850 typedef RenderbufferStorageMultisampleEXT ValueType; | 10850 typedef RenderbufferStorageMultisampleEXT ValueType; |
| 10851 static const CommandId kCmdId = kRenderbufferStorageMultisampleEXT; | 10851 static const CommandId kCmdId = kRenderbufferStorageMultisampleEXT; |
| 10852 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10852 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10853 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 10853 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 10854 | 10854 |
| 10855 static uint32_t ComputeSize() { | 10855 static uint32_t ComputeSize() { |
| 10856 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10856 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10857 } | 10857 } |
| 10858 | 10858 |
| 10859 void SetHeader() { header.SetCmd<ValueType>(); } | 10859 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10860 | 10860 |
| 10861 void Init(GLenum _target, | 10861 void Init(GLenum _target, |
| 10862 GLsizei _samples, | 10862 GLsizei _samples, |
| 10863 GLenum _internalformat, | 10863 GLenum _internalformat, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10905 static_assert(offsetof(RenderbufferStorageMultisampleEXT, width) == 16, | 10905 static_assert(offsetof(RenderbufferStorageMultisampleEXT, width) == 16, |
| 10906 "offset of RenderbufferStorageMultisampleEXT width should be 16"); | 10906 "offset of RenderbufferStorageMultisampleEXT width should be 16"); |
| 10907 static_assert( | 10907 static_assert( |
| 10908 offsetof(RenderbufferStorageMultisampleEXT, height) == 20, | 10908 offsetof(RenderbufferStorageMultisampleEXT, height) == 20, |
| 10909 "offset of RenderbufferStorageMultisampleEXT height should be 20"); | 10909 "offset of RenderbufferStorageMultisampleEXT height should be 20"); |
| 10910 | 10910 |
| 10911 struct FramebufferTexture2DMultisampleEXT { | 10911 struct FramebufferTexture2DMultisampleEXT { |
| 10912 typedef FramebufferTexture2DMultisampleEXT ValueType; | 10912 typedef FramebufferTexture2DMultisampleEXT ValueType; |
| 10913 static const CommandId kCmdId = kFramebufferTexture2DMultisampleEXT; | 10913 static const CommandId kCmdId = kFramebufferTexture2DMultisampleEXT; |
| 10914 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10914 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10915 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 10915 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 10916 | 10916 |
| 10917 static uint32_t ComputeSize() { | 10917 static uint32_t ComputeSize() { |
| 10918 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10918 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10919 } | 10919 } |
| 10920 | 10920 |
| 10921 void SetHeader() { header.SetCmd<ValueType>(); } | 10921 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10922 | 10922 |
| 10923 void Init(GLenum _target, | 10923 void Init(GLenum _target, |
| 10924 GLenum _attachment, | 10924 GLenum _attachment, |
| 10925 GLenum _textarget, | 10925 GLenum _textarget, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10977 offsetof(FramebufferTexture2DMultisampleEXT, level) == 20, | 10977 offsetof(FramebufferTexture2DMultisampleEXT, level) == 20, |
| 10978 "offset of FramebufferTexture2DMultisampleEXT level should be 20"); | 10978 "offset of FramebufferTexture2DMultisampleEXT level should be 20"); |
| 10979 static_assert( | 10979 static_assert( |
| 10980 offsetof(FramebufferTexture2DMultisampleEXT, samples) == 24, | 10980 offsetof(FramebufferTexture2DMultisampleEXT, samples) == 24, |
| 10981 "offset of FramebufferTexture2DMultisampleEXT samples should be 24"); | 10981 "offset of FramebufferTexture2DMultisampleEXT samples should be 24"); |
| 10982 | 10982 |
| 10983 struct TexStorage2DEXT { | 10983 struct TexStorage2DEXT { |
| 10984 typedef TexStorage2DEXT ValueType; | 10984 typedef TexStorage2DEXT ValueType; |
| 10985 static const CommandId kCmdId = kTexStorage2DEXT; | 10985 static const CommandId kCmdId = kTexStorage2DEXT; |
| 10986 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10986 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10987 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 10987 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 10988 | 10988 |
| 10989 static uint32_t ComputeSize() { | 10989 static uint32_t ComputeSize() { |
| 10990 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10990 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10991 } | 10991 } |
| 10992 | 10992 |
| 10993 void SetHeader() { header.SetCmd<ValueType>(); } | 10993 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10994 | 10994 |
| 10995 void Init(GLenum _target, | 10995 void Init(GLenum _target, |
| 10996 GLsizei _levels, | 10996 GLsizei _levels, |
| 10997 GLenum _internalFormat, | 10997 GLenum _internalFormat, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11036 "offset of TexStorage2DEXT internalFormat should be 12"); | 11036 "offset of TexStorage2DEXT internalFormat should be 12"); |
| 11037 static_assert(offsetof(TexStorage2DEXT, width) == 16, | 11037 static_assert(offsetof(TexStorage2DEXT, width) == 16, |
| 11038 "offset of TexStorage2DEXT width should be 16"); | 11038 "offset of TexStorage2DEXT width should be 16"); |
| 11039 static_assert(offsetof(TexStorage2DEXT, height) == 20, | 11039 static_assert(offsetof(TexStorage2DEXT, height) == 20, |
| 11040 "offset of TexStorage2DEXT height should be 20"); | 11040 "offset of TexStorage2DEXT height should be 20"); |
| 11041 | 11041 |
| 11042 struct GenQueriesEXTImmediate { | 11042 struct GenQueriesEXTImmediate { |
| 11043 typedef GenQueriesEXTImmediate ValueType; | 11043 typedef GenQueriesEXTImmediate ValueType; |
| 11044 static const CommandId kCmdId = kGenQueriesEXTImmediate; | 11044 static const CommandId kCmdId = kGenQueriesEXTImmediate; |
| 11045 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 11045 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 11046 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11046 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11047 | 11047 |
| 11048 static uint32_t ComputeDataSize(GLsizei n) { | 11048 static uint32_t ComputeDataSize(GLsizei n) { |
| 11049 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 11049 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 11050 } | 11050 } |
| 11051 | 11051 |
| 11052 static uint32_t ComputeSize(GLsizei n) { | 11052 static uint32_t ComputeSize(GLsizei n) { |
| 11053 return static_cast<uint32_t>(sizeof(ValueType) + | 11053 return static_cast<uint32_t>(sizeof(ValueType) + |
| 11054 ComputeDataSize(n)); // NOLINT | 11054 ComputeDataSize(n)); // NOLINT |
| 11055 } | 11055 } |
| 11056 | 11056 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 11078 "size of GenQueriesEXTImmediate should be 8"); | 11078 "size of GenQueriesEXTImmediate should be 8"); |
| 11079 static_assert(offsetof(GenQueriesEXTImmediate, header) == 0, | 11079 static_assert(offsetof(GenQueriesEXTImmediate, header) == 0, |
| 11080 "offset of GenQueriesEXTImmediate header should be 0"); | 11080 "offset of GenQueriesEXTImmediate header should be 0"); |
| 11081 static_assert(offsetof(GenQueriesEXTImmediate, n) == 4, | 11081 static_assert(offsetof(GenQueriesEXTImmediate, n) == 4, |
| 11082 "offset of GenQueriesEXTImmediate n should be 4"); | 11082 "offset of GenQueriesEXTImmediate n should be 4"); |
| 11083 | 11083 |
| 11084 struct DeleteQueriesEXTImmediate { | 11084 struct DeleteQueriesEXTImmediate { |
| 11085 typedef DeleteQueriesEXTImmediate ValueType; | 11085 typedef DeleteQueriesEXTImmediate ValueType; |
| 11086 static const CommandId kCmdId = kDeleteQueriesEXTImmediate; | 11086 static const CommandId kCmdId = kDeleteQueriesEXTImmediate; |
| 11087 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 11087 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 11088 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11088 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11089 | 11089 |
| 11090 static uint32_t ComputeDataSize(GLsizei n) { | 11090 static uint32_t ComputeDataSize(GLsizei n) { |
| 11091 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 11091 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 11092 } | 11092 } |
| 11093 | 11093 |
| 11094 static uint32_t ComputeSize(GLsizei n) { | 11094 static uint32_t ComputeSize(GLsizei n) { |
| 11095 return static_cast<uint32_t>(sizeof(ValueType) + | 11095 return static_cast<uint32_t>(sizeof(ValueType) + |
| 11096 ComputeDataSize(n)); // NOLINT | 11096 ComputeDataSize(n)); // NOLINT |
| 11097 } | 11097 } |
| 11098 | 11098 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 11120 "size of DeleteQueriesEXTImmediate should be 8"); | 11120 "size of DeleteQueriesEXTImmediate should be 8"); |
| 11121 static_assert(offsetof(DeleteQueriesEXTImmediate, header) == 0, | 11121 static_assert(offsetof(DeleteQueriesEXTImmediate, header) == 0, |
| 11122 "offset of DeleteQueriesEXTImmediate header should be 0"); | 11122 "offset of DeleteQueriesEXTImmediate header should be 0"); |
| 11123 static_assert(offsetof(DeleteQueriesEXTImmediate, n) == 4, | 11123 static_assert(offsetof(DeleteQueriesEXTImmediate, n) == 4, |
| 11124 "offset of DeleteQueriesEXTImmediate n should be 4"); | 11124 "offset of DeleteQueriesEXTImmediate n should be 4"); |
| 11125 | 11125 |
| 11126 struct QueryCounterEXT { | 11126 struct QueryCounterEXT { |
| 11127 typedef QueryCounterEXT ValueType; | 11127 typedef QueryCounterEXT ValueType; |
| 11128 static const CommandId kCmdId = kQueryCounterEXT; | 11128 static const CommandId kCmdId = kQueryCounterEXT; |
| 11129 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11129 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11130 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11130 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11131 | 11131 |
| 11132 static uint32_t ComputeSize() { | 11132 static uint32_t ComputeSize() { |
| 11133 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11133 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11134 } | 11134 } |
| 11135 | 11135 |
| 11136 void SetHeader() { header.SetCmd<ValueType>(); } | 11136 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11137 | 11137 |
| 11138 void Init(GLuint _id, | 11138 void Init(GLuint _id, |
| 11139 GLenum _target, | 11139 GLenum _target, |
| 11140 uint32_t _sync_data_shm_id, | 11140 uint32_t _sync_data_shm_id, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11179 "offset of QueryCounterEXT sync_data_shm_id should be 12"); | 11179 "offset of QueryCounterEXT sync_data_shm_id should be 12"); |
| 11180 static_assert(offsetof(QueryCounterEXT, sync_data_shm_offset) == 16, | 11180 static_assert(offsetof(QueryCounterEXT, sync_data_shm_offset) == 16, |
| 11181 "offset of QueryCounterEXT sync_data_shm_offset should be 16"); | 11181 "offset of QueryCounterEXT sync_data_shm_offset should be 16"); |
| 11182 static_assert(offsetof(QueryCounterEXT, submit_count) == 20, | 11182 static_assert(offsetof(QueryCounterEXT, submit_count) == 20, |
| 11183 "offset of QueryCounterEXT submit_count should be 20"); | 11183 "offset of QueryCounterEXT submit_count should be 20"); |
| 11184 | 11184 |
| 11185 struct BeginQueryEXT { | 11185 struct BeginQueryEXT { |
| 11186 typedef BeginQueryEXT ValueType; | 11186 typedef BeginQueryEXT ValueType; |
| 11187 static const CommandId kCmdId = kBeginQueryEXT; | 11187 static const CommandId kCmdId = kBeginQueryEXT; |
| 11188 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11188 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11189 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11189 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11190 | 11190 |
| 11191 static uint32_t ComputeSize() { | 11191 static uint32_t ComputeSize() { |
| 11192 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11192 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11193 } | 11193 } |
| 11194 | 11194 |
| 11195 void SetHeader() { header.SetCmd<ValueType>(); } | 11195 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11196 | 11196 |
| 11197 void Init(GLenum _target, | 11197 void Init(GLenum _target, |
| 11198 GLuint _id, | 11198 GLuint _id, |
| 11199 uint32_t _sync_data_shm_id, | 11199 uint32_t _sync_data_shm_id, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11232 "offset of BeginQueryEXT id should be 8"); | 11232 "offset of BeginQueryEXT id should be 8"); |
| 11233 static_assert(offsetof(BeginQueryEXT, sync_data_shm_id) == 12, | 11233 static_assert(offsetof(BeginQueryEXT, sync_data_shm_id) == 12, |
| 11234 "offset of BeginQueryEXT sync_data_shm_id should be 12"); | 11234 "offset of BeginQueryEXT sync_data_shm_id should be 12"); |
| 11235 static_assert(offsetof(BeginQueryEXT, sync_data_shm_offset) == 16, | 11235 static_assert(offsetof(BeginQueryEXT, sync_data_shm_offset) == 16, |
| 11236 "offset of BeginQueryEXT sync_data_shm_offset should be 16"); | 11236 "offset of BeginQueryEXT sync_data_shm_offset should be 16"); |
| 11237 | 11237 |
| 11238 struct BeginTransformFeedback { | 11238 struct BeginTransformFeedback { |
| 11239 typedef BeginTransformFeedback ValueType; | 11239 typedef BeginTransformFeedback ValueType; |
| 11240 static const CommandId kCmdId = kBeginTransformFeedback; | 11240 static const CommandId kCmdId = kBeginTransformFeedback; |
| 11241 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11241 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11242 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11242 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11243 | 11243 |
| 11244 static uint32_t ComputeSize() { | 11244 static uint32_t ComputeSize() { |
| 11245 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11245 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11246 } | 11246 } |
| 11247 | 11247 |
| 11248 void SetHeader() { header.SetCmd<ValueType>(); } | 11248 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11249 | 11249 |
| 11250 void Init(GLenum _primitivemode) { | 11250 void Init(GLenum _primitivemode) { |
| 11251 SetHeader(); | 11251 SetHeader(); |
| 11252 primitivemode = _primitivemode; | 11252 primitivemode = _primitivemode; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 11265 "size of BeginTransformFeedback should be 8"); | 11265 "size of BeginTransformFeedback should be 8"); |
| 11266 static_assert(offsetof(BeginTransformFeedback, header) == 0, | 11266 static_assert(offsetof(BeginTransformFeedback, header) == 0, |
| 11267 "offset of BeginTransformFeedback header should be 0"); | 11267 "offset of BeginTransformFeedback header should be 0"); |
| 11268 static_assert(offsetof(BeginTransformFeedback, primitivemode) == 4, | 11268 static_assert(offsetof(BeginTransformFeedback, primitivemode) == 4, |
| 11269 "offset of BeginTransformFeedback primitivemode should be 4"); | 11269 "offset of BeginTransformFeedback primitivemode should be 4"); |
| 11270 | 11270 |
| 11271 struct EndQueryEXT { | 11271 struct EndQueryEXT { |
| 11272 typedef EndQueryEXT ValueType; | 11272 typedef EndQueryEXT ValueType; |
| 11273 static const CommandId kCmdId = kEndQueryEXT; | 11273 static const CommandId kCmdId = kEndQueryEXT; |
| 11274 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11274 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11275 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11275 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11276 | 11276 |
| 11277 static uint32_t ComputeSize() { | 11277 static uint32_t ComputeSize() { |
| 11278 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11278 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11279 } | 11279 } |
| 11280 | 11280 |
| 11281 void SetHeader() { header.SetCmd<ValueType>(); } | 11281 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11282 | 11282 |
| 11283 void Init(GLenum _target, GLuint _submit_count) { | 11283 void Init(GLenum _target, GLuint _submit_count) { |
| 11284 SetHeader(); | 11284 SetHeader(); |
| 11285 target = _target; | 11285 target = _target; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 11301 "offset of EndQueryEXT header should be 0"); | 11301 "offset of EndQueryEXT header should be 0"); |
| 11302 static_assert(offsetof(EndQueryEXT, target) == 4, | 11302 static_assert(offsetof(EndQueryEXT, target) == 4, |
| 11303 "offset of EndQueryEXT target should be 4"); | 11303 "offset of EndQueryEXT target should be 4"); |
| 11304 static_assert(offsetof(EndQueryEXT, submit_count) == 8, | 11304 static_assert(offsetof(EndQueryEXT, submit_count) == 8, |
| 11305 "offset of EndQueryEXT submit_count should be 8"); | 11305 "offset of EndQueryEXT submit_count should be 8"); |
| 11306 | 11306 |
| 11307 struct EndTransformFeedback { | 11307 struct EndTransformFeedback { |
| 11308 typedef EndTransformFeedback ValueType; | 11308 typedef EndTransformFeedback ValueType; |
| 11309 static const CommandId kCmdId = kEndTransformFeedback; | 11309 static const CommandId kCmdId = kEndTransformFeedback; |
| 11310 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11310 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11311 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11311 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11312 | 11312 |
| 11313 static uint32_t ComputeSize() { | 11313 static uint32_t ComputeSize() { |
| 11314 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11314 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11315 } | 11315 } |
| 11316 | 11316 |
| 11317 void SetHeader() { header.SetCmd<ValueType>(); } | 11317 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11318 | 11318 |
| 11319 void Init() { SetHeader(); } | 11319 void Init() { SetHeader(); } |
| 11320 | 11320 |
| 11321 void* Set(void* cmd) { | 11321 void* Set(void* cmd) { |
| 11322 static_cast<ValueType*>(cmd)->Init(); | 11322 static_cast<ValueType*>(cmd)->Init(); |
| 11323 return NextCmdAddress<ValueType>(cmd); | 11323 return NextCmdAddress<ValueType>(cmd); |
| 11324 } | 11324 } |
| 11325 | 11325 |
| 11326 gpu::CommandHeader header; | 11326 gpu::CommandHeader header; |
| 11327 }; | 11327 }; |
| 11328 | 11328 |
| 11329 static_assert(sizeof(EndTransformFeedback) == 4, | 11329 static_assert(sizeof(EndTransformFeedback) == 4, |
| 11330 "size of EndTransformFeedback should be 4"); | 11330 "size of EndTransformFeedback should be 4"); |
| 11331 static_assert(offsetof(EndTransformFeedback, header) == 0, | 11331 static_assert(offsetof(EndTransformFeedback, header) == 0, |
| 11332 "offset of EndTransformFeedback header should be 0"); | 11332 "offset of EndTransformFeedback header should be 0"); |
| 11333 | 11333 |
| 11334 struct SetDisjointValueSyncCHROMIUM { | 11334 struct SetDisjointValueSyncCHROMIUM { |
| 11335 typedef SetDisjointValueSyncCHROMIUM ValueType; | 11335 typedef SetDisjointValueSyncCHROMIUM ValueType; |
| 11336 static const CommandId kCmdId = kSetDisjointValueSyncCHROMIUM; | 11336 static const CommandId kCmdId = kSetDisjointValueSyncCHROMIUM; |
| 11337 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11337 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11338 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11338 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11339 | 11339 |
| 11340 static uint32_t ComputeSize() { | 11340 static uint32_t ComputeSize() { |
| 11341 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11341 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11342 } | 11342 } |
| 11343 | 11343 |
| 11344 void SetHeader() { header.SetCmd<ValueType>(); } | 11344 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11345 | 11345 |
| 11346 void Init(uint32_t _sync_data_shm_id, uint32_t _sync_data_shm_offset) { | 11346 void Init(uint32_t _sync_data_shm_id, uint32_t _sync_data_shm_offset) { |
| 11347 SetHeader(); | 11347 SetHeader(); |
| 11348 sync_data_shm_id = _sync_data_shm_id; | 11348 sync_data_shm_id = _sync_data_shm_id; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 11370 offsetof(SetDisjointValueSyncCHROMIUM, sync_data_shm_id) == 4, | 11370 offsetof(SetDisjointValueSyncCHROMIUM, sync_data_shm_id) == 4, |
| 11371 "offset of SetDisjointValueSyncCHROMIUM sync_data_shm_id should be 4"); | 11371 "offset of SetDisjointValueSyncCHROMIUM sync_data_shm_id should be 4"); |
| 11372 static_assert( | 11372 static_assert( |
| 11373 offsetof(SetDisjointValueSyncCHROMIUM, sync_data_shm_offset) == 8, | 11373 offsetof(SetDisjointValueSyncCHROMIUM, sync_data_shm_offset) == 8, |
| 11374 "offset of SetDisjointValueSyncCHROMIUM sync_data_shm_offset should be 8"); | 11374 "offset of SetDisjointValueSyncCHROMIUM sync_data_shm_offset should be 8"); |
| 11375 | 11375 |
| 11376 struct InsertEventMarkerEXT { | 11376 struct InsertEventMarkerEXT { |
| 11377 typedef InsertEventMarkerEXT ValueType; | 11377 typedef InsertEventMarkerEXT ValueType; |
| 11378 static const CommandId kCmdId = kInsertEventMarkerEXT; | 11378 static const CommandId kCmdId = kInsertEventMarkerEXT; |
| 11379 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11379 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11380 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11380 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11381 | 11381 |
| 11382 static uint32_t ComputeSize() { | 11382 static uint32_t ComputeSize() { |
| 11383 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11383 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11384 } | 11384 } |
| 11385 | 11385 |
| 11386 void SetHeader() { header.SetCmd<ValueType>(); } | 11386 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11387 | 11387 |
| 11388 void Init(GLuint _bucket_id) { | 11388 void Init(GLuint _bucket_id) { |
| 11389 SetHeader(); | 11389 SetHeader(); |
| 11390 bucket_id = _bucket_id; | 11390 bucket_id = _bucket_id; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 11403 "size of InsertEventMarkerEXT should be 8"); | 11403 "size of InsertEventMarkerEXT should be 8"); |
| 11404 static_assert(offsetof(InsertEventMarkerEXT, header) == 0, | 11404 static_assert(offsetof(InsertEventMarkerEXT, header) == 0, |
| 11405 "offset of InsertEventMarkerEXT header should be 0"); | 11405 "offset of InsertEventMarkerEXT header should be 0"); |
| 11406 static_assert(offsetof(InsertEventMarkerEXT, bucket_id) == 4, | 11406 static_assert(offsetof(InsertEventMarkerEXT, bucket_id) == 4, |
| 11407 "offset of InsertEventMarkerEXT bucket_id should be 4"); | 11407 "offset of InsertEventMarkerEXT bucket_id should be 4"); |
| 11408 | 11408 |
| 11409 struct PushGroupMarkerEXT { | 11409 struct PushGroupMarkerEXT { |
| 11410 typedef PushGroupMarkerEXT ValueType; | 11410 typedef PushGroupMarkerEXT ValueType; |
| 11411 static const CommandId kCmdId = kPushGroupMarkerEXT; | 11411 static const CommandId kCmdId = kPushGroupMarkerEXT; |
| 11412 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11412 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11413 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11413 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11414 | 11414 |
| 11415 static uint32_t ComputeSize() { | 11415 static uint32_t ComputeSize() { |
| 11416 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11416 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11417 } | 11417 } |
| 11418 | 11418 |
| 11419 void SetHeader() { header.SetCmd<ValueType>(); } | 11419 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11420 | 11420 |
| 11421 void Init(GLuint _bucket_id) { | 11421 void Init(GLuint _bucket_id) { |
| 11422 SetHeader(); | 11422 SetHeader(); |
| 11423 bucket_id = _bucket_id; | 11423 bucket_id = _bucket_id; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 11436 "size of PushGroupMarkerEXT should be 8"); | 11436 "size of PushGroupMarkerEXT should be 8"); |
| 11437 static_assert(offsetof(PushGroupMarkerEXT, header) == 0, | 11437 static_assert(offsetof(PushGroupMarkerEXT, header) == 0, |
| 11438 "offset of PushGroupMarkerEXT header should be 0"); | 11438 "offset of PushGroupMarkerEXT header should be 0"); |
| 11439 static_assert(offsetof(PushGroupMarkerEXT, bucket_id) == 4, | 11439 static_assert(offsetof(PushGroupMarkerEXT, bucket_id) == 4, |
| 11440 "offset of PushGroupMarkerEXT bucket_id should be 4"); | 11440 "offset of PushGroupMarkerEXT bucket_id should be 4"); |
| 11441 | 11441 |
| 11442 struct PopGroupMarkerEXT { | 11442 struct PopGroupMarkerEXT { |
| 11443 typedef PopGroupMarkerEXT ValueType; | 11443 typedef PopGroupMarkerEXT ValueType; |
| 11444 static const CommandId kCmdId = kPopGroupMarkerEXT; | 11444 static const CommandId kCmdId = kPopGroupMarkerEXT; |
| 11445 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11445 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11446 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11446 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11447 | 11447 |
| 11448 static uint32_t ComputeSize() { | 11448 static uint32_t ComputeSize() { |
| 11449 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11449 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11450 } | 11450 } |
| 11451 | 11451 |
| 11452 void SetHeader() { header.SetCmd<ValueType>(); } | 11452 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11453 | 11453 |
| 11454 void Init() { SetHeader(); } | 11454 void Init() { SetHeader(); } |
| 11455 | 11455 |
| 11456 void* Set(void* cmd) { | 11456 void* Set(void* cmd) { |
| 11457 static_cast<ValueType*>(cmd)->Init(); | 11457 static_cast<ValueType*>(cmd)->Init(); |
| 11458 return NextCmdAddress<ValueType>(cmd); | 11458 return NextCmdAddress<ValueType>(cmd); |
| 11459 } | 11459 } |
| 11460 | 11460 |
| 11461 gpu::CommandHeader header; | 11461 gpu::CommandHeader header; |
| 11462 }; | 11462 }; |
| 11463 | 11463 |
| 11464 static_assert(sizeof(PopGroupMarkerEXT) == 4, | 11464 static_assert(sizeof(PopGroupMarkerEXT) == 4, |
| 11465 "size of PopGroupMarkerEXT should be 4"); | 11465 "size of PopGroupMarkerEXT should be 4"); |
| 11466 static_assert(offsetof(PopGroupMarkerEXT, header) == 0, | 11466 static_assert(offsetof(PopGroupMarkerEXT, header) == 0, |
| 11467 "offset of PopGroupMarkerEXT header should be 0"); | 11467 "offset of PopGroupMarkerEXT header should be 0"); |
| 11468 | 11468 |
| 11469 struct GenVertexArraysOESImmediate { | 11469 struct GenVertexArraysOESImmediate { |
| 11470 typedef GenVertexArraysOESImmediate ValueType; | 11470 typedef GenVertexArraysOESImmediate ValueType; |
| 11471 static const CommandId kCmdId = kGenVertexArraysOESImmediate; | 11471 static const CommandId kCmdId = kGenVertexArraysOESImmediate; |
| 11472 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 11472 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 11473 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11473 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11474 | 11474 |
| 11475 static uint32_t ComputeDataSize(GLsizei n) { | 11475 static uint32_t ComputeDataSize(GLsizei n) { |
| 11476 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 11476 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 11477 } | 11477 } |
| 11478 | 11478 |
| 11479 static uint32_t ComputeSize(GLsizei n) { | 11479 static uint32_t ComputeSize(GLsizei n) { |
| 11480 return static_cast<uint32_t>(sizeof(ValueType) + | 11480 return static_cast<uint32_t>(sizeof(ValueType) + |
| 11481 ComputeDataSize(n)); // NOLINT | 11481 ComputeDataSize(n)); // NOLINT |
| 11482 } | 11482 } |
| 11483 | 11483 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 11505 "size of GenVertexArraysOESImmediate should be 8"); | 11505 "size of GenVertexArraysOESImmediate should be 8"); |
| 11506 static_assert(offsetof(GenVertexArraysOESImmediate, header) == 0, | 11506 static_assert(offsetof(GenVertexArraysOESImmediate, header) == 0, |
| 11507 "offset of GenVertexArraysOESImmediate header should be 0"); | 11507 "offset of GenVertexArraysOESImmediate header should be 0"); |
| 11508 static_assert(offsetof(GenVertexArraysOESImmediate, n) == 4, | 11508 static_assert(offsetof(GenVertexArraysOESImmediate, n) == 4, |
| 11509 "offset of GenVertexArraysOESImmediate n should be 4"); | 11509 "offset of GenVertexArraysOESImmediate n should be 4"); |
| 11510 | 11510 |
| 11511 struct DeleteVertexArraysOESImmediate { | 11511 struct DeleteVertexArraysOESImmediate { |
| 11512 typedef DeleteVertexArraysOESImmediate ValueType; | 11512 typedef DeleteVertexArraysOESImmediate ValueType; |
| 11513 static const CommandId kCmdId = kDeleteVertexArraysOESImmediate; | 11513 static const CommandId kCmdId = kDeleteVertexArraysOESImmediate; |
| 11514 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 11514 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 11515 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11515 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11516 | 11516 |
| 11517 static uint32_t ComputeDataSize(GLsizei n) { | 11517 static uint32_t ComputeDataSize(GLsizei n) { |
| 11518 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 11518 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 11519 } | 11519 } |
| 11520 | 11520 |
| 11521 static uint32_t ComputeSize(GLsizei n) { | 11521 static uint32_t ComputeSize(GLsizei n) { |
| 11522 return static_cast<uint32_t>(sizeof(ValueType) + | 11522 return static_cast<uint32_t>(sizeof(ValueType) + |
| 11523 ComputeDataSize(n)); // NOLINT | 11523 ComputeDataSize(n)); // NOLINT |
| 11524 } | 11524 } |
| 11525 | 11525 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 11547 "size of DeleteVertexArraysOESImmediate should be 8"); | 11547 "size of DeleteVertexArraysOESImmediate should be 8"); |
| 11548 static_assert(offsetof(DeleteVertexArraysOESImmediate, header) == 0, | 11548 static_assert(offsetof(DeleteVertexArraysOESImmediate, header) == 0, |
| 11549 "offset of DeleteVertexArraysOESImmediate header should be 0"); | 11549 "offset of DeleteVertexArraysOESImmediate header should be 0"); |
| 11550 static_assert(offsetof(DeleteVertexArraysOESImmediate, n) == 4, | 11550 static_assert(offsetof(DeleteVertexArraysOESImmediate, n) == 4, |
| 11551 "offset of DeleteVertexArraysOESImmediate n should be 4"); | 11551 "offset of DeleteVertexArraysOESImmediate n should be 4"); |
| 11552 | 11552 |
| 11553 struct IsVertexArrayOES { | 11553 struct IsVertexArrayOES { |
| 11554 typedef IsVertexArrayOES ValueType; | 11554 typedef IsVertexArrayOES ValueType; |
| 11555 static const CommandId kCmdId = kIsVertexArrayOES; | 11555 static const CommandId kCmdId = kIsVertexArrayOES; |
| 11556 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11556 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11557 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11557 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11558 | 11558 |
| 11559 typedef uint32_t Result; | 11559 typedef uint32_t Result; |
| 11560 | 11560 |
| 11561 static uint32_t ComputeSize() { | 11561 static uint32_t ComputeSize() { |
| 11562 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11562 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11563 } | 11563 } |
| 11564 | 11564 |
| 11565 void SetHeader() { header.SetCmd<ValueType>(); } | 11565 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11566 | 11566 |
| 11567 void Init(GLuint _array, | 11567 void Init(GLuint _array, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 11596 "offset of IsVertexArrayOES array should be 4"); | 11596 "offset of IsVertexArrayOES array should be 4"); |
| 11597 static_assert(offsetof(IsVertexArrayOES, result_shm_id) == 8, | 11597 static_assert(offsetof(IsVertexArrayOES, result_shm_id) == 8, |
| 11598 "offset of IsVertexArrayOES result_shm_id should be 8"); | 11598 "offset of IsVertexArrayOES result_shm_id should be 8"); |
| 11599 static_assert(offsetof(IsVertexArrayOES, result_shm_offset) == 12, | 11599 static_assert(offsetof(IsVertexArrayOES, result_shm_offset) == 12, |
| 11600 "offset of IsVertexArrayOES result_shm_offset should be 12"); | 11600 "offset of IsVertexArrayOES result_shm_offset should be 12"); |
| 11601 | 11601 |
| 11602 struct BindVertexArrayOES { | 11602 struct BindVertexArrayOES { |
| 11603 typedef BindVertexArrayOES ValueType; | 11603 typedef BindVertexArrayOES ValueType; |
| 11604 static const CommandId kCmdId = kBindVertexArrayOES; | 11604 static const CommandId kCmdId = kBindVertexArrayOES; |
| 11605 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11605 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11606 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11606 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11607 | 11607 |
| 11608 static uint32_t ComputeSize() { | 11608 static uint32_t ComputeSize() { |
| 11609 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11609 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11610 } | 11610 } |
| 11611 | 11611 |
| 11612 void SetHeader() { header.SetCmd<ValueType>(); } | 11612 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11613 | 11613 |
| 11614 void Init(GLuint _array) { | 11614 void Init(GLuint _array) { |
| 11615 SetHeader(); | 11615 SetHeader(); |
| 11616 array = _array; | 11616 array = _array; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 11629 "size of BindVertexArrayOES should be 8"); | 11629 "size of BindVertexArrayOES should be 8"); |
| 11630 static_assert(offsetof(BindVertexArrayOES, header) == 0, | 11630 static_assert(offsetof(BindVertexArrayOES, header) == 0, |
| 11631 "offset of BindVertexArrayOES header should be 0"); | 11631 "offset of BindVertexArrayOES header should be 0"); |
| 11632 static_assert(offsetof(BindVertexArrayOES, array) == 4, | 11632 static_assert(offsetof(BindVertexArrayOES, array) == 4, |
| 11633 "offset of BindVertexArrayOES array should be 4"); | 11633 "offset of BindVertexArrayOES array should be 4"); |
| 11634 | 11634 |
| 11635 struct SwapBuffers { | 11635 struct SwapBuffers { |
| 11636 typedef SwapBuffers ValueType; | 11636 typedef SwapBuffers ValueType; |
| 11637 static const CommandId kCmdId = kSwapBuffers; | 11637 static const CommandId kCmdId = kSwapBuffers; |
| 11638 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11638 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11639 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 11639 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 11640 | 11640 |
| 11641 static uint32_t ComputeSize() { | 11641 static uint32_t ComputeSize() { |
| 11642 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11642 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11643 } | 11643 } |
| 11644 | 11644 |
| 11645 void SetHeader() { header.SetCmd<ValueType>(); } | 11645 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11646 | 11646 |
| 11647 void Init() { SetHeader(); } | 11647 void Init() { SetHeader(); } |
| 11648 | 11648 |
| 11649 void* Set(void* cmd) { | 11649 void* Set(void* cmd) { |
| 11650 static_cast<ValueType*>(cmd)->Init(); | 11650 static_cast<ValueType*>(cmd)->Init(); |
| 11651 return NextCmdAddress<ValueType>(cmd); | 11651 return NextCmdAddress<ValueType>(cmd); |
| 11652 } | 11652 } |
| 11653 | 11653 |
| 11654 gpu::CommandHeader header; | 11654 gpu::CommandHeader header; |
| 11655 }; | 11655 }; |
| 11656 | 11656 |
| 11657 static_assert(sizeof(SwapBuffers) == 4, "size of SwapBuffers should be 4"); | 11657 static_assert(sizeof(SwapBuffers) == 4, "size of SwapBuffers should be 4"); |
| 11658 static_assert(offsetof(SwapBuffers, header) == 0, | 11658 static_assert(offsetof(SwapBuffers, header) == 0, |
| 11659 "offset of SwapBuffers header should be 0"); | 11659 "offset of SwapBuffers header should be 0"); |
| 11660 | 11660 |
| 11661 struct GetMaxValueInBufferCHROMIUM { | 11661 struct GetMaxValueInBufferCHROMIUM { |
| 11662 typedef GetMaxValueInBufferCHROMIUM ValueType; | 11662 typedef GetMaxValueInBufferCHROMIUM ValueType; |
| 11663 static const CommandId kCmdId = kGetMaxValueInBufferCHROMIUM; | 11663 static const CommandId kCmdId = kGetMaxValueInBufferCHROMIUM; |
| 11664 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11664 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11665 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11665 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11666 | 11666 |
| 11667 typedef GLuint Result; | 11667 typedef GLuint Result; |
| 11668 | 11668 |
| 11669 static uint32_t ComputeSize() { | 11669 static uint32_t ComputeSize() { |
| 11670 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11670 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11671 } | 11671 } |
| 11672 | 11672 |
| 11673 void SetHeader() { header.SetCmd<ValueType>(); } | 11673 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11674 | 11674 |
| 11675 void Init(GLuint _buffer_id, | 11675 void Init(GLuint _buffer_id, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11724 offsetof(GetMaxValueInBufferCHROMIUM, result_shm_id) == 20, | 11724 offsetof(GetMaxValueInBufferCHROMIUM, result_shm_id) == 20, |
| 11725 "offset of GetMaxValueInBufferCHROMIUM result_shm_id should be 20"); | 11725 "offset of GetMaxValueInBufferCHROMIUM result_shm_id should be 20"); |
| 11726 static_assert( | 11726 static_assert( |
| 11727 offsetof(GetMaxValueInBufferCHROMIUM, result_shm_offset) == 24, | 11727 offsetof(GetMaxValueInBufferCHROMIUM, result_shm_offset) == 24, |
| 11728 "offset of GetMaxValueInBufferCHROMIUM result_shm_offset should be 24"); | 11728 "offset of GetMaxValueInBufferCHROMIUM result_shm_offset should be 24"); |
| 11729 | 11729 |
| 11730 struct EnableFeatureCHROMIUM { | 11730 struct EnableFeatureCHROMIUM { |
| 11731 typedef EnableFeatureCHROMIUM ValueType; | 11731 typedef EnableFeatureCHROMIUM ValueType; |
| 11732 static const CommandId kCmdId = kEnableFeatureCHROMIUM; | 11732 static const CommandId kCmdId = kEnableFeatureCHROMIUM; |
| 11733 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11733 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11734 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11734 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11735 | 11735 |
| 11736 typedef GLint Result; | 11736 typedef GLint Result; |
| 11737 | 11737 |
| 11738 static uint32_t ComputeSize() { | 11738 static uint32_t ComputeSize() { |
| 11739 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11739 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11740 } | 11740 } |
| 11741 | 11741 |
| 11742 void SetHeader() { header.SetCmd<ValueType>(); } | 11742 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11743 | 11743 |
| 11744 void Init(GLuint _bucket_id, | 11744 void Init(GLuint _bucket_id, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 11773 "offset of EnableFeatureCHROMIUM bucket_id should be 4"); | 11773 "offset of EnableFeatureCHROMIUM bucket_id should be 4"); |
| 11774 static_assert(offsetof(EnableFeatureCHROMIUM, result_shm_id) == 8, | 11774 static_assert(offsetof(EnableFeatureCHROMIUM, result_shm_id) == 8, |
| 11775 "offset of EnableFeatureCHROMIUM result_shm_id should be 8"); | 11775 "offset of EnableFeatureCHROMIUM result_shm_id should be 8"); |
| 11776 static_assert(offsetof(EnableFeatureCHROMIUM, result_shm_offset) == 12, | 11776 static_assert(offsetof(EnableFeatureCHROMIUM, result_shm_offset) == 12, |
| 11777 "offset of EnableFeatureCHROMIUM result_shm_offset should be 12"); | 11777 "offset of EnableFeatureCHROMIUM result_shm_offset should be 12"); |
| 11778 | 11778 |
| 11779 struct MapBufferRange { | 11779 struct MapBufferRange { |
| 11780 typedef MapBufferRange ValueType; | 11780 typedef MapBufferRange ValueType; |
| 11781 static const CommandId kCmdId = kMapBufferRange; | 11781 static const CommandId kCmdId = kMapBufferRange; |
| 11782 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11782 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11783 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 11783 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 11784 | 11784 |
| 11785 typedef uint32_t Result; | 11785 typedef uint32_t Result; |
| 11786 | 11786 |
| 11787 static uint32_t ComputeSize() { | 11787 static uint32_t ComputeSize() { |
| 11788 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11788 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11789 } | 11789 } |
| 11790 | 11790 |
| 11791 void SetHeader() { header.SetCmd<ValueType>(); } | 11791 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11792 | 11792 |
| 11793 void Init(GLenum _target, | 11793 void Init(GLenum _target, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11853 "offset of MapBufferRange data_shm_offset should be 24"); | 11853 "offset of MapBufferRange data_shm_offset should be 24"); |
| 11854 static_assert(offsetof(MapBufferRange, result_shm_id) == 28, | 11854 static_assert(offsetof(MapBufferRange, result_shm_id) == 28, |
| 11855 "offset of MapBufferRange result_shm_id should be 28"); | 11855 "offset of MapBufferRange result_shm_id should be 28"); |
| 11856 static_assert(offsetof(MapBufferRange, result_shm_offset) == 32, | 11856 static_assert(offsetof(MapBufferRange, result_shm_offset) == 32, |
| 11857 "offset of MapBufferRange result_shm_offset should be 32"); | 11857 "offset of MapBufferRange result_shm_offset should be 32"); |
| 11858 | 11858 |
| 11859 struct UnmapBuffer { | 11859 struct UnmapBuffer { |
| 11860 typedef UnmapBuffer ValueType; | 11860 typedef UnmapBuffer ValueType; |
| 11861 static const CommandId kCmdId = kUnmapBuffer; | 11861 static const CommandId kCmdId = kUnmapBuffer; |
| 11862 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11862 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11863 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 11863 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 11864 | 11864 |
| 11865 static uint32_t ComputeSize() { | 11865 static uint32_t ComputeSize() { |
| 11866 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11866 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11867 } | 11867 } |
| 11868 | 11868 |
| 11869 void SetHeader() { header.SetCmd<ValueType>(); } | 11869 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11870 | 11870 |
| 11871 void Init(GLenum _target) { | 11871 void Init(GLenum _target) { |
| 11872 SetHeader(); | 11872 SetHeader(); |
| 11873 target = _target; | 11873 target = _target; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 11885 static_assert(sizeof(UnmapBuffer) == 8, "size of UnmapBuffer should be 8"); | 11885 static_assert(sizeof(UnmapBuffer) == 8, "size of UnmapBuffer should be 8"); |
| 11886 static_assert(offsetof(UnmapBuffer, header) == 0, | 11886 static_assert(offsetof(UnmapBuffer, header) == 0, |
| 11887 "offset of UnmapBuffer header should be 0"); | 11887 "offset of UnmapBuffer header should be 0"); |
| 11888 static_assert(offsetof(UnmapBuffer, target) == 4, | 11888 static_assert(offsetof(UnmapBuffer, target) == 4, |
| 11889 "offset of UnmapBuffer target should be 4"); | 11889 "offset of UnmapBuffer target should be 4"); |
| 11890 | 11890 |
| 11891 struct ResizeCHROMIUM { | 11891 struct ResizeCHROMIUM { |
| 11892 typedef ResizeCHROMIUM ValueType; | 11892 typedef ResizeCHROMIUM ValueType; |
| 11893 static const CommandId kCmdId = kResizeCHROMIUM; | 11893 static const CommandId kCmdId = kResizeCHROMIUM; |
| 11894 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11894 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11895 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 11895 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 11896 | 11896 |
| 11897 static uint32_t ComputeSize() { | 11897 static uint32_t ComputeSize() { |
| 11898 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11898 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11899 } | 11899 } |
| 11900 | 11900 |
| 11901 void SetHeader() { header.SetCmd<ValueType>(); } | 11901 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11902 | 11902 |
| 11903 void Init(GLuint _width, | 11903 void Init(GLuint _width, |
| 11904 GLuint _height, | 11904 GLuint _height, |
| 11905 GLfloat _scale_factor, | 11905 GLfloat _scale_factor, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11937 "offset of ResizeCHROMIUM height should be 8"); | 11937 "offset of ResizeCHROMIUM height should be 8"); |
| 11938 static_assert(offsetof(ResizeCHROMIUM, scale_factor) == 12, | 11938 static_assert(offsetof(ResizeCHROMIUM, scale_factor) == 12, |
| 11939 "offset of ResizeCHROMIUM scale_factor should be 12"); | 11939 "offset of ResizeCHROMIUM scale_factor should be 12"); |
| 11940 static_assert(offsetof(ResizeCHROMIUM, alpha) == 16, | 11940 static_assert(offsetof(ResizeCHROMIUM, alpha) == 16, |
| 11941 "offset of ResizeCHROMIUM alpha should be 16"); | 11941 "offset of ResizeCHROMIUM alpha should be 16"); |
| 11942 | 11942 |
| 11943 struct GetRequestableExtensionsCHROMIUM { | 11943 struct GetRequestableExtensionsCHROMIUM { |
| 11944 typedef GetRequestableExtensionsCHROMIUM ValueType; | 11944 typedef GetRequestableExtensionsCHROMIUM ValueType; |
| 11945 static const CommandId kCmdId = kGetRequestableExtensionsCHROMIUM; | 11945 static const CommandId kCmdId = kGetRequestableExtensionsCHROMIUM; |
| 11946 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11946 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11947 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11947 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11948 | 11948 |
| 11949 static uint32_t ComputeSize() { | 11949 static uint32_t ComputeSize() { |
| 11950 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11950 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11951 } | 11951 } |
| 11952 | 11952 |
| 11953 void SetHeader() { header.SetCmd<ValueType>(); } | 11953 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11954 | 11954 |
| 11955 void Init(uint32_t _bucket_id) { | 11955 void Init(uint32_t _bucket_id) { |
| 11956 SetHeader(); | 11956 SetHeader(); |
| 11957 bucket_id = _bucket_id; | 11957 bucket_id = _bucket_id; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 11971 static_assert(offsetof(GetRequestableExtensionsCHROMIUM, header) == 0, | 11971 static_assert(offsetof(GetRequestableExtensionsCHROMIUM, header) == 0, |
| 11972 "offset of GetRequestableExtensionsCHROMIUM header should be 0"); | 11972 "offset of GetRequestableExtensionsCHROMIUM header should be 0"); |
| 11973 static_assert( | 11973 static_assert( |
| 11974 offsetof(GetRequestableExtensionsCHROMIUM, bucket_id) == 4, | 11974 offsetof(GetRequestableExtensionsCHROMIUM, bucket_id) == 4, |
| 11975 "offset of GetRequestableExtensionsCHROMIUM bucket_id should be 4"); | 11975 "offset of GetRequestableExtensionsCHROMIUM bucket_id should be 4"); |
| 11976 | 11976 |
| 11977 struct RequestExtensionCHROMIUM { | 11977 struct RequestExtensionCHROMIUM { |
| 11978 typedef RequestExtensionCHROMIUM ValueType; | 11978 typedef RequestExtensionCHROMIUM ValueType; |
| 11979 static const CommandId kCmdId = kRequestExtensionCHROMIUM; | 11979 static const CommandId kCmdId = kRequestExtensionCHROMIUM; |
| 11980 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11980 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11981 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11981 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11982 | 11982 |
| 11983 static uint32_t ComputeSize() { | 11983 static uint32_t ComputeSize() { |
| 11984 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11984 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11985 } | 11985 } |
| 11986 | 11986 |
| 11987 void SetHeader() { header.SetCmd<ValueType>(); } | 11987 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11988 | 11988 |
| 11989 void Init(uint32_t _bucket_id) { | 11989 void Init(uint32_t _bucket_id) { |
| 11990 SetHeader(); | 11990 SetHeader(); |
| 11991 bucket_id = _bucket_id; | 11991 bucket_id = _bucket_id; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 12004 "size of RequestExtensionCHROMIUM should be 8"); | 12004 "size of RequestExtensionCHROMIUM should be 8"); |
| 12005 static_assert(offsetof(RequestExtensionCHROMIUM, header) == 0, | 12005 static_assert(offsetof(RequestExtensionCHROMIUM, header) == 0, |
| 12006 "offset of RequestExtensionCHROMIUM header should be 0"); | 12006 "offset of RequestExtensionCHROMIUM header should be 0"); |
| 12007 static_assert(offsetof(RequestExtensionCHROMIUM, bucket_id) == 4, | 12007 static_assert(offsetof(RequestExtensionCHROMIUM, bucket_id) == 4, |
| 12008 "offset of RequestExtensionCHROMIUM bucket_id should be 4"); | 12008 "offset of RequestExtensionCHROMIUM bucket_id should be 4"); |
| 12009 | 12009 |
| 12010 struct GetProgramInfoCHROMIUM { | 12010 struct GetProgramInfoCHROMIUM { |
| 12011 typedef GetProgramInfoCHROMIUM ValueType; | 12011 typedef GetProgramInfoCHROMIUM ValueType; |
| 12012 static const CommandId kCmdId = kGetProgramInfoCHROMIUM; | 12012 static const CommandId kCmdId = kGetProgramInfoCHROMIUM; |
| 12013 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12013 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12014 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12014 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12015 | 12015 |
| 12016 struct Result { | 12016 struct Result { |
| 12017 uint32_t link_status; | 12017 uint32_t link_status; |
| 12018 uint32_t num_attribs; | 12018 uint32_t num_attribs; |
| 12019 uint32_t num_uniforms; | 12019 uint32_t num_uniforms; |
| 12020 }; | 12020 }; |
| 12021 | 12021 |
| 12022 static uint32_t ComputeSize() { | 12022 static uint32_t ComputeSize() { |
| 12023 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12023 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12024 } | 12024 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12056 "offset of GetProgramInfoCHROMIUM Result num_attribs should be " | 12056 "offset of GetProgramInfoCHROMIUM Result num_attribs should be " |
| 12057 "4"); | 12057 "4"); |
| 12058 static_assert(offsetof(GetProgramInfoCHROMIUM::Result, num_uniforms) == 8, | 12058 static_assert(offsetof(GetProgramInfoCHROMIUM::Result, num_uniforms) == 8, |
| 12059 "offset of GetProgramInfoCHROMIUM Result num_uniforms should be " | 12059 "offset of GetProgramInfoCHROMIUM Result num_uniforms should be " |
| 12060 "8"); | 12060 "8"); |
| 12061 | 12061 |
| 12062 struct GetUniformBlocksCHROMIUM { | 12062 struct GetUniformBlocksCHROMIUM { |
| 12063 typedef GetUniformBlocksCHROMIUM ValueType; | 12063 typedef GetUniformBlocksCHROMIUM ValueType; |
| 12064 static const CommandId kCmdId = kGetUniformBlocksCHROMIUM; | 12064 static const CommandId kCmdId = kGetUniformBlocksCHROMIUM; |
| 12065 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12065 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12066 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12066 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12067 | 12067 |
| 12068 typedef uint32_t Result; | 12068 typedef uint32_t Result; |
| 12069 | 12069 |
| 12070 static uint32_t ComputeSize() { | 12070 static uint32_t ComputeSize() { |
| 12071 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12071 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12072 } | 12072 } |
| 12073 | 12073 |
| 12074 void SetHeader() { header.SetCmd<ValueType>(); } | 12074 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12075 | 12075 |
| 12076 void Init(GLuint _program, uint32_t _bucket_id) { | 12076 void Init(GLuint _program, uint32_t _bucket_id) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 12095 "offset of GetUniformBlocksCHROMIUM header should be 0"); | 12095 "offset of GetUniformBlocksCHROMIUM header should be 0"); |
| 12096 static_assert(offsetof(GetUniformBlocksCHROMIUM, program) == 4, | 12096 static_assert(offsetof(GetUniformBlocksCHROMIUM, program) == 4, |
| 12097 "offset of GetUniformBlocksCHROMIUM program should be 4"); | 12097 "offset of GetUniformBlocksCHROMIUM program should be 4"); |
| 12098 static_assert(offsetof(GetUniformBlocksCHROMIUM, bucket_id) == 8, | 12098 static_assert(offsetof(GetUniformBlocksCHROMIUM, bucket_id) == 8, |
| 12099 "offset of GetUniformBlocksCHROMIUM bucket_id should be 8"); | 12099 "offset of GetUniformBlocksCHROMIUM bucket_id should be 8"); |
| 12100 | 12100 |
| 12101 struct GetTransformFeedbackVaryingsCHROMIUM { | 12101 struct GetTransformFeedbackVaryingsCHROMIUM { |
| 12102 typedef GetTransformFeedbackVaryingsCHROMIUM ValueType; | 12102 typedef GetTransformFeedbackVaryingsCHROMIUM ValueType; |
| 12103 static const CommandId kCmdId = kGetTransformFeedbackVaryingsCHROMIUM; | 12103 static const CommandId kCmdId = kGetTransformFeedbackVaryingsCHROMIUM; |
| 12104 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12104 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12105 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12105 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12106 | 12106 |
| 12107 typedef uint32_t Result; | 12107 typedef uint32_t Result; |
| 12108 | 12108 |
| 12109 static uint32_t ComputeSize() { | 12109 static uint32_t ComputeSize() { |
| 12110 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12110 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12111 } | 12111 } |
| 12112 | 12112 |
| 12113 void SetHeader() { header.SetCmd<ValueType>(); } | 12113 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12114 | 12114 |
| 12115 void Init(GLuint _program, uint32_t _bucket_id) { | 12115 void Init(GLuint _program, uint32_t _bucket_id) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 12137 offsetof(GetTransformFeedbackVaryingsCHROMIUM, program) == 4, | 12137 offsetof(GetTransformFeedbackVaryingsCHROMIUM, program) == 4, |
| 12138 "offset of GetTransformFeedbackVaryingsCHROMIUM program should be 4"); | 12138 "offset of GetTransformFeedbackVaryingsCHROMIUM program should be 4"); |
| 12139 static_assert( | 12139 static_assert( |
| 12140 offsetof(GetTransformFeedbackVaryingsCHROMIUM, bucket_id) == 8, | 12140 offsetof(GetTransformFeedbackVaryingsCHROMIUM, bucket_id) == 8, |
| 12141 "offset of GetTransformFeedbackVaryingsCHROMIUM bucket_id should be 8"); | 12141 "offset of GetTransformFeedbackVaryingsCHROMIUM bucket_id should be 8"); |
| 12142 | 12142 |
| 12143 struct GetUniformsES3CHROMIUM { | 12143 struct GetUniformsES3CHROMIUM { |
| 12144 typedef GetUniformsES3CHROMIUM ValueType; | 12144 typedef GetUniformsES3CHROMIUM ValueType; |
| 12145 static const CommandId kCmdId = kGetUniformsES3CHROMIUM; | 12145 static const CommandId kCmdId = kGetUniformsES3CHROMIUM; |
| 12146 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12146 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12147 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12147 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12148 | 12148 |
| 12149 typedef uint32_t Result; | 12149 typedef uint32_t Result; |
| 12150 | 12150 |
| 12151 static uint32_t ComputeSize() { | 12151 static uint32_t ComputeSize() { |
| 12152 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12152 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12153 } | 12153 } |
| 12154 | 12154 |
| 12155 void SetHeader() { header.SetCmd<ValueType>(); } | 12155 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12156 | 12156 |
| 12157 void Init(GLuint _program, uint32_t _bucket_id) { | 12157 void Init(GLuint _program, uint32_t _bucket_id) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 12176 "offset of GetUniformsES3CHROMIUM header should be 0"); | 12176 "offset of GetUniformsES3CHROMIUM header should be 0"); |
| 12177 static_assert(offsetof(GetUniformsES3CHROMIUM, program) == 4, | 12177 static_assert(offsetof(GetUniformsES3CHROMIUM, program) == 4, |
| 12178 "offset of GetUniformsES3CHROMIUM program should be 4"); | 12178 "offset of GetUniformsES3CHROMIUM program should be 4"); |
| 12179 static_assert(offsetof(GetUniformsES3CHROMIUM, bucket_id) == 8, | 12179 static_assert(offsetof(GetUniformsES3CHROMIUM, bucket_id) == 8, |
| 12180 "offset of GetUniformsES3CHROMIUM bucket_id should be 8"); | 12180 "offset of GetUniformsES3CHROMIUM bucket_id should be 8"); |
| 12181 | 12181 |
| 12182 struct GetTranslatedShaderSourceANGLE { | 12182 struct GetTranslatedShaderSourceANGLE { |
| 12183 typedef GetTranslatedShaderSourceANGLE ValueType; | 12183 typedef GetTranslatedShaderSourceANGLE ValueType; |
| 12184 static const CommandId kCmdId = kGetTranslatedShaderSourceANGLE; | 12184 static const CommandId kCmdId = kGetTranslatedShaderSourceANGLE; |
| 12185 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12185 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12186 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12186 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12187 | 12187 |
| 12188 static uint32_t ComputeSize() { | 12188 static uint32_t ComputeSize() { |
| 12189 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12189 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12190 } | 12190 } |
| 12191 | 12191 |
| 12192 void SetHeader() { header.SetCmd<ValueType>(); } | 12192 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12193 | 12193 |
| 12194 void Init(GLuint _shader, uint32_t _bucket_id) { | 12194 void Init(GLuint _shader, uint32_t _bucket_id) { |
| 12195 SetHeader(); | 12195 SetHeader(); |
| 12196 shader = _shader; | 12196 shader = _shader; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 12213 "offset of GetTranslatedShaderSourceANGLE header should be 0"); | 12213 "offset of GetTranslatedShaderSourceANGLE header should be 0"); |
| 12214 static_assert(offsetof(GetTranslatedShaderSourceANGLE, shader) == 4, | 12214 static_assert(offsetof(GetTranslatedShaderSourceANGLE, shader) == 4, |
| 12215 "offset of GetTranslatedShaderSourceANGLE shader should be 4"); | 12215 "offset of GetTranslatedShaderSourceANGLE shader should be 4"); |
| 12216 static_assert(offsetof(GetTranslatedShaderSourceANGLE, bucket_id) == 8, | 12216 static_assert(offsetof(GetTranslatedShaderSourceANGLE, bucket_id) == 8, |
| 12217 "offset of GetTranslatedShaderSourceANGLE bucket_id should be 8"); | 12217 "offset of GetTranslatedShaderSourceANGLE bucket_id should be 8"); |
| 12218 | 12218 |
| 12219 struct PostSubBufferCHROMIUM { | 12219 struct PostSubBufferCHROMIUM { |
| 12220 typedef PostSubBufferCHROMIUM ValueType; | 12220 typedef PostSubBufferCHROMIUM ValueType; |
| 12221 static const CommandId kCmdId = kPostSubBufferCHROMIUM; | 12221 static const CommandId kCmdId = kPostSubBufferCHROMIUM; |
| 12222 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12222 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12223 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12223 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12224 | 12224 |
| 12225 static uint32_t ComputeSize() { | 12225 static uint32_t ComputeSize() { |
| 12226 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12226 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12227 } | 12227 } |
| 12228 | 12228 |
| 12229 void SetHeader() { header.SetCmd<ValueType>(); } | 12229 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12230 | 12230 |
| 12231 void Init(GLint _x, GLint _y, GLint _width, GLint _height) { | 12231 void Init(GLint _x, GLint _y, GLint _width, GLint _height) { |
| 12232 SetHeader(); | 12232 SetHeader(); |
| 12233 x = _x; | 12233 x = _x; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 12258 "offset of PostSubBufferCHROMIUM y should be 8"); | 12258 "offset of PostSubBufferCHROMIUM y should be 8"); |
| 12259 static_assert(offsetof(PostSubBufferCHROMIUM, width) == 12, | 12259 static_assert(offsetof(PostSubBufferCHROMIUM, width) == 12, |
| 12260 "offset of PostSubBufferCHROMIUM width should be 12"); | 12260 "offset of PostSubBufferCHROMIUM width should be 12"); |
| 12261 static_assert(offsetof(PostSubBufferCHROMIUM, height) == 16, | 12261 static_assert(offsetof(PostSubBufferCHROMIUM, height) == 16, |
| 12262 "offset of PostSubBufferCHROMIUM height should be 16"); | 12262 "offset of PostSubBufferCHROMIUM height should be 16"); |
| 12263 | 12263 |
| 12264 struct TexImageIOSurface2DCHROMIUM { | 12264 struct TexImageIOSurface2DCHROMIUM { |
| 12265 typedef TexImageIOSurface2DCHROMIUM ValueType; | 12265 typedef TexImageIOSurface2DCHROMIUM ValueType; |
| 12266 static const CommandId kCmdId = kTexImageIOSurface2DCHROMIUM; | 12266 static const CommandId kCmdId = kTexImageIOSurface2DCHROMIUM; |
| 12267 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12267 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12268 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 12268 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 12269 | 12269 |
| 12270 static uint32_t ComputeSize() { | 12270 static uint32_t ComputeSize() { |
| 12271 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12271 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12272 } | 12272 } |
| 12273 | 12273 |
| 12274 void SetHeader() { header.SetCmd<ValueType>(); } | 12274 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12275 | 12275 |
| 12276 void Init(GLenum _target, | 12276 void Init(GLenum _target, |
| 12277 GLsizei _width, | 12277 GLsizei _width, |
| 12278 GLsizei _height, | 12278 GLsizei _height, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12317 "offset of TexImageIOSurface2DCHROMIUM height should be 12"); | 12317 "offset of TexImageIOSurface2DCHROMIUM height should be 12"); |
| 12318 static_assert(offsetof(TexImageIOSurface2DCHROMIUM, ioSurfaceId) == 16, | 12318 static_assert(offsetof(TexImageIOSurface2DCHROMIUM, ioSurfaceId) == 16, |
| 12319 "offset of TexImageIOSurface2DCHROMIUM ioSurfaceId should be 16"); | 12319 "offset of TexImageIOSurface2DCHROMIUM ioSurfaceId should be 16"); |
| 12320 static_assert(offsetof(TexImageIOSurface2DCHROMIUM, plane) == 20, | 12320 static_assert(offsetof(TexImageIOSurface2DCHROMIUM, plane) == 20, |
| 12321 "offset of TexImageIOSurface2DCHROMIUM plane should be 20"); | 12321 "offset of TexImageIOSurface2DCHROMIUM plane should be 20"); |
| 12322 | 12322 |
| 12323 struct CopyTextureCHROMIUM { | 12323 struct CopyTextureCHROMIUM { |
| 12324 typedef CopyTextureCHROMIUM ValueType; | 12324 typedef CopyTextureCHROMIUM ValueType; |
| 12325 static const CommandId kCmdId = kCopyTextureCHROMIUM; | 12325 static const CommandId kCmdId = kCopyTextureCHROMIUM; |
| 12326 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12326 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12327 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12327 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 12328 | 12328 |
| 12329 static uint32_t ComputeSize() { | 12329 static uint32_t ComputeSize() { |
| 12330 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12330 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12331 } | 12331 } |
| 12332 | 12332 |
| 12333 void SetHeader() { header.SetCmd<ValueType>(); } | 12333 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12334 | 12334 |
| 12335 void Init(GLenum _target, | 12335 void Init(GLenum _target, |
| 12336 GLenum _source_id, | 12336 GLenum _source_id, |
| 12337 GLenum _dest_id, | 12337 GLenum _dest_id, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12397 offsetof(CopyTextureCHROMIUM, unpack_premultiply_alpha) == 28, | 12397 offsetof(CopyTextureCHROMIUM, unpack_premultiply_alpha) == 28, |
| 12398 "offset of CopyTextureCHROMIUM unpack_premultiply_alpha should be 28"); | 12398 "offset of CopyTextureCHROMIUM unpack_premultiply_alpha should be 28"); |
| 12399 static_assert( | 12399 static_assert( |
| 12400 offsetof(CopyTextureCHROMIUM, unpack_unmultiply_alpha) == 32, | 12400 offsetof(CopyTextureCHROMIUM, unpack_unmultiply_alpha) == 32, |
| 12401 "offset of CopyTextureCHROMIUM unpack_unmultiply_alpha should be 32"); | 12401 "offset of CopyTextureCHROMIUM unpack_unmultiply_alpha should be 32"); |
| 12402 | 12402 |
| 12403 struct CopySubTextureCHROMIUM { | 12403 struct CopySubTextureCHROMIUM { |
| 12404 typedef CopySubTextureCHROMIUM ValueType; | 12404 typedef CopySubTextureCHROMIUM ValueType; |
| 12405 static const CommandId kCmdId = kCopySubTextureCHROMIUM; | 12405 static const CommandId kCmdId = kCopySubTextureCHROMIUM; |
| 12406 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12406 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12407 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12407 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 12408 | 12408 |
| 12409 static uint32_t ComputeSize() { | 12409 static uint32_t ComputeSize() { |
| 12410 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12410 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12411 } | 12411 } |
| 12412 | 12412 |
| 12413 void SetHeader() { header.SetCmd<ValueType>(); } | 12413 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12414 | 12414 |
| 12415 void Init(GLenum _target, | 12415 void Init(GLenum _target, |
| 12416 GLenum _source_id, | 12416 GLenum _source_id, |
| 12417 GLenum _dest_id, | 12417 GLenum _dest_id, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12502 offsetof(CopySubTextureCHROMIUM, unpack_premultiply_alpha) == 44, | 12502 offsetof(CopySubTextureCHROMIUM, unpack_premultiply_alpha) == 44, |
| 12503 "offset of CopySubTextureCHROMIUM unpack_premultiply_alpha should be 44"); | 12503 "offset of CopySubTextureCHROMIUM unpack_premultiply_alpha should be 44"); |
| 12504 static_assert( | 12504 static_assert( |
| 12505 offsetof(CopySubTextureCHROMIUM, unpack_unmultiply_alpha) == 48, | 12505 offsetof(CopySubTextureCHROMIUM, unpack_unmultiply_alpha) == 48, |
| 12506 "offset of CopySubTextureCHROMIUM unpack_unmultiply_alpha should be 48"); | 12506 "offset of CopySubTextureCHROMIUM unpack_unmultiply_alpha should be 48"); |
| 12507 | 12507 |
| 12508 struct CompressedCopyTextureCHROMIUM { | 12508 struct CompressedCopyTextureCHROMIUM { |
| 12509 typedef CompressedCopyTextureCHROMIUM ValueType; | 12509 typedef CompressedCopyTextureCHROMIUM ValueType; |
| 12510 static const CommandId kCmdId = kCompressedCopyTextureCHROMIUM; | 12510 static const CommandId kCmdId = kCompressedCopyTextureCHROMIUM; |
| 12511 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12511 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12512 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12512 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12513 | 12513 |
| 12514 static uint32_t ComputeSize() { | 12514 static uint32_t ComputeSize() { |
| 12515 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12515 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12516 } | 12516 } |
| 12517 | 12517 |
| 12518 void SetHeader() { header.SetCmd<ValueType>(); } | 12518 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12519 | 12519 |
| 12520 void Init(GLenum _target, GLenum _source_id, GLenum _dest_id) { | 12520 void Init(GLenum _target, GLenum _source_id, GLenum _dest_id) { |
| 12521 SetHeader(); | 12521 SetHeader(); |
| 12522 target = _target; | 12522 target = _target; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 12543 "offset of CompressedCopyTextureCHROMIUM target should be 4"); | 12543 "offset of CompressedCopyTextureCHROMIUM target should be 4"); |
| 12544 static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8, | 12544 static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8, |
| 12545 "offset of CompressedCopyTextureCHROMIUM source_id should be 8"); | 12545 "offset of CompressedCopyTextureCHROMIUM source_id should be 8"); |
| 12546 static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12, | 12546 static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12, |
| 12547 "offset of CompressedCopyTextureCHROMIUM dest_id should be 12"); | 12547 "offset of CompressedCopyTextureCHROMIUM dest_id should be 12"); |
| 12548 | 12548 |
| 12549 struct CompressedCopySubTextureCHROMIUM { | 12549 struct CompressedCopySubTextureCHROMIUM { |
| 12550 typedef CompressedCopySubTextureCHROMIUM ValueType; | 12550 typedef CompressedCopySubTextureCHROMIUM ValueType; |
| 12551 static const CommandId kCmdId = kCompressedCopySubTextureCHROMIUM; | 12551 static const CommandId kCmdId = kCompressedCopySubTextureCHROMIUM; |
| 12552 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12552 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12553 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12553 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12554 | 12554 |
| 12555 static uint32_t ComputeSize() { | 12555 static uint32_t ComputeSize() { |
| 12556 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12556 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12557 } | 12557 } |
| 12558 | 12558 |
| 12559 void SetHeader() { header.SetCmd<ValueType>(); } | 12559 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12560 | 12560 |
| 12561 void Init(GLenum _target, | 12561 void Init(GLenum _target, |
| 12562 GLenum _source_id, | 12562 GLenum _source_id, |
| 12563 GLenum _dest_id, | 12563 GLenum _dest_id, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12630 "offset of CompressedCopySubTextureCHROMIUM y should be 28"); | 12630 "offset of CompressedCopySubTextureCHROMIUM y should be 28"); |
| 12631 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, width) == 32, | 12631 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, width) == 32, |
| 12632 "offset of CompressedCopySubTextureCHROMIUM width should be 32"); | 12632 "offset of CompressedCopySubTextureCHROMIUM width should be 32"); |
| 12633 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, height) == 36, | 12633 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, height) == 36, |
| 12634 "offset of CompressedCopySubTextureCHROMIUM height should be 36"); | 12634 "offset of CompressedCopySubTextureCHROMIUM height should be 36"); |
| 12635 | 12635 |
| 12636 struct DrawArraysInstancedANGLE { | 12636 struct DrawArraysInstancedANGLE { |
| 12637 typedef DrawArraysInstancedANGLE ValueType; | 12637 typedef DrawArraysInstancedANGLE ValueType; |
| 12638 static const CommandId kCmdId = kDrawArraysInstancedANGLE; | 12638 static const CommandId kCmdId = kDrawArraysInstancedANGLE; |
| 12639 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12639 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12640 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12640 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 12641 | 12641 |
| 12642 static uint32_t ComputeSize() { | 12642 static uint32_t ComputeSize() { |
| 12643 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12643 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12644 } | 12644 } |
| 12645 | 12645 |
| 12646 void SetHeader() { header.SetCmd<ValueType>(); } | 12646 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12647 | 12647 |
| 12648 void Init(GLenum _mode, GLint _first, GLsizei _count, GLsizei _primcount) { | 12648 void Init(GLenum _mode, GLint _first, GLsizei _count, GLsizei _primcount) { |
| 12649 SetHeader(); | 12649 SetHeader(); |
| 12650 mode = _mode; | 12650 mode = _mode; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 12679 "offset of DrawArraysInstancedANGLE first should be 8"); | 12679 "offset of DrawArraysInstancedANGLE first should be 8"); |
| 12680 static_assert(offsetof(DrawArraysInstancedANGLE, count) == 12, | 12680 static_assert(offsetof(DrawArraysInstancedANGLE, count) == 12, |
| 12681 "offset of DrawArraysInstancedANGLE count should be 12"); | 12681 "offset of DrawArraysInstancedANGLE count should be 12"); |
| 12682 static_assert(offsetof(DrawArraysInstancedANGLE, primcount) == 16, | 12682 static_assert(offsetof(DrawArraysInstancedANGLE, primcount) == 16, |
| 12683 "offset of DrawArraysInstancedANGLE primcount should be 16"); | 12683 "offset of DrawArraysInstancedANGLE primcount should be 16"); |
| 12684 | 12684 |
| 12685 struct DrawElementsInstancedANGLE { | 12685 struct DrawElementsInstancedANGLE { |
| 12686 typedef DrawElementsInstancedANGLE ValueType; | 12686 typedef DrawElementsInstancedANGLE ValueType; |
| 12687 static const CommandId kCmdId = kDrawElementsInstancedANGLE; | 12687 static const CommandId kCmdId = kDrawElementsInstancedANGLE; |
| 12688 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12688 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12689 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12689 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 12690 | 12690 |
| 12691 static uint32_t ComputeSize() { | 12691 static uint32_t ComputeSize() { |
| 12692 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12692 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12693 } | 12693 } |
| 12694 | 12694 |
| 12695 void SetHeader() { header.SetCmd<ValueType>(); } | 12695 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12696 | 12696 |
| 12697 void Init(GLenum _mode, | 12697 void Init(GLenum _mode, |
| 12698 GLsizei _count, | 12698 GLsizei _count, |
| 12699 GLenum _type, | 12699 GLenum _type, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12738 "offset of DrawElementsInstancedANGLE type should be 12"); | 12738 "offset of DrawElementsInstancedANGLE type should be 12"); |
| 12739 static_assert(offsetof(DrawElementsInstancedANGLE, index_offset) == 16, | 12739 static_assert(offsetof(DrawElementsInstancedANGLE, index_offset) == 16, |
| 12740 "offset of DrawElementsInstancedANGLE index_offset should be 16"); | 12740 "offset of DrawElementsInstancedANGLE index_offset should be 16"); |
| 12741 static_assert(offsetof(DrawElementsInstancedANGLE, primcount) == 20, | 12741 static_assert(offsetof(DrawElementsInstancedANGLE, primcount) == 20, |
| 12742 "offset of DrawElementsInstancedANGLE primcount should be 20"); | 12742 "offset of DrawElementsInstancedANGLE primcount should be 20"); |
| 12743 | 12743 |
| 12744 struct VertexAttribDivisorANGLE { | 12744 struct VertexAttribDivisorANGLE { |
| 12745 typedef VertexAttribDivisorANGLE ValueType; | 12745 typedef VertexAttribDivisorANGLE ValueType; |
| 12746 static const CommandId kCmdId = kVertexAttribDivisorANGLE; | 12746 static const CommandId kCmdId = kVertexAttribDivisorANGLE; |
| 12747 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12747 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12748 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12748 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12749 | 12749 |
| 12750 static uint32_t ComputeSize() { | 12750 static uint32_t ComputeSize() { |
| 12751 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12751 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12752 } | 12752 } |
| 12753 | 12753 |
| 12754 void SetHeader() { header.SetCmd<ValueType>(); } | 12754 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12755 | 12755 |
| 12756 void Init(GLuint _index, GLuint _divisor) { | 12756 void Init(GLuint _index, GLuint _divisor) { |
| 12757 SetHeader(); | 12757 SetHeader(); |
| 12758 index = _index; | 12758 index = _index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 12775 "offset of VertexAttribDivisorANGLE header should be 0"); | 12775 "offset of VertexAttribDivisorANGLE header should be 0"); |
| 12776 static_assert(offsetof(VertexAttribDivisorANGLE, index) == 4, | 12776 static_assert(offsetof(VertexAttribDivisorANGLE, index) == 4, |
| 12777 "offset of VertexAttribDivisorANGLE index should be 4"); | 12777 "offset of VertexAttribDivisorANGLE index should be 4"); |
| 12778 static_assert(offsetof(VertexAttribDivisorANGLE, divisor) == 8, | 12778 static_assert(offsetof(VertexAttribDivisorANGLE, divisor) == 8, |
| 12779 "offset of VertexAttribDivisorANGLE divisor should be 8"); | 12779 "offset of VertexAttribDivisorANGLE divisor should be 8"); |
| 12780 | 12780 |
| 12781 struct ProduceTextureCHROMIUMImmediate { | 12781 struct ProduceTextureCHROMIUMImmediate { |
| 12782 typedef ProduceTextureCHROMIUMImmediate ValueType; | 12782 typedef ProduceTextureCHROMIUMImmediate ValueType; |
| 12783 static const CommandId kCmdId = kProduceTextureCHROMIUMImmediate; | 12783 static const CommandId kCmdId = kProduceTextureCHROMIUMImmediate; |
| 12784 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 12784 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 12785 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 12785 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 12786 | 12786 |
| 12787 static uint32_t ComputeDataSize() { | 12787 static uint32_t ComputeDataSize() { |
| 12788 return static_cast<uint32_t>(sizeof(GLbyte) * 64); | 12788 return static_cast<uint32_t>(sizeof(GLbyte) * 64); |
| 12789 } | 12789 } |
| 12790 | 12790 |
| 12791 static uint32_t ComputeSize() { | 12791 static uint32_t ComputeSize() { |
| 12792 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 12792 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 12793 } | 12793 } |
| 12794 | 12794 |
| 12795 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 12795 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 12814 "size of ProduceTextureCHROMIUMImmediate should be 8"); | 12814 "size of ProduceTextureCHROMIUMImmediate should be 8"); |
| 12815 static_assert(offsetof(ProduceTextureCHROMIUMImmediate, header) == 0, | 12815 static_assert(offsetof(ProduceTextureCHROMIUMImmediate, header) == 0, |
| 12816 "offset of ProduceTextureCHROMIUMImmediate header should be 0"); | 12816 "offset of ProduceTextureCHROMIUMImmediate header should be 0"); |
| 12817 static_assert(offsetof(ProduceTextureCHROMIUMImmediate, target) == 4, | 12817 static_assert(offsetof(ProduceTextureCHROMIUMImmediate, target) == 4, |
| 12818 "offset of ProduceTextureCHROMIUMImmediate target should be 4"); | 12818 "offset of ProduceTextureCHROMIUMImmediate target should be 4"); |
| 12819 | 12819 |
| 12820 struct ProduceTextureDirectCHROMIUMImmediate { | 12820 struct ProduceTextureDirectCHROMIUMImmediate { |
| 12821 typedef ProduceTextureDirectCHROMIUMImmediate ValueType; | 12821 typedef ProduceTextureDirectCHROMIUMImmediate ValueType; |
| 12822 static const CommandId kCmdId = kProduceTextureDirectCHROMIUMImmediate; | 12822 static const CommandId kCmdId = kProduceTextureDirectCHROMIUMImmediate; |
| 12823 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 12823 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 12824 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 12824 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 12825 | 12825 |
| 12826 static uint32_t ComputeDataSize() { | 12826 static uint32_t ComputeDataSize() { |
| 12827 return static_cast<uint32_t>(sizeof(GLbyte) * 64); | 12827 return static_cast<uint32_t>(sizeof(GLbyte) * 64); |
| 12828 } | 12828 } |
| 12829 | 12829 |
| 12830 static uint32_t ComputeSize() { | 12830 static uint32_t ComputeSize() { |
| 12831 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 12831 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 12832 } | 12832 } |
| 12833 | 12833 |
| 12834 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 12834 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 12863 offsetof(ProduceTextureDirectCHROMIUMImmediate, texture) == 4, | 12863 offsetof(ProduceTextureDirectCHROMIUMImmediate, texture) == 4, |
| 12864 "offset of ProduceTextureDirectCHROMIUMImmediate texture should be 4"); | 12864 "offset of ProduceTextureDirectCHROMIUMImmediate texture should be 4"); |
| 12865 static_assert( | 12865 static_assert( |
| 12866 offsetof(ProduceTextureDirectCHROMIUMImmediate, target) == 8, | 12866 offsetof(ProduceTextureDirectCHROMIUMImmediate, target) == 8, |
| 12867 "offset of ProduceTextureDirectCHROMIUMImmediate target should be 8"); | 12867 "offset of ProduceTextureDirectCHROMIUMImmediate target should be 8"); |
| 12868 | 12868 |
| 12869 struct ConsumeTextureCHROMIUMImmediate { | 12869 struct ConsumeTextureCHROMIUMImmediate { |
| 12870 typedef ConsumeTextureCHROMIUMImmediate ValueType; | 12870 typedef ConsumeTextureCHROMIUMImmediate ValueType; |
| 12871 static const CommandId kCmdId = kConsumeTextureCHROMIUMImmediate; | 12871 static const CommandId kCmdId = kConsumeTextureCHROMIUMImmediate; |
| 12872 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 12872 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 12873 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12873 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 12874 | 12874 |
| 12875 static uint32_t ComputeDataSize() { | 12875 static uint32_t ComputeDataSize() { |
| 12876 return static_cast<uint32_t>(sizeof(GLbyte) * 64); | 12876 return static_cast<uint32_t>(sizeof(GLbyte) * 64); |
| 12877 } | 12877 } |
| 12878 | 12878 |
| 12879 static uint32_t ComputeSize() { | 12879 static uint32_t ComputeSize() { |
| 12880 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 12880 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 12881 } | 12881 } |
| 12882 | 12882 |
| 12883 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 12883 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 12902 "size of ConsumeTextureCHROMIUMImmediate should be 8"); | 12902 "size of ConsumeTextureCHROMIUMImmediate should be 8"); |
| 12903 static_assert(offsetof(ConsumeTextureCHROMIUMImmediate, header) == 0, | 12903 static_assert(offsetof(ConsumeTextureCHROMIUMImmediate, header) == 0, |
| 12904 "offset of ConsumeTextureCHROMIUMImmediate header should be 0"); | 12904 "offset of ConsumeTextureCHROMIUMImmediate header should be 0"); |
| 12905 static_assert(offsetof(ConsumeTextureCHROMIUMImmediate, target) == 4, | 12905 static_assert(offsetof(ConsumeTextureCHROMIUMImmediate, target) == 4, |
| 12906 "offset of ConsumeTextureCHROMIUMImmediate target should be 4"); | 12906 "offset of ConsumeTextureCHROMIUMImmediate target should be 4"); |
| 12907 | 12907 |
| 12908 struct BindUniformLocationCHROMIUMBucket { | 12908 struct BindUniformLocationCHROMIUMBucket { |
| 12909 typedef BindUniformLocationCHROMIUMBucket ValueType; | 12909 typedef BindUniformLocationCHROMIUMBucket ValueType; |
| 12910 static const CommandId kCmdId = kBindUniformLocationCHROMIUMBucket; | 12910 static const CommandId kCmdId = kBindUniformLocationCHROMIUMBucket; |
| 12911 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12911 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12912 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12912 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12913 | 12913 |
| 12914 static uint32_t ComputeSize() { | 12914 static uint32_t ComputeSize() { |
| 12915 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12915 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12916 } | 12916 } |
| 12917 | 12917 |
| 12918 void SetHeader() { header.SetCmd<ValueType>(); } | 12918 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12919 | 12919 |
| 12920 void Init(GLuint _program, GLint _location, uint32_t _name_bucket_id) { | 12920 void Init(GLuint _program, GLint _location, uint32_t _name_bucket_id) { |
| 12921 SetHeader(); | 12921 SetHeader(); |
| 12922 program = _program; | 12922 program = _program; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 12949 offsetof(BindUniformLocationCHROMIUMBucket, location) == 8, | 12949 offsetof(BindUniformLocationCHROMIUMBucket, location) == 8, |
| 12950 "offset of BindUniformLocationCHROMIUMBucket location should be 8"); | 12950 "offset of BindUniformLocationCHROMIUMBucket location should be 8"); |
| 12951 static_assert( | 12951 static_assert( |
| 12952 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, | 12952 offsetof(BindUniformLocationCHROMIUMBucket, name_bucket_id) == 12, |
| 12953 "offset of BindUniformLocationCHROMIUMBucket name_bucket_id should be 12"); | 12953 "offset of BindUniformLocationCHROMIUMBucket name_bucket_id should be 12"); |
| 12954 | 12954 |
| 12955 struct GenValuebuffersCHROMIUMImmediate { | 12955 struct GenValuebuffersCHROMIUMImmediate { |
| 12956 typedef GenValuebuffersCHROMIUMImmediate ValueType; | 12956 typedef GenValuebuffersCHROMIUMImmediate ValueType; |
| 12957 static const CommandId kCmdId = kGenValuebuffersCHROMIUMImmediate; | 12957 static const CommandId kCmdId = kGenValuebuffersCHROMIUMImmediate; |
| 12958 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 12958 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 12959 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 12959 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12960 | 12960 |
| 12961 static uint32_t ComputeDataSize(GLsizei n) { | 12961 static uint32_t ComputeDataSize(GLsizei n) { |
| 12962 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 12962 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 12963 } | 12963 } |
| 12964 | 12964 |
| 12965 static uint32_t ComputeSize(GLsizei n) { | 12965 static uint32_t ComputeSize(GLsizei n) { |
| 12966 return static_cast<uint32_t>(sizeof(ValueType) + | 12966 return static_cast<uint32_t>(sizeof(ValueType) + |
| 12967 ComputeDataSize(n)); // NOLINT | 12967 ComputeDataSize(n)); // NOLINT |
| 12968 } | 12968 } |
| 12969 | 12969 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 12991 "size of GenValuebuffersCHROMIUMImmediate should be 8"); | 12991 "size of GenValuebuffersCHROMIUMImmediate should be 8"); |
| 12992 static_assert(offsetof(GenValuebuffersCHROMIUMImmediate, header) == 0, | 12992 static_assert(offsetof(GenValuebuffersCHROMIUMImmediate, header) == 0, |
| 12993 "offset of GenValuebuffersCHROMIUMImmediate header should be 0"); | 12993 "offset of GenValuebuffersCHROMIUMImmediate header should be 0"); |
| 12994 static_assert(offsetof(GenValuebuffersCHROMIUMImmediate, n) == 4, | 12994 static_assert(offsetof(GenValuebuffersCHROMIUMImmediate, n) == 4, |
| 12995 "offset of GenValuebuffersCHROMIUMImmediate n should be 4"); | 12995 "offset of GenValuebuffersCHROMIUMImmediate n should be 4"); |
| 12996 | 12996 |
| 12997 struct DeleteValuebuffersCHROMIUMImmediate { | 12997 struct DeleteValuebuffersCHROMIUMImmediate { |
| 12998 typedef DeleteValuebuffersCHROMIUMImmediate ValueType; | 12998 typedef DeleteValuebuffersCHROMIUMImmediate ValueType; |
| 12999 static const CommandId kCmdId = kDeleteValuebuffersCHROMIUMImmediate; | 12999 static const CommandId kCmdId = kDeleteValuebuffersCHROMIUMImmediate; |
| 13000 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 13000 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 13001 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13001 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13002 | 13002 |
| 13003 static uint32_t ComputeDataSize(GLsizei n) { | 13003 static uint32_t ComputeDataSize(GLsizei n) { |
| 13004 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT | 13004 return static_cast<uint32_t>(sizeof(GLuint) * n); // NOLINT |
| 13005 } | 13005 } |
| 13006 | 13006 |
| 13007 static uint32_t ComputeSize(GLsizei n) { | 13007 static uint32_t ComputeSize(GLsizei n) { |
| 13008 return static_cast<uint32_t>(sizeof(ValueType) + | 13008 return static_cast<uint32_t>(sizeof(ValueType) + |
| 13009 ComputeDataSize(n)); // NOLINT | 13009 ComputeDataSize(n)); // NOLINT |
| 13010 } | 13010 } |
| 13011 | 13011 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 13034 static_assert( | 13034 static_assert( |
| 13035 offsetof(DeleteValuebuffersCHROMIUMImmediate, header) == 0, | 13035 offsetof(DeleteValuebuffersCHROMIUMImmediate, header) == 0, |
| 13036 "offset of DeleteValuebuffersCHROMIUMImmediate header should be 0"); | 13036 "offset of DeleteValuebuffersCHROMIUMImmediate header should be 0"); |
| 13037 static_assert(offsetof(DeleteValuebuffersCHROMIUMImmediate, n) == 4, | 13037 static_assert(offsetof(DeleteValuebuffersCHROMIUMImmediate, n) == 4, |
| 13038 "offset of DeleteValuebuffersCHROMIUMImmediate n should be 4"); | 13038 "offset of DeleteValuebuffersCHROMIUMImmediate n should be 4"); |
| 13039 | 13039 |
| 13040 struct IsValuebufferCHROMIUM { | 13040 struct IsValuebufferCHROMIUM { |
| 13041 typedef IsValuebufferCHROMIUM ValueType; | 13041 typedef IsValuebufferCHROMIUM ValueType; |
| 13042 static const CommandId kCmdId = kIsValuebufferCHROMIUM; | 13042 static const CommandId kCmdId = kIsValuebufferCHROMIUM; |
| 13043 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13043 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13044 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13044 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13045 | 13045 |
| 13046 typedef uint32_t Result; | 13046 typedef uint32_t Result; |
| 13047 | 13047 |
| 13048 static uint32_t ComputeSize() { | 13048 static uint32_t ComputeSize() { |
| 13049 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13049 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13050 } | 13050 } |
| 13051 | 13051 |
| 13052 void SetHeader() { header.SetCmd<ValueType>(); } | 13052 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13053 | 13053 |
| 13054 void Init(GLuint _valuebuffer, | 13054 void Init(GLuint _valuebuffer, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 13083 "offset of IsValuebufferCHROMIUM valuebuffer should be 4"); | 13083 "offset of IsValuebufferCHROMIUM valuebuffer should be 4"); |
| 13084 static_assert(offsetof(IsValuebufferCHROMIUM, result_shm_id) == 8, | 13084 static_assert(offsetof(IsValuebufferCHROMIUM, result_shm_id) == 8, |
| 13085 "offset of IsValuebufferCHROMIUM result_shm_id should be 8"); | 13085 "offset of IsValuebufferCHROMIUM result_shm_id should be 8"); |
| 13086 static_assert(offsetof(IsValuebufferCHROMIUM, result_shm_offset) == 12, | 13086 static_assert(offsetof(IsValuebufferCHROMIUM, result_shm_offset) == 12, |
| 13087 "offset of IsValuebufferCHROMIUM result_shm_offset should be 12"); | 13087 "offset of IsValuebufferCHROMIUM result_shm_offset should be 12"); |
| 13088 | 13088 |
| 13089 struct BindValuebufferCHROMIUM { | 13089 struct BindValuebufferCHROMIUM { |
| 13090 typedef BindValuebufferCHROMIUM ValueType; | 13090 typedef BindValuebufferCHROMIUM ValueType; |
| 13091 static const CommandId kCmdId = kBindValuebufferCHROMIUM; | 13091 static const CommandId kCmdId = kBindValuebufferCHROMIUM; |
| 13092 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13092 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13093 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13093 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13094 | 13094 |
| 13095 static uint32_t ComputeSize() { | 13095 static uint32_t ComputeSize() { |
| 13096 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13096 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13097 } | 13097 } |
| 13098 | 13098 |
| 13099 void SetHeader() { header.SetCmd<ValueType>(); } | 13099 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13100 | 13100 |
| 13101 void Init(GLenum _target, GLuint _valuebuffer) { | 13101 void Init(GLenum _target, GLuint _valuebuffer) { |
| 13102 SetHeader(); | 13102 SetHeader(); |
| 13103 target = _target; | 13103 target = _target; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 13120 "offset of BindValuebufferCHROMIUM header should be 0"); | 13120 "offset of BindValuebufferCHROMIUM header should be 0"); |
| 13121 static_assert(offsetof(BindValuebufferCHROMIUM, target) == 4, | 13121 static_assert(offsetof(BindValuebufferCHROMIUM, target) == 4, |
| 13122 "offset of BindValuebufferCHROMIUM target should be 4"); | 13122 "offset of BindValuebufferCHROMIUM target should be 4"); |
| 13123 static_assert(offsetof(BindValuebufferCHROMIUM, valuebuffer) == 8, | 13123 static_assert(offsetof(BindValuebufferCHROMIUM, valuebuffer) == 8, |
| 13124 "offset of BindValuebufferCHROMIUM valuebuffer should be 8"); | 13124 "offset of BindValuebufferCHROMIUM valuebuffer should be 8"); |
| 13125 | 13125 |
| 13126 struct SubscribeValueCHROMIUM { | 13126 struct SubscribeValueCHROMIUM { |
| 13127 typedef SubscribeValueCHROMIUM ValueType; | 13127 typedef SubscribeValueCHROMIUM ValueType; |
| 13128 static const CommandId kCmdId = kSubscribeValueCHROMIUM; | 13128 static const CommandId kCmdId = kSubscribeValueCHROMIUM; |
| 13129 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13129 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13130 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13130 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13131 | 13131 |
| 13132 static uint32_t ComputeSize() { | 13132 static uint32_t ComputeSize() { |
| 13133 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13133 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13134 } | 13134 } |
| 13135 | 13135 |
| 13136 void SetHeader() { header.SetCmd<ValueType>(); } | 13136 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13137 | 13137 |
| 13138 void Init(GLenum _target, GLenum _subscription) { | 13138 void Init(GLenum _target, GLenum _subscription) { |
| 13139 SetHeader(); | 13139 SetHeader(); |
| 13140 target = _target; | 13140 target = _target; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 13157 "offset of SubscribeValueCHROMIUM header should be 0"); | 13157 "offset of SubscribeValueCHROMIUM header should be 0"); |
| 13158 static_assert(offsetof(SubscribeValueCHROMIUM, target) == 4, | 13158 static_assert(offsetof(SubscribeValueCHROMIUM, target) == 4, |
| 13159 "offset of SubscribeValueCHROMIUM target should be 4"); | 13159 "offset of SubscribeValueCHROMIUM target should be 4"); |
| 13160 static_assert(offsetof(SubscribeValueCHROMIUM, subscription) == 8, | 13160 static_assert(offsetof(SubscribeValueCHROMIUM, subscription) == 8, |
| 13161 "offset of SubscribeValueCHROMIUM subscription should be 8"); | 13161 "offset of SubscribeValueCHROMIUM subscription should be 8"); |
| 13162 | 13162 |
| 13163 struct PopulateSubscribedValuesCHROMIUM { | 13163 struct PopulateSubscribedValuesCHROMIUM { |
| 13164 typedef PopulateSubscribedValuesCHROMIUM ValueType; | 13164 typedef PopulateSubscribedValuesCHROMIUM ValueType; |
| 13165 static const CommandId kCmdId = kPopulateSubscribedValuesCHROMIUM; | 13165 static const CommandId kCmdId = kPopulateSubscribedValuesCHROMIUM; |
| 13166 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13166 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13167 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13167 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13168 | 13168 |
| 13169 static uint32_t ComputeSize() { | 13169 static uint32_t ComputeSize() { |
| 13170 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13170 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13171 } | 13171 } |
| 13172 | 13172 |
| 13173 void SetHeader() { header.SetCmd<ValueType>(); } | 13173 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13174 | 13174 |
| 13175 void Init(GLenum _target) { | 13175 void Init(GLenum _target) { |
| 13176 SetHeader(); | 13176 SetHeader(); |
| 13177 target = _target; | 13177 target = _target; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 13190 "size of PopulateSubscribedValuesCHROMIUM should be 8"); | 13190 "size of PopulateSubscribedValuesCHROMIUM should be 8"); |
| 13191 static_assert(offsetof(PopulateSubscribedValuesCHROMIUM, header) == 0, | 13191 static_assert(offsetof(PopulateSubscribedValuesCHROMIUM, header) == 0, |
| 13192 "offset of PopulateSubscribedValuesCHROMIUM header should be 0"); | 13192 "offset of PopulateSubscribedValuesCHROMIUM header should be 0"); |
| 13193 static_assert(offsetof(PopulateSubscribedValuesCHROMIUM, target) == 4, | 13193 static_assert(offsetof(PopulateSubscribedValuesCHROMIUM, target) == 4, |
| 13194 "offset of PopulateSubscribedValuesCHROMIUM target should be 4"); | 13194 "offset of PopulateSubscribedValuesCHROMIUM target should be 4"); |
| 13195 | 13195 |
| 13196 struct UniformValuebufferCHROMIUM { | 13196 struct UniformValuebufferCHROMIUM { |
| 13197 typedef UniformValuebufferCHROMIUM ValueType; | 13197 typedef UniformValuebufferCHROMIUM ValueType; |
| 13198 static const CommandId kCmdId = kUniformValuebufferCHROMIUM; | 13198 static const CommandId kCmdId = kUniformValuebufferCHROMIUM; |
| 13199 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13199 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13200 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13200 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13201 | 13201 |
| 13202 static uint32_t ComputeSize() { | 13202 static uint32_t ComputeSize() { |
| 13203 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13203 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13204 } | 13204 } |
| 13205 | 13205 |
| 13206 void SetHeader() { header.SetCmd<ValueType>(); } | 13206 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13207 | 13207 |
| 13208 void Init(GLint _location, GLenum _target, GLenum _subscription) { | 13208 void Init(GLint _location, GLenum _target, GLenum _subscription) { |
| 13209 SetHeader(); | 13209 SetHeader(); |
| 13210 location = _location; | 13210 location = _location; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 13231 "offset of UniformValuebufferCHROMIUM location should be 4"); | 13231 "offset of UniformValuebufferCHROMIUM location should be 4"); |
| 13232 static_assert(offsetof(UniformValuebufferCHROMIUM, target) == 8, | 13232 static_assert(offsetof(UniformValuebufferCHROMIUM, target) == 8, |
| 13233 "offset of UniformValuebufferCHROMIUM target should be 8"); | 13233 "offset of UniformValuebufferCHROMIUM target should be 8"); |
| 13234 static_assert(offsetof(UniformValuebufferCHROMIUM, subscription) == 12, | 13234 static_assert(offsetof(UniformValuebufferCHROMIUM, subscription) == 12, |
| 13235 "offset of UniformValuebufferCHROMIUM subscription should be 12"); | 13235 "offset of UniformValuebufferCHROMIUM subscription should be 12"); |
| 13236 | 13236 |
| 13237 struct BindTexImage2DCHROMIUM { | 13237 struct BindTexImage2DCHROMIUM { |
| 13238 typedef BindTexImage2DCHROMIUM ValueType; | 13238 typedef BindTexImage2DCHROMIUM ValueType; |
| 13239 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; | 13239 static const CommandId kCmdId = kBindTexImage2DCHROMIUM; |
| 13240 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13240 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13241 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13241 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13242 | 13242 |
| 13243 static uint32_t ComputeSize() { | 13243 static uint32_t ComputeSize() { |
| 13244 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13244 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13245 } | 13245 } |
| 13246 | 13246 |
| 13247 void SetHeader() { header.SetCmd<ValueType>(); } | 13247 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13248 | 13248 |
| 13249 void Init(GLenum _target, GLint _imageId) { | 13249 void Init(GLenum _target, GLint _imageId) { |
| 13250 SetHeader(); | 13250 SetHeader(); |
| 13251 target = _target; | 13251 target = _target; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 13268 "offset of BindTexImage2DCHROMIUM header should be 0"); | 13268 "offset of BindTexImage2DCHROMIUM header should be 0"); |
| 13269 static_assert(offsetof(BindTexImage2DCHROMIUM, target) == 4, | 13269 static_assert(offsetof(BindTexImage2DCHROMIUM, target) == 4, |
| 13270 "offset of BindTexImage2DCHROMIUM target should be 4"); | 13270 "offset of BindTexImage2DCHROMIUM target should be 4"); |
| 13271 static_assert(offsetof(BindTexImage2DCHROMIUM, imageId) == 8, | 13271 static_assert(offsetof(BindTexImage2DCHROMIUM, imageId) == 8, |
| 13272 "offset of BindTexImage2DCHROMIUM imageId should be 8"); | 13272 "offset of BindTexImage2DCHROMIUM imageId should be 8"); |
| 13273 | 13273 |
| 13274 struct ReleaseTexImage2DCHROMIUM { | 13274 struct ReleaseTexImage2DCHROMIUM { |
| 13275 typedef ReleaseTexImage2DCHROMIUM ValueType; | 13275 typedef ReleaseTexImage2DCHROMIUM ValueType; |
| 13276 static const CommandId kCmdId = kReleaseTexImage2DCHROMIUM; | 13276 static const CommandId kCmdId = kReleaseTexImage2DCHROMIUM; |
| 13277 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13277 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13278 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13278 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13279 | 13279 |
| 13280 static uint32_t ComputeSize() { | 13280 static uint32_t ComputeSize() { |
| 13281 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13281 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13282 } | 13282 } |
| 13283 | 13283 |
| 13284 void SetHeader() { header.SetCmd<ValueType>(); } | 13284 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13285 | 13285 |
| 13286 void Init(GLenum _target, GLint _imageId) { | 13286 void Init(GLenum _target, GLint _imageId) { |
| 13287 SetHeader(); | 13287 SetHeader(); |
| 13288 target = _target; | 13288 target = _target; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 13305 "offset of ReleaseTexImage2DCHROMIUM header should be 0"); | 13305 "offset of ReleaseTexImage2DCHROMIUM header should be 0"); |
| 13306 static_assert(offsetof(ReleaseTexImage2DCHROMIUM, target) == 4, | 13306 static_assert(offsetof(ReleaseTexImage2DCHROMIUM, target) == 4, |
| 13307 "offset of ReleaseTexImage2DCHROMIUM target should be 4"); | 13307 "offset of ReleaseTexImage2DCHROMIUM target should be 4"); |
| 13308 static_assert(offsetof(ReleaseTexImage2DCHROMIUM, imageId) == 8, | 13308 static_assert(offsetof(ReleaseTexImage2DCHROMIUM, imageId) == 8, |
| 13309 "offset of ReleaseTexImage2DCHROMIUM imageId should be 8"); | 13309 "offset of ReleaseTexImage2DCHROMIUM imageId should be 8"); |
| 13310 | 13310 |
| 13311 struct TraceBeginCHROMIUM { | 13311 struct TraceBeginCHROMIUM { |
| 13312 typedef TraceBeginCHROMIUM ValueType; | 13312 typedef TraceBeginCHROMIUM ValueType; |
| 13313 static const CommandId kCmdId = kTraceBeginCHROMIUM; | 13313 static const CommandId kCmdId = kTraceBeginCHROMIUM; |
| 13314 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13314 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13315 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13315 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13316 | 13316 |
| 13317 static uint32_t ComputeSize() { | 13317 static uint32_t ComputeSize() { |
| 13318 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13318 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13319 } | 13319 } |
| 13320 | 13320 |
| 13321 void SetHeader() { header.SetCmd<ValueType>(); } | 13321 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13322 | 13322 |
| 13323 void Init(GLuint _category_bucket_id, GLuint _name_bucket_id) { | 13323 void Init(GLuint _category_bucket_id, GLuint _name_bucket_id) { |
| 13324 SetHeader(); | 13324 SetHeader(); |
| 13325 category_bucket_id = _category_bucket_id; | 13325 category_bucket_id = _category_bucket_id; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 13342 "offset of TraceBeginCHROMIUM header should be 0"); | 13342 "offset of TraceBeginCHROMIUM header should be 0"); |
| 13343 static_assert(offsetof(TraceBeginCHROMIUM, category_bucket_id) == 4, | 13343 static_assert(offsetof(TraceBeginCHROMIUM, category_bucket_id) == 4, |
| 13344 "offset of TraceBeginCHROMIUM category_bucket_id should be 4"); | 13344 "offset of TraceBeginCHROMIUM category_bucket_id should be 4"); |
| 13345 static_assert(offsetof(TraceBeginCHROMIUM, name_bucket_id) == 8, | 13345 static_assert(offsetof(TraceBeginCHROMIUM, name_bucket_id) == 8, |
| 13346 "offset of TraceBeginCHROMIUM name_bucket_id should be 8"); | 13346 "offset of TraceBeginCHROMIUM name_bucket_id should be 8"); |
| 13347 | 13347 |
| 13348 struct TraceEndCHROMIUM { | 13348 struct TraceEndCHROMIUM { |
| 13349 typedef TraceEndCHROMIUM ValueType; | 13349 typedef TraceEndCHROMIUM ValueType; |
| 13350 static const CommandId kCmdId = kTraceEndCHROMIUM; | 13350 static const CommandId kCmdId = kTraceEndCHROMIUM; |
| 13351 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13351 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13352 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13352 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13353 | 13353 |
| 13354 static uint32_t ComputeSize() { | 13354 static uint32_t ComputeSize() { |
| 13355 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13355 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13356 } | 13356 } |
| 13357 | 13357 |
| 13358 void SetHeader() { header.SetCmd<ValueType>(); } | 13358 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13359 | 13359 |
| 13360 void Init() { SetHeader(); } | 13360 void Init() { SetHeader(); } |
| 13361 | 13361 |
| 13362 void* Set(void* cmd) { | 13362 void* Set(void* cmd) { |
| 13363 static_cast<ValueType*>(cmd)->Init(); | 13363 static_cast<ValueType*>(cmd)->Init(); |
| 13364 return NextCmdAddress<ValueType>(cmd); | 13364 return NextCmdAddress<ValueType>(cmd); |
| 13365 } | 13365 } |
| 13366 | 13366 |
| 13367 gpu::CommandHeader header; | 13367 gpu::CommandHeader header; |
| 13368 }; | 13368 }; |
| 13369 | 13369 |
| 13370 static_assert(sizeof(TraceEndCHROMIUM) == 4, | 13370 static_assert(sizeof(TraceEndCHROMIUM) == 4, |
| 13371 "size of TraceEndCHROMIUM should be 4"); | 13371 "size of TraceEndCHROMIUM should be 4"); |
| 13372 static_assert(offsetof(TraceEndCHROMIUM, header) == 0, | 13372 static_assert(offsetof(TraceEndCHROMIUM, header) == 0, |
| 13373 "offset of TraceEndCHROMIUM header should be 0"); | 13373 "offset of TraceEndCHROMIUM header should be 0"); |
| 13374 | 13374 |
| 13375 struct DiscardFramebufferEXTImmediate { | 13375 struct DiscardFramebufferEXTImmediate { |
| 13376 typedef DiscardFramebufferEXTImmediate ValueType; | 13376 typedef DiscardFramebufferEXTImmediate ValueType; |
| 13377 static const CommandId kCmdId = kDiscardFramebufferEXTImmediate; | 13377 static const CommandId kCmdId = kDiscardFramebufferEXTImmediate; |
| 13378 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 13378 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 13379 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 13379 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 13380 | 13380 |
| 13381 static uint32_t ComputeDataSize(GLsizei count) { | 13381 static uint32_t ComputeDataSize(GLsizei count) { |
| 13382 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT | 13382 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT |
| 13383 } | 13383 } |
| 13384 | 13384 |
| 13385 static uint32_t ComputeSize(GLsizei count) { | 13385 static uint32_t ComputeSize(GLsizei count) { |
| 13386 return static_cast<uint32_t>(sizeof(ValueType) + | 13386 return static_cast<uint32_t>(sizeof(ValueType) + |
| 13387 ComputeDataSize(count)); // NOLINT | 13387 ComputeDataSize(count)); // NOLINT |
| 13388 } | 13388 } |
| 13389 | 13389 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 13418 "offset of DiscardFramebufferEXTImmediate header should be 0"); | 13418 "offset of DiscardFramebufferEXTImmediate header should be 0"); |
| 13419 static_assert(offsetof(DiscardFramebufferEXTImmediate, target) == 4, | 13419 static_assert(offsetof(DiscardFramebufferEXTImmediate, target) == 4, |
| 13420 "offset of DiscardFramebufferEXTImmediate target should be 4"); | 13420 "offset of DiscardFramebufferEXTImmediate target should be 4"); |
| 13421 static_assert(offsetof(DiscardFramebufferEXTImmediate, count) == 8, | 13421 static_assert(offsetof(DiscardFramebufferEXTImmediate, count) == 8, |
| 13422 "offset of DiscardFramebufferEXTImmediate count should be 8"); | 13422 "offset of DiscardFramebufferEXTImmediate count should be 8"); |
| 13423 | 13423 |
| 13424 struct LoseContextCHROMIUM { | 13424 struct LoseContextCHROMIUM { |
| 13425 typedef LoseContextCHROMIUM ValueType; | 13425 typedef LoseContextCHROMIUM ValueType; |
| 13426 static const CommandId kCmdId = kLoseContextCHROMIUM; | 13426 static const CommandId kCmdId = kLoseContextCHROMIUM; |
| 13427 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13427 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13428 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 13428 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 13429 | 13429 |
| 13430 static uint32_t ComputeSize() { | 13430 static uint32_t ComputeSize() { |
| 13431 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13431 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13432 } | 13432 } |
| 13433 | 13433 |
| 13434 void SetHeader() { header.SetCmd<ValueType>(); } | 13434 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13435 | 13435 |
| 13436 void Init(GLenum _current, GLenum _other) { | 13436 void Init(GLenum _current, GLenum _other) { |
| 13437 SetHeader(); | 13437 SetHeader(); |
| 13438 current = _current; | 13438 current = _current; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 13455 "offset of LoseContextCHROMIUM header should be 0"); | 13455 "offset of LoseContextCHROMIUM header should be 0"); |
| 13456 static_assert(offsetof(LoseContextCHROMIUM, current) == 4, | 13456 static_assert(offsetof(LoseContextCHROMIUM, current) == 4, |
| 13457 "offset of LoseContextCHROMIUM current should be 4"); | 13457 "offset of LoseContextCHROMIUM current should be 4"); |
| 13458 static_assert(offsetof(LoseContextCHROMIUM, other) == 8, | 13458 static_assert(offsetof(LoseContextCHROMIUM, other) == 8, |
| 13459 "offset of LoseContextCHROMIUM other should be 8"); | 13459 "offset of LoseContextCHROMIUM other should be 8"); |
| 13460 | 13460 |
| 13461 struct WaitSyncPointCHROMIUM { | 13461 struct WaitSyncPointCHROMIUM { |
| 13462 typedef WaitSyncPointCHROMIUM ValueType; | 13462 typedef WaitSyncPointCHROMIUM ValueType; |
| 13463 static const CommandId kCmdId = kWaitSyncPointCHROMIUM; | 13463 static const CommandId kCmdId = kWaitSyncPointCHROMIUM; |
| 13464 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13464 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13465 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 13465 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 13466 | 13466 |
| 13467 static uint32_t ComputeSize() { | 13467 static uint32_t ComputeSize() { |
| 13468 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13468 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13469 } | 13469 } |
| 13470 | 13470 |
| 13471 void SetHeader() { header.SetCmd<ValueType>(); } | 13471 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13472 | 13472 |
| 13473 void Init(GLuint _sync_point) { | 13473 void Init(GLuint _sync_point) { |
| 13474 SetHeader(); | 13474 SetHeader(); |
| 13475 sync_point = _sync_point; | 13475 sync_point = _sync_point; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 13488 "size of WaitSyncPointCHROMIUM should be 8"); | 13488 "size of WaitSyncPointCHROMIUM should be 8"); |
| 13489 static_assert(offsetof(WaitSyncPointCHROMIUM, header) == 0, | 13489 static_assert(offsetof(WaitSyncPointCHROMIUM, header) == 0, |
| 13490 "offset of WaitSyncPointCHROMIUM header should be 0"); | 13490 "offset of WaitSyncPointCHROMIUM header should be 0"); |
| 13491 static_assert(offsetof(WaitSyncPointCHROMIUM, sync_point) == 4, | 13491 static_assert(offsetof(WaitSyncPointCHROMIUM, sync_point) == 4, |
| 13492 "offset of WaitSyncPointCHROMIUM sync_point should be 4"); | 13492 "offset of WaitSyncPointCHROMIUM sync_point should be 4"); |
| 13493 | 13493 |
| 13494 struct InsertFenceSyncCHROMIUM { | 13494 struct InsertFenceSyncCHROMIUM { |
| 13495 typedef InsertFenceSyncCHROMIUM ValueType; | 13495 typedef InsertFenceSyncCHROMIUM ValueType; |
| 13496 static const CommandId kCmdId = kInsertFenceSyncCHROMIUM; | 13496 static const CommandId kCmdId = kInsertFenceSyncCHROMIUM; |
| 13497 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13497 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13498 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 13498 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 13499 | 13499 |
| 13500 static uint32_t ComputeSize() { | 13500 static uint32_t ComputeSize() { |
| 13501 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13501 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13502 } | 13502 } |
| 13503 | 13503 |
| 13504 void SetHeader() { header.SetCmd<ValueType>(); } | 13504 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13505 | 13505 |
| 13506 void Init(GLuint64 _release_count) { | 13506 void Init(GLuint64 _release_count) { |
| 13507 SetHeader(); | 13507 SetHeader(); |
| 13508 GLES2Util::MapUint64ToTwoUint32(static_cast<uint64_t>(_release_count), | 13508 GLES2Util::MapUint64ToTwoUint32(static_cast<uint64_t>(_release_count), |
| (...skipping 21 matching lines...) Expand all Loading... |
| 13530 "offset of InsertFenceSyncCHROMIUM header should be 0"); | 13530 "offset of InsertFenceSyncCHROMIUM header should be 0"); |
| 13531 static_assert(offsetof(InsertFenceSyncCHROMIUM, release_count_0) == 4, | 13531 static_assert(offsetof(InsertFenceSyncCHROMIUM, release_count_0) == 4, |
| 13532 "offset of InsertFenceSyncCHROMIUM release_count_0 should be 4"); | 13532 "offset of InsertFenceSyncCHROMIUM release_count_0 should be 4"); |
| 13533 static_assert(offsetof(InsertFenceSyncCHROMIUM, release_count_1) == 8, | 13533 static_assert(offsetof(InsertFenceSyncCHROMIUM, release_count_1) == 8, |
| 13534 "offset of InsertFenceSyncCHROMIUM release_count_1 should be 8"); | 13534 "offset of InsertFenceSyncCHROMIUM release_count_1 should be 8"); |
| 13535 | 13535 |
| 13536 struct GenSyncTokenCHROMIUMImmediate { | 13536 struct GenSyncTokenCHROMIUMImmediate { |
| 13537 typedef GenSyncTokenCHROMIUMImmediate ValueType; | 13537 typedef GenSyncTokenCHROMIUMImmediate ValueType; |
| 13538 static const CommandId kCmdId = kGenSyncTokenCHROMIUMImmediate; | 13538 static const CommandId kCmdId = kGenSyncTokenCHROMIUMImmediate; |
| 13539 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 13539 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 13540 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13540 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13541 | 13541 |
| 13542 static uint32_t ComputeSize(uint32_t size_in_bytes) { | 13542 static uint32_t ComputeSize(uint32_t size_in_bytes) { |
| 13543 return static_cast<uint32_t>(sizeof(ValueType) + // NOLINT | 13543 return static_cast<uint32_t>(sizeof(ValueType) + // NOLINT |
| 13544 RoundSizeToMultipleOfEntries(size_in_bytes)); | 13544 RoundSizeToMultipleOfEntries(size_in_bytes)); |
| 13545 } | 13545 } |
| 13546 | 13546 |
| 13547 void SetHeader(uint32_t size_in_bytes) { | 13547 void SetHeader(uint32_t size_in_bytes) { |
| 13548 header.SetCmdByTotalSize<ValueType>(size_in_bytes); | 13548 header.SetCmdByTotalSize<ValueType>(size_in_bytes); |
| 13549 } | 13549 } |
| 13550 | 13550 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 13579 offsetof(GenSyncTokenCHROMIUMImmediate, fence_sync_0) == 4, | 13579 offsetof(GenSyncTokenCHROMIUMImmediate, fence_sync_0) == 4, |
| 13580 "offset of GenSyncTokenCHROMIUMImmediate fence_sync_0 should be 4"); | 13580 "offset of GenSyncTokenCHROMIUMImmediate fence_sync_0 should be 4"); |
| 13581 static_assert( | 13581 static_assert( |
| 13582 offsetof(GenSyncTokenCHROMIUMImmediate, fence_sync_1) == 8, | 13582 offsetof(GenSyncTokenCHROMIUMImmediate, fence_sync_1) == 8, |
| 13583 "offset of GenSyncTokenCHROMIUMImmediate fence_sync_1 should be 8"); | 13583 "offset of GenSyncTokenCHROMIUMImmediate fence_sync_1 should be 8"); |
| 13584 | 13584 |
| 13585 struct GenUnverifiedSyncTokenCHROMIUMImmediate { | 13585 struct GenUnverifiedSyncTokenCHROMIUMImmediate { |
| 13586 typedef GenUnverifiedSyncTokenCHROMIUMImmediate ValueType; | 13586 typedef GenUnverifiedSyncTokenCHROMIUMImmediate ValueType; |
| 13587 static const CommandId kCmdId = kGenUnverifiedSyncTokenCHROMIUMImmediate; | 13587 static const CommandId kCmdId = kGenUnverifiedSyncTokenCHROMIUMImmediate; |
| 13588 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 13588 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 13589 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13589 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13590 | 13590 |
| 13591 static uint32_t ComputeSize(uint32_t size_in_bytes) { | 13591 static uint32_t ComputeSize(uint32_t size_in_bytes) { |
| 13592 return static_cast<uint32_t>(sizeof(ValueType) + // NOLINT | 13592 return static_cast<uint32_t>(sizeof(ValueType) + // NOLINT |
| 13593 RoundSizeToMultipleOfEntries(size_in_bytes)); | 13593 RoundSizeToMultipleOfEntries(size_in_bytes)); |
| 13594 } | 13594 } |
| 13595 | 13595 |
| 13596 void SetHeader(uint32_t size_in_bytes) { | 13596 void SetHeader(uint32_t size_in_bytes) { |
| 13597 header.SetCmdByTotalSize<ValueType>(size_in_bytes); | 13597 header.SetCmdByTotalSize<ValueType>(size_in_bytes); |
| 13598 } | 13598 } |
| 13599 | 13599 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13631 "should be 4"); | 13631 "should be 4"); |
| 13632 static_assert(offsetof(GenUnverifiedSyncTokenCHROMIUMImmediate, fence_sync_1) == | 13632 static_assert(offsetof(GenUnverifiedSyncTokenCHROMIUMImmediate, fence_sync_1) == |
| 13633 8, | 13633 8, |
| 13634 "offset of GenUnverifiedSyncTokenCHROMIUMImmediate fence_sync_1 " | 13634 "offset of GenUnverifiedSyncTokenCHROMIUMImmediate fence_sync_1 " |
| 13635 "should be 8"); | 13635 "should be 8"); |
| 13636 | 13636 |
| 13637 struct VerifySyncTokensCHROMIUMImmediate { | 13637 struct VerifySyncTokensCHROMIUMImmediate { |
| 13638 typedef VerifySyncTokensCHROMIUMImmediate ValueType; | 13638 typedef VerifySyncTokensCHROMIUMImmediate ValueType; |
| 13639 static const CommandId kCmdId = kVerifySyncTokensCHROMIUMImmediate; | 13639 static const CommandId kCmdId = kVerifySyncTokensCHROMIUMImmediate; |
| 13640 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 13640 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 13641 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13641 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13642 | 13642 |
| 13643 static uint32_t ComputeSize(uint32_t size_in_bytes) { | 13643 static uint32_t ComputeSize(uint32_t size_in_bytes) { |
| 13644 return static_cast<uint32_t>(sizeof(ValueType) + // NOLINT | 13644 return static_cast<uint32_t>(sizeof(ValueType) + // NOLINT |
| 13645 RoundSizeToMultipleOfEntries(size_in_bytes)); | 13645 RoundSizeToMultipleOfEntries(size_in_bytes)); |
| 13646 } | 13646 } |
| 13647 | 13647 |
| 13648 void SetHeader(uint32_t size_in_bytes) { | 13648 void SetHeader(uint32_t size_in_bytes) { |
| 13649 header.SetCmdByTotalSize<ValueType>(size_in_bytes); | 13649 header.SetCmdByTotalSize<ValueType>(size_in_bytes); |
| 13650 } | 13650 } |
| 13651 | 13651 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 13669 "size of VerifySyncTokensCHROMIUMImmediate should be 8"); | 13669 "size of VerifySyncTokensCHROMIUMImmediate should be 8"); |
| 13670 static_assert(offsetof(VerifySyncTokensCHROMIUMImmediate, header) == 0, | 13670 static_assert(offsetof(VerifySyncTokensCHROMIUMImmediate, header) == 0, |
| 13671 "offset of VerifySyncTokensCHROMIUMImmediate header should be 0"); | 13671 "offset of VerifySyncTokensCHROMIUMImmediate header should be 0"); |
| 13672 static_assert(offsetof(VerifySyncTokensCHROMIUMImmediate, count) == 4, | 13672 static_assert(offsetof(VerifySyncTokensCHROMIUMImmediate, count) == 4, |
| 13673 "offset of VerifySyncTokensCHROMIUMImmediate count should be 4"); | 13673 "offset of VerifySyncTokensCHROMIUMImmediate count should be 4"); |
| 13674 | 13674 |
| 13675 struct WaitSyncTokenCHROMIUM { | 13675 struct WaitSyncTokenCHROMIUM { |
| 13676 typedef WaitSyncTokenCHROMIUM ValueType; | 13676 typedef WaitSyncTokenCHROMIUM ValueType; |
| 13677 static const CommandId kCmdId = kWaitSyncTokenCHROMIUM; | 13677 static const CommandId kCmdId = kWaitSyncTokenCHROMIUM; |
| 13678 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13678 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13679 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13679 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13680 | 13680 |
| 13681 static uint32_t ComputeSize() { | 13681 static uint32_t ComputeSize() { |
| 13682 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13682 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13683 } | 13683 } |
| 13684 | 13684 |
| 13685 void SetHeader() { header.SetCmd<ValueType>(); } | 13685 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13686 | 13686 |
| 13687 void Init(GLint _namespace_id, | 13687 void Init(GLint _namespace_id, |
| 13688 GLuint64 _command_buffer_id, | 13688 GLuint64 _command_buffer_id, |
| 13689 GLuint64 _release_count) { | 13689 GLuint64 _release_count) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13736 "offset of WaitSyncTokenCHROMIUM command_buffer_id_1 should be 12"); | 13736 "offset of WaitSyncTokenCHROMIUM command_buffer_id_1 should be 12"); |
| 13737 static_assert(offsetof(WaitSyncTokenCHROMIUM, release_count_0) == 16, | 13737 static_assert(offsetof(WaitSyncTokenCHROMIUM, release_count_0) == 16, |
| 13738 "offset of WaitSyncTokenCHROMIUM release_count_0 should be 16"); | 13738 "offset of WaitSyncTokenCHROMIUM release_count_0 should be 16"); |
| 13739 static_assert(offsetof(WaitSyncTokenCHROMIUM, release_count_1) == 20, | 13739 static_assert(offsetof(WaitSyncTokenCHROMIUM, release_count_1) == 20, |
| 13740 "offset of WaitSyncTokenCHROMIUM release_count_1 should be 20"); | 13740 "offset of WaitSyncTokenCHROMIUM release_count_1 should be 20"); |
| 13741 | 13741 |
| 13742 struct DrawBuffersEXTImmediate { | 13742 struct DrawBuffersEXTImmediate { |
| 13743 typedef DrawBuffersEXTImmediate ValueType; | 13743 typedef DrawBuffersEXTImmediate ValueType; |
| 13744 static const CommandId kCmdId = kDrawBuffersEXTImmediate; | 13744 static const CommandId kCmdId = kDrawBuffersEXTImmediate; |
| 13745 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 13745 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 13746 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 13746 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 13747 | 13747 |
| 13748 static uint32_t ComputeDataSize(GLsizei count) { | 13748 static uint32_t ComputeDataSize(GLsizei count) { |
| 13749 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT | 13749 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT |
| 13750 } | 13750 } |
| 13751 | 13751 |
| 13752 static uint32_t ComputeSize(GLsizei count) { | 13752 static uint32_t ComputeSize(GLsizei count) { |
| 13753 return static_cast<uint32_t>(sizeof(ValueType) + | 13753 return static_cast<uint32_t>(sizeof(ValueType) + |
| 13754 ComputeDataSize(count)); // NOLINT | 13754 ComputeDataSize(count)); // NOLINT |
| 13755 } | 13755 } |
| 13756 | 13756 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 13778 "size of DrawBuffersEXTImmediate should be 8"); | 13778 "size of DrawBuffersEXTImmediate should be 8"); |
| 13779 static_assert(offsetof(DrawBuffersEXTImmediate, header) == 0, | 13779 static_assert(offsetof(DrawBuffersEXTImmediate, header) == 0, |
| 13780 "offset of DrawBuffersEXTImmediate header should be 0"); | 13780 "offset of DrawBuffersEXTImmediate header should be 0"); |
| 13781 static_assert(offsetof(DrawBuffersEXTImmediate, count) == 4, | 13781 static_assert(offsetof(DrawBuffersEXTImmediate, count) == 4, |
| 13782 "offset of DrawBuffersEXTImmediate count should be 4"); | 13782 "offset of DrawBuffersEXTImmediate count should be 4"); |
| 13783 | 13783 |
| 13784 struct DiscardBackbufferCHROMIUM { | 13784 struct DiscardBackbufferCHROMIUM { |
| 13785 typedef DiscardBackbufferCHROMIUM ValueType; | 13785 typedef DiscardBackbufferCHROMIUM ValueType; |
| 13786 static const CommandId kCmdId = kDiscardBackbufferCHROMIUM; | 13786 static const CommandId kCmdId = kDiscardBackbufferCHROMIUM; |
| 13787 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13787 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13788 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 13788 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 13789 | 13789 |
| 13790 static uint32_t ComputeSize() { | 13790 static uint32_t ComputeSize() { |
| 13791 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13791 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13792 } | 13792 } |
| 13793 | 13793 |
| 13794 void SetHeader() { header.SetCmd<ValueType>(); } | 13794 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13795 | 13795 |
| 13796 void Init() { SetHeader(); } | 13796 void Init() { SetHeader(); } |
| 13797 | 13797 |
| 13798 void* Set(void* cmd) { | 13798 void* Set(void* cmd) { |
| 13799 static_cast<ValueType*>(cmd)->Init(); | 13799 static_cast<ValueType*>(cmd)->Init(); |
| 13800 return NextCmdAddress<ValueType>(cmd); | 13800 return NextCmdAddress<ValueType>(cmd); |
| 13801 } | 13801 } |
| 13802 | 13802 |
| 13803 gpu::CommandHeader header; | 13803 gpu::CommandHeader header; |
| 13804 }; | 13804 }; |
| 13805 | 13805 |
| 13806 static_assert(sizeof(DiscardBackbufferCHROMIUM) == 4, | 13806 static_assert(sizeof(DiscardBackbufferCHROMIUM) == 4, |
| 13807 "size of DiscardBackbufferCHROMIUM should be 4"); | 13807 "size of DiscardBackbufferCHROMIUM should be 4"); |
| 13808 static_assert(offsetof(DiscardBackbufferCHROMIUM, header) == 0, | 13808 static_assert(offsetof(DiscardBackbufferCHROMIUM, header) == 0, |
| 13809 "offset of DiscardBackbufferCHROMIUM header should be 0"); | 13809 "offset of DiscardBackbufferCHROMIUM header should be 0"); |
| 13810 | 13810 |
| 13811 struct ScheduleOverlayPlaneCHROMIUM { | 13811 struct ScheduleOverlayPlaneCHROMIUM { |
| 13812 typedef ScheduleOverlayPlaneCHROMIUM ValueType; | 13812 typedef ScheduleOverlayPlaneCHROMIUM ValueType; |
| 13813 static const CommandId kCmdId = kScheduleOverlayPlaneCHROMIUM; | 13813 static const CommandId kCmdId = kScheduleOverlayPlaneCHROMIUM; |
| 13814 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13814 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13815 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13815 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13816 | 13816 |
| 13817 static uint32_t ComputeSize() { | 13817 static uint32_t ComputeSize() { |
| 13818 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13818 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13819 } | 13819 } |
| 13820 | 13820 |
| 13821 void SetHeader() { header.SetCmd<ValueType>(); } | 13821 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13822 | 13822 |
| 13823 void Init(GLint _plane_z_order, | 13823 void Init(GLint _plane_z_order, |
| 13824 GLenum _plane_transform, | 13824 GLenum _plane_transform, |
| 13825 GLuint _overlay_texture_id, | 13825 GLuint _overlay_texture_id, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13907 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36"); | 13907 "offset of ScheduleOverlayPlaneCHROMIUM uv_y should be 36"); |
| 13908 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, | 13908 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, |
| 13909 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40"); | 13909 "offset of ScheduleOverlayPlaneCHROMIUM uv_width should be 40"); |
| 13910 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, | 13910 static_assert(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, |
| 13911 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44"); | 13911 "offset of ScheduleOverlayPlaneCHROMIUM uv_height should be 44"); |
| 13912 | 13912 |
| 13913 struct ScheduleCALayerCHROMIUM { | 13913 struct ScheduleCALayerCHROMIUM { |
| 13914 typedef ScheduleCALayerCHROMIUM ValueType; | 13914 typedef ScheduleCALayerCHROMIUM ValueType; |
| 13915 static const CommandId kCmdId = kScheduleCALayerCHROMIUM; | 13915 static const CommandId kCmdId = kScheduleCALayerCHROMIUM; |
| 13916 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13916 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13917 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13917 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13918 | 13918 |
| 13919 static uint32_t ComputeSize() { | 13919 static uint32_t ComputeSize() { |
| 13920 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 13920 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 13921 } | 13921 } |
| 13922 | 13922 |
| 13923 void SetHeader() { header.SetCmd<ValueType>(); } | 13923 void SetHeader() { header.SetCmd<ValueType>(); } |
| 13924 | 13924 |
| 13925 void Init(GLuint _contents_texture_id, | 13925 void Init(GLuint _contents_texture_id, |
| 13926 GLfloat _opacity, | 13926 GLfloat _opacity, |
| 13927 GLuint _background_color, | 13927 GLuint _background_color, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13988 "offset of ScheduleCALayerCHROMIUM sorting_context_id should be 24"); | 13988 "offset of ScheduleCALayerCHROMIUM sorting_context_id should be 24"); |
| 13989 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 28, | 13989 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_id) == 28, |
| 13990 "offset of ScheduleCALayerCHROMIUM shm_id should be 28"); | 13990 "offset of ScheduleCALayerCHROMIUM shm_id should be 28"); |
| 13991 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 32, | 13991 static_assert(offsetof(ScheduleCALayerCHROMIUM, shm_offset) == 32, |
| 13992 "offset of ScheduleCALayerCHROMIUM shm_offset should be 32"); | 13992 "offset of ScheduleCALayerCHROMIUM shm_offset should be 32"); |
| 13993 | 13993 |
| 13994 struct CommitOverlayPlanesCHROMIUM { | 13994 struct CommitOverlayPlanesCHROMIUM { |
| 13995 typedef CommitOverlayPlanesCHROMIUM ValueType; | 13995 typedef CommitOverlayPlanesCHROMIUM ValueType; |
| 13996 static const CommandId kCmdId = kCommitOverlayPlanesCHROMIUM; | 13996 static const CommandId kCmdId = kCommitOverlayPlanesCHROMIUM; |
| 13997 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 13997 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 13998 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 13998 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 13999 | 13999 |
| 14000 static uint32_t ComputeSize() { | 14000 static uint32_t ComputeSize() { |
| 14001 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14001 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14002 } | 14002 } |
| 14003 | 14003 |
| 14004 void SetHeader() { header.SetCmd<ValueType>(); } | 14004 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14005 | 14005 |
| 14006 void Init() { SetHeader(); } | 14006 void Init() { SetHeader(); } |
| 14007 | 14007 |
| 14008 void* Set(void* cmd) { | 14008 void* Set(void* cmd) { |
| 14009 static_cast<ValueType*>(cmd)->Init(); | 14009 static_cast<ValueType*>(cmd)->Init(); |
| 14010 return NextCmdAddress<ValueType>(cmd); | 14010 return NextCmdAddress<ValueType>(cmd); |
| 14011 } | 14011 } |
| 14012 | 14012 |
| 14013 gpu::CommandHeader header; | 14013 gpu::CommandHeader header; |
| 14014 }; | 14014 }; |
| 14015 | 14015 |
| 14016 static_assert(sizeof(CommitOverlayPlanesCHROMIUM) == 4, | 14016 static_assert(sizeof(CommitOverlayPlanesCHROMIUM) == 4, |
| 14017 "size of CommitOverlayPlanesCHROMIUM should be 4"); | 14017 "size of CommitOverlayPlanesCHROMIUM should be 4"); |
| 14018 static_assert(offsetof(CommitOverlayPlanesCHROMIUM, header) == 0, | 14018 static_assert(offsetof(CommitOverlayPlanesCHROMIUM, header) == 0, |
| 14019 "offset of CommitOverlayPlanesCHROMIUM header should be 0"); | 14019 "offset of CommitOverlayPlanesCHROMIUM header should be 0"); |
| 14020 | 14020 |
| 14021 struct SwapInterval { | 14021 struct SwapInterval { |
| 14022 typedef SwapInterval ValueType; | 14022 typedef SwapInterval ValueType; |
| 14023 static const CommandId kCmdId = kSwapInterval; | 14023 static const CommandId kCmdId = kSwapInterval; |
| 14024 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14024 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14025 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 14025 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 14026 | 14026 |
| 14027 static uint32_t ComputeSize() { | 14027 static uint32_t ComputeSize() { |
| 14028 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14028 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14029 } | 14029 } |
| 14030 | 14030 |
| 14031 void SetHeader() { header.SetCmd<ValueType>(); } | 14031 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14032 | 14032 |
| 14033 void Init(GLint _interval) { | 14033 void Init(GLint _interval) { |
| 14034 SetHeader(); | 14034 SetHeader(); |
| 14035 interval = _interval; | 14035 interval = _interval; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 14047 static_assert(sizeof(SwapInterval) == 8, "size of SwapInterval should be 8"); | 14047 static_assert(sizeof(SwapInterval) == 8, "size of SwapInterval should be 8"); |
| 14048 static_assert(offsetof(SwapInterval, header) == 0, | 14048 static_assert(offsetof(SwapInterval, header) == 0, |
| 14049 "offset of SwapInterval header should be 0"); | 14049 "offset of SwapInterval header should be 0"); |
| 14050 static_assert(offsetof(SwapInterval, interval) == 4, | 14050 static_assert(offsetof(SwapInterval, interval) == 4, |
| 14051 "offset of SwapInterval interval should be 4"); | 14051 "offset of SwapInterval interval should be 4"); |
| 14052 | 14052 |
| 14053 struct FlushDriverCachesCHROMIUM { | 14053 struct FlushDriverCachesCHROMIUM { |
| 14054 typedef FlushDriverCachesCHROMIUM ValueType; | 14054 typedef FlushDriverCachesCHROMIUM ValueType; |
| 14055 static const CommandId kCmdId = kFlushDriverCachesCHROMIUM; | 14055 static const CommandId kCmdId = kFlushDriverCachesCHROMIUM; |
| 14056 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14056 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14057 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | 14057 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); |
| 14058 | 14058 |
| 14059 static uint32_t ComputeSize() { | 14059 static uint32_t ComputeSize() { |
| 14060 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14060 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14061 } | 14061 } |
| 14062 | 14062 |
| 14063 void SetHeader() { header.SetCmd<ValueType>(); } | 14063 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14064 | 14064 |
| 14065 void Init() { SetHeader(); } | 14065 void Init() { SetHeader(); } |
| 14066 | 14066 |
| 14067 void* Set(void* cmd) { | 14067 void* Set(void* cmd) { |
| 14068 static_cast<ValueType*>(cmd)->Init(); | 14068 static_cast<ValueType*>(cmd)->Init(); |
| 14069 return NextCmdAddress<ValueType>(cmd); | 14069 return NextCmdAddress<ValueType>(cmd); |
| 14070 } | 14070 } |
| 14071 | 14071 |
| 14072 gpu::CommandHeader header; | 14072 gpu::CommandHeader header; |
| 14073 }; | 14073 }; |
| 14074 | 14074 |
| 14075 static_assert(sizeof(FlushDriverCachesCHROMIUM) == 4, | 14075 static_assert(sizeof(FlushDriverCachesCHROMIUM) == 4, |
| 14076 "size of FlushDriverCachesCHROMIUM should be 4"); | 14076 "size of FlushDriverCachesCHROMIUM should be 4"); |
| 14077 static_assert(offsetof(FlushDriverCachesCHROMIUM, header) == 0, | 14077 static_assert(offsetof(FlushDriverCachesCHROMIUM, header) == 0, |
| 14078 "offset of FlushDriverCachesCHROMIUM header should be 0"); | 14078 "offset of FlushDriverCachesCHROMIUM header should be 0"); |
| 14079 | 14079 |
| 14080 struct MatrixLoadfCHROMIUMImmediate { | 14080 struct MatrixLoadfCHROMIUMImmediate { |
| 14081 typedef MatrixLoadfCHROMIUMImmediate ValueType; | 14081 typedef MatrixLoadfCHROMIUMImmediate ValueType; |
| 14082 static const CommandId kCmdId = kMatrixLoadfCHROMIUMImmediate; | 14082 static const CommandId kCmdId = kMatrixLoadfCHROMIUMImmediate; |
| 14083 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 14083 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 14084 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14084 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14085 | 14085 |
| 14086 static uint32_t ComputeDataSize() { | 14086 static uint32_t ComputeDataSize() { |
| 14087 return static_cast<uint32_t>(sizeof(GLfloat) * 16); | 14087 return static_cast<uint32_t>(sizeof(GLfloat) * 16); |
| 14088 } | 14088 } |
| 14089 | 14089 |
| 14090 static uint32_t ComputeSize() { | 14090 static uint32_t ComputeSize() { |
| 14091 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); | 14091 return static_cast<uint32_t>(sizeof(ValueType) + ComputeDataSize()); |
| 14092 } | 14092 } |
| 14093 | 14093 |
| 14094 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } | 14094 void SetHeader() { header.SetCmdByTotalSize<ValueType>(ComputeSize()); } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 14113 "size of MatrixLoadfCHROMIUMImmediate should be 8"); | 14113 "size of MatrixLoadfCHROMIUMImmediate should be 8"); |
| 14114 static_assert(offsetof(MatrixLoadfCHROMIUMImmediate, header) == 0, | 14114 static_assert(offsetof(MatrixLoadfCHROMIUMImmediate, header) == 0, |
| 14115 "offset of MatrixLoadfCHROMIUMImmediate header should be 0"); | 14115 "offset of MatrixLoadfCHROMIUMImmediate header should be 0"); |
| 14116 static_assert(offsetof(MatrixLoadfCHROMIUMImmediate, matrixMode) == 4, | 14116 static_assert(offsetof(MatrixLoadfCHROMIUMImmediate, matrixMode) == 4, |
| 14117 "offset of MatrixLoadfCHROMIUMImmediate matrixMode should be 4"); | 14117 "offset of MatrixLoadfCHROMIUMImmediate matrixMode should be 4"); |
| 14118 | 14118 |
| 14119 struct MatrixLoadIdentityCHROMIUM { | 14119 struct MatrixLoadIdentityCHROMIUM { |
| 14120 typedef MatrixLoadIdentityCHROMIUM ValueType; | 14120 typedef MatrixLoadIdentityCHROMIUM ValueType; |
| 14121 static const CommandId kCmdId = kMatrixLoadIdentityCHROMIUM; | 14121 static const CommandId kCmdId = kMatrixLoadIdentityCHROMIUM; |
| 14122 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14122 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14123 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14123 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14124 | 14124 |
| 14125 static uint32_t ComputeSize() { | 14125 static uint32_t ComputeSize() { |
| 14126 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14126 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14127 } | 14127 } |
| 14128 | 14128 |
| 14129 void SetHeader() { header.SetCmd<ValueType>(); } | 14129 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14130 | 14130 |
| 14131 void Init(GLenum _matrixMode) { | 14131 void Init(GLenum _matrixMode) { |
| 14132 SetHeader(); | 14132 SetHeader(); |
| 14133 matrixMode = _matrixMode; | 14133 matrixMode = _matrixMode; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 14146 "size of MatrixLoadIdentityCHROMIUM should be 8"); | 14146 "size of MatrixLoadIdentityCHROMIUM should be 8"); |
| 14147 static_assert(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, | 14147 static_assert(offsetof(MatrixLoadIdentityCHROMIUM, header) == 0, |
| 14148 "offset of MatrixLoadIdentityCHROMIUM header should be 0"); | 14148 "offset of MatrixLoadIdentityCHROMIUM header should be 0"); |
| 14149 static_assert(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, | 14149 static_assert(offsetof(MatrixLoadIdentityCHROMIUM, matrixMode) == 4, |
| 14150 "offset of MatrixLoadIdentityCHROMIUM matrixMode should be 4"); | 14150 "offset of MatrixLoadIdentityCHROMIUM matrixMode should be 4"); |
| 14151 | 14151 |
| 14152 struct GenPathsCHROMIUM { | 14152 struct GenPathsCHROMIUM { |
| 14153 typedef GenPathsCHROMIUM ValueType; | 14153 typedef GenPathsCHROMIUM ValueType; |
| 14154 static const CommandId kCmdId = kGenPathsCHROMIUM; | 14154 static const CommandId kCmdId = kGenPathsCHROMIUM; |
| 14155 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14155 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14156 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14156 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14157 | 14157 |
| 14158 static uint32_t ComputeSize() { | 14158 static uint32_t ComputeSize() { |
| 14159 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14159 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14160 } | 14160 } |
| 14161 | 14161 |
| 14162 void SetHeader() { header.SetCmd<ValueType>(); } | 14162 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14163 | 14163 |
| 14164 void Init(GLuint _first_client_id, GLsizei _range) { | 14164 void Init(GLuint _first_client_id, GLsizei _range) { |
| 14165 SetHeader(); | 14165 SetHeader(); |
| 14166 first_client_id = _first_client_id; | 14166 first_client_id = _first_client_id; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 14183 "offset of GenPathsCHROMIUM header should be 0"); | 14183 "offset of GenPathsCHROMIUM header should be 0"); |
| 14184 static_assert(offsetof(GenPathsCHROMIUM, first_client_id) == 4, | 14184 static_assert(offsetof(GenPathsCHROMIUM, first_client_id) == 4, |
| 14185 "offset of GenPathsCHROMIUM first_client_id should be 4"); | 14185 "offset of GenPathsCHROMIUM first_client_id should be 4"); |
| 14186 static_assert(offsetof(GenPathsCHROMIUM, range) == 8, | 14186 static_assert(offsetof(GenPathsCHROMIUM, range) == 8, |
| 14187 "offset of GenPathsCHROMIUM range should be 8"); | 14187 "offset of GenPathsCHROMIUM range should be 8"); |
| 14188 | 14188 |
| 14189 struct DeletePathsCHROMIUM { | 14189 struct DeletePathsCHROMIUM { |
| 14190 typedef DeletePathsCHROMIUM ValueType; | 14190 typedef DeletePathsCHROMIUM ValueType; |
| 14191 static const CommandId kCmdId = kDeletePathsCHROMIUM; | 14191 static const CommandId kCmdId = kDeletePathsCHROMIUM; |
| 14192 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14192 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14193 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14193 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14194 | 14194 |
| 14195 static uint32_t ComputeSize() { | 14195 static uint32_t ComputeSize() { |
| 14196 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14196 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14197 } | 14197 } |
| 14198 | 14198 |
| 14199 void SetHeader() { header.SetCmd<ValueType>(); } | 14199 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14200 | 14200 |
| 14201 void Init(GLuint _first_client_id, GLsizei _range) { | 14201 void Init(GLuint _first_client_id, GLsizei _range) { |
| 14202 SetHeader(); | 14202 SetHeader(); |
| 14203 first_client_id = _first_client_id; | 14203 first_client_id = _first_client_id; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 14220 "offset of DeletePathsCHROMIUM header should be 0"); | 14220 "offset of DeletePathsCHROMIUM header should be 0"); |
| 14221 static_assert(offsetof(DeletePathsCHROMIUM, first_client_id) == 4, | 14221 static_assert(offsetof(DeletePathsCHROMIUM, first_client_id) == 4, |
| 14222 "offset of DeletePathsCHROMIUM first_client_id should be 4"); | 14222 "offset of DeletePathsCHROMIUM first_client_id should be 4"); |
| 14223 static_assert(offsetof(DeletePathsCHROMIUM, range) == 8, | 14223 static_assert(offsetof(DeletePathsCHROMIUM, range) == 8, |
| 14224 "offset of DeletePathsCHROMIUM range should be 8"); | 14224 "offset of DeletePathsCHROMIUM range should be 8"); |
| 14225 | 14225 |
| 14226 struct IsPathCHROMIUM { | 14226 struct IsPathCHROMIUM { |
| 14227 typedef IsPathCHROMIUM ValueType; | 14227 typedef IsPathCHROMIUM ValueType; |
| 14228 static const CommandId kCmdId = kIsPathCHROMIUM; | 14228 static const CommandId kCmdId = kIsPathCHROMIUM; |
| 14229 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14229 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14230 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14230 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14231 | 14231 |
| 14232 typedef uint32_t Result; | 14232 typedef uint32_t Result; |
| 14233 | 14233 |
| 14234 static uint32_t ComputeSize() { | 14234 static uint32_t ComputeSize() { |
| 14235 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14235 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14236 } | 14236 } |
| 14237 | 14237 |
| 14238 void SetHeader() { header.SetCmd<ValueType>(); } | 14238 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14239 | 14239 |
| 14240 void Init(GLuint _path, | 14240 void Init(GLuint _path, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 14269 "offset of IsPathCHROMIUM path should be 4"); | 14269 "offset of IsPathCHROMIUM path should be 4"); |
| 14270 static_assert(offsetof(IsPathCHROMIUM, result_shm_id) == 8, | 14270 static_assert(offsetof(IsPathCHROMIUM, result_shm_id) == 8, |
| 14271 "offset of IsPathCHROMIUM result_shm_id should be 8"); | 14271 "offset of IsPathCHROMIUM result_shm_id should be 8"); |
| 14272 static_assert(offsetof(IsPathCHROMIUM, result_shm_offset) == 12, | 14272 static_assert(offsetof(IsPathCHROMIUM, result_shm_offset) == 12, |
| 14273 "offset of IsPathCHROMIUM result_shm_offset should be 12"); | 14273 "offset of IsPathCHROMIUM result_shm_offset should be 12"); |
| 14274 | 14274 |
| 14275 struct PathCommandsCHROMIUM { | 14275 struct PathCommandsCHROMIUM { |
| 14276 typedef PathCommandsCHROMIUM ValueType; | 14276 typedef PathCommandsCHROMIUM ValueType; |
| 14277 static const CommandId kCmdId = kPathCommandsCHROMIUM; | 14277 static const CommandId kCmdId = kPathCommandsCHROMIUM; |
| 14278 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14278 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14279 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14279 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14280 | 14280 |
| 14281 static uint32_t ComputeSize() { | 14281 static uint32_t ComputeSize() { |
| 14282 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14282 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14283 } | 14283 } |
| 14284 | 14284 |
| 14285 void SetHeader() { header.SetCmd<ValueType>(); } | 14285 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14286 | 14286 |
| 14287 void Init(GLuint _path, | 14287 void Init(GLuint _path, |
| 14288 GLsizei _numCommands, | 14288 GLsizei _numCommands, |
| 14289 uint32_t _commands_shm_id, | 14289 uint32_t _commands_shm_id, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14348 "offset of PathCommandsCHROMIUM coordType should be 24"); | 14348 "offset of PathCommandsCHROMIUM coordType should be 24"); |
| 14349 static_assert(offsetof(PathCommandsCHROMIUM, coords_shm_id) == 28, | 14349 static_assert(offsetof(PathCommandsCHROMIUM, coords_shm_id) == 28, |
| 14350 "offset of PathCommandsCHROMIUM coords_shm_id should be 28"); | 14350 "offset of PathCommandsCHROMIUM coords_shm_id should be 28"); |
| 14351 static_assert(offsetof(PathCommandsCHROMIUM, coords_shm_offset) == 32, | 14351 static_assert(offsetof(PathCommandsCHROMIUM, coords_shm_offset) == 32, |
| 14352 "offset of PathCommandsCHROMIUM coords_shm_offset should be 32"); | 14352 "offset of PathCommandsCHROMIUM coords_shm_offset should be 32"); |
| 14353 | 14353 |
| 14354 struct PathParameterfCHROMIUM { | 14354 struct PathParameterfCHROMIUM { |
| 14355 typedef PathParameterfCHROMIUM ValueType; | 14355 typedef PathParameterfCHROMIUM ValueType; |
| 14356 static const CommandId kCmdId = kPathParameterfCHROMIUM; | 14356 static const CommandId kCmdId = kPathParameterfCHROMIUM; |
| 14357 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14357 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14358 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14358 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14359 | 14359 |
| 14360 static uint32_t ComputeSize() { | 14360 static uint32_t ComputeSize() { |
| 14361 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14361 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14362 } | 14362 } |
| 14363 | 14363 |
| 14364 void SetHeader() { header.SetCmd<ValueType>(); } | 14364 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14365 | 14365 |
| 14366 void Init(GLuint _path, GLenum _pname, GLfloat _value) { | 14366 void Init(GLuint _path, GLenum _pname, GLfloat _value) { |
| 14367 SetHeader(); | 14367 SetHeader(); |
| 14368 path = _path; | 14368 path = _path; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 14389 "offset of PathParameterfCHROMIUM path should be 4"); | 14389 "offset of PathParameterfCHROMIUM path should be 4"); |
| 14390 static_assert(offsetof(PathParameterfCHROMIUM, pname) == 8, | 14390 static_assert(offsetof(PathParameterfCHROMIUM, pname) == 8, |
| 14391 "offset of PathParameterfCHROMIUM pname should be 8"); | 14391 "offset of PathParameterfCHROMIUM pname should be 8"); |
| 14392 static_assert(offsetof(PathParameterfCHROMIUM, value) == 12, | 14392 static_assert(offsetof(PathParameterfCHROMIUM, value) == 12, |
| 14393 "offset of PathParameterfCHROMIUM value should be 12"); | 14393 "offset of PathParameterfCHROMIUM value should be 12"); |
| 14394 | 14394 |
| 14395 struct PathParameteriCHROMIUM { | 14395 struct PathParameteriCHROMIUM { |
| 14396 typedef PathParameteriCHROMIUM ValueType; | 14396 typedef PathParameteriCHROMIUM ValueType; |
| 14397 static const CommandId kCmdId = kPathParameteriCHROMIUM; | 14397 static const CommandId kCmdId = kPathParameteriCHROMIUM; |
| 14398 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14398 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14399 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14399 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14400 | 14400 |
| 14401 static uint32_t ComputeSize() { | 14401 static uint32_t ComputeSize() { |
| 14402 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14402 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14403 } | 14403 } |
| 14404 | 14404 |
| 14405 void SetHeader() { header.SetCmd<ValueType>(); } | 14405 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14406 | 14406 |
| 14407 void Init(GLuint _path, GLenum _pname, GLint _value) { | 14407 void Init(GLuint _path, GLenum _pname, GLint _value) { |
| 14408 SetHeader(); | 14408 SetHeader(); |
| 14409 path = _path; | 14409 path = _path; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 14430 "offset of PathParameteriCHROMIUM path should be 4"); | 14430 "offset of PathParameteriCHROMIUM path should be 4"); |
| 14431 static_assert(offsetof(PathParameteriCHROMIUM, pname) == 8, | 14431 static_assert(offsetof(PathParameteriCHROMIUM, pname) == 8, |
| 14432 "offset of PathParameteriCHROMIUM pname should be 8"); | 14432 "offset of PathParameteriCHROMIUM pname should be 8"); |
| 14433 static_assert(offsetof(PathParameteriCHROMIUM, value) == 12, | 14433 static_assert(offsetof(PathParameteriCHROMIUM, value) == 12, |
| 14434 "offset of PathParameteriCHROMIUM value should be 12"); | 14434 "offset of PathParameteriCHROMIUM value should be 12"); |
| 14435 | 14435 |
| 14436 struct PathStencilFuncCHROMIUM { | 14436 struct PathStencilFuncCHROMIUM { |
| 14437 typedef PathStencilFuncCHROMIUM ValueType; | 14437 typedef PathStencilFuncCHROMIUM ValueType; |
| 14438 static const CommandId kCmdId = kPathStencilFuncCHROMIUM; | 14438 static const CommandId kCmdId = kPathStencilFuncCHROMIUM; |
| 14439 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14439 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14440 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14440 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14441 | 14441 |
| 14442 static uint32_t ComputeSize() { | 14442 static uint32_t ComputeSize() { |
| 14443 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14443 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14444 } | 14444 } |
| 14445 | 14445 |
| 14446 void SetHeader() { header.SetCmd<ValueType>(); } | 14446 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14447 | 14447 |
| 14448 void Init(GLenum _func, GLint _ref, GLuint _mask) { | 14448 void Init(GLenum _func, GLint _ref, GLuint _mask) { |
| 14449 SetHeader(); | 14449 SetHeader(); |
| 14450 func = _func; | 14450 func = _func; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 14471 "offset of PathStencilFuncCHROMIUM func should be 4"); | 14471 "offset of PathStencilFuncCHROMIUM func should be 4"); |
| 14472 static_assert(offsetof(PathStencilFuncCHROMIUM, ref) == 8, | 14472 static_assert(offsetof(PathStencilFuncCHROMIUM, ref) == 8, |
| 14473 "offset of PathStencilFuncCHROMIUM ref should be 8"); | 14473 "offset of PathStencilFuncCHROMIUM ref should be 8"); |
| 14474 static_assert(offsetof(PathStencilFuncCHROMIUM, mask) == 12, | 14474 static_assert(offsetof(PathStencilFuncCHROMIUM, mask) == 12, |
| 14475 "offset of PathStencilFuncCHROMIUM mask should be 12"); | 14475 "offset of PathStencilFuncCHROMIUM mask should be 12"); |
| 14476 | 14476 |
| 14477 struct StencilFillPathCHROMIUM { | 14477 struct StencilFillPathCHROMIUM { |
| 14478 typedef StencilFillPathCHROMIUM ValueType; | 14478 typedef StencilFillPathCHROMIUM ValueType; |
| 14479 static const CommandId kCmdId = kStencilFillPathCHROMIUM; | 14479 static const CommandId kCmdId = kStencilFillPathCHROMIUM; |
| 14480 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14480 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14481 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14481 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14482 | 14482 |
| 14483 static uint32_t ComputeSize() { | 14483 static uint32_t ComputeSize() { |
| 14484 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14484 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14485 } | 14485 } |
| 14486 | 14486 |
| 14487 void SetHeader() { header.SetCmd<ValueType>(); } | 14487 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14488 | 14488 |
| 14489 void Init(GLuint _path, GLenum _fillMode, GLuint _mask) { | 14489 void Init(GLuint _path, GLenum _fillMode, GLuint _mask) { |
| 14490 SetHeader(); | 14490 SetHeader(); |
| 14491 path = _path; | 14491 path = _path; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 14512 "offset of StencilFillPathCHROMIUM path should be 4"); | 14512 "offset of StencilFillPathCHROMIUM path should be 4"); |
| 14513 static_assert(offsetof(StencilFillPathCHROMIUM, fillMode) == 8, | 14513 static_assert(offsetof(StencilFillPathCHROMIUM, fillMode) == 8, |
| 14514 "offset of StencilFillPathCHROMIUM fillMode should be 8"); | 14514 "offset of StencilFillPathCHROMIUM fillMode should be 8"); |
| 14515 static_assert(offsetof(StencilFillPathCHROMIUM, mask) == 12, | 14515 static_assert(offsetof(StencilFillPathCHROMIUM, mask) == 12, |
| 14516 "offset of StencilFillPathCHROMIUM mask should be 12"); | 14516 "offset of StencilFillPathCHROMIUM mask should be 12"); |
| 14517 | 14517 |
| 14518 struct StencilStrokePathCHROMIUM { | 14518 struct StencilStrokePathCHROMIUM { |
| 14519 typedef StencilStrokePathCHROMIUM ValueType; | 14519 typedef StencilStrokePathCHROMIUM ValueType; |
| 14520 static const CommandId kCmdId = kStencilStrokePathCHROMIUM; | 14520 static const CommandId kCmdId = kStencilStrokePathCHROMIUM; |
| 14521 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14521 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14522 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14522 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14523 | 14523 |
| 14524 static uint32_t ComputeSize() { | 14524 static uint32_t ComputeSize() { |
| 14525 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14525 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14526 } | 14526 } |
| 14527 | 14527 |
| 14528 void SetHeader() { header.SetCmd<ValueType>(); } | 14528 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14529 | 14529 |
| 14530 void Init(GLuint _path, GLint _reference, GLuint _mask) { | 14530 void Init(GLuint _path, GLint _reference, GLuint _mask) { |
| 14531 SetHeader(); | 14531 SetHeader(); |
| 14532 path = _path; | 14532 path = _path; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 14553 "offset of StencilStrokePathCHROMIUM path should be 4"); | 14553 "offset of StencilStrokePathCHROMIUM path should be 4"); |
| 14554 static_assert(offsetof(StencilStrokePathCHROMIUM, reference) == 8, | 14554 static_assert(offsetof(StencilStrokePathCHROMIUM, reference) == 8, |
| 14555 "offset of StencilStrokePathCHROMIUM reference should be 8"); | 14555 "offset of StencilStrokePathCHROMIUM reference should be 8"); |
| 14556 static_assert(offsetof(StencilStrokePathCHROMIUM, mask) == 12, | 14556 static_assert(offsetof(StencilStrokePathCHROMIUM, mask) == 12, |
| 14557 "offset of StencilStrokePathCHROMIUM mask should be 12"); | 14557 "offset of StencilStrokePathCHROMIUM mask should be 12"); |
| 14558 | 14558 |
| 14559 struct CoverFillPathCHROMIUM { | 14559 struct CoverFillPathCHROMIUM { |
| 14560 typedef CoverFillPathCHROMIUM ValueType; | 14560 typedef CoverFillPathCHROMIUM ValueType; |
| 14561 static const CommandId kCmdId = kCoverFillPathCHROMIUM; | 14561 static const CommandId kCmdId = kCoverFillPathCHROMIUM; |
| 14562 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14562 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14563 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14563 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14564 | 14564 |
| 14565 static uint32_t ComputeSize() { | 14565 static uint32_t ComputeSize() { |
| 14566 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14566 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14567 } | 14567 } |
| 14568 | 14568 |
| 14569 void SetHeader() { header.SetCmd<ValueType>(); } | 14569 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14570 | 14570 |
| 14571 void Init(GLuint _path, GLenum _coverMode) { | 14571 void Init(GLuint _path, GLenum _coverMode) { |
| 14572 SetHeader(); | 14572 SetHeader(); |
| 14573 path = _path; | 14573 path = _path; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 14590 "offset of CoverFillPathCHROMIUM header should be 0"); | 14590 "offset of CoverFillPathCHROMIUM header should be 0"); |
| 14591 static_assert(offsetof(CoverFillPathCHROMIUM, path) == 4, | 14591 static_assert(offsetof(CoverFillPathCHROMIUM, path) == 4, |
| 14592 "offset of CoverFillPathCHROMIUM path should be 4"); | 14592 "offset of CoverFillPathCHROMIUM path should be 4"); |
| 14593 static_assert(offsetof(CoverFillPathCHROMIUM, coverMode) == 8, | 14593 static_assert(offsetof(CoverFillPathCHROMIUM, coverMode) == 8, |
| 14594 "offset of CoverFillPathCHROMIUM coverMode should be 8"); | 14594 "offset of CoverFillPathCHROMIUM coverMode should be 8"); |
| 14595 | 14595 |
| 14596 struct CoverStrokePathCHROMIUM { | 14596 struct CoverStrokePathCHROMIUM { |
| 14597 typedef CoverStrokePathCHROMIUM ValueType; | 14597 typedef CoverStrokePathCHROMIUM ValueType; |
| 14598 static const CommandId kCmdId = kCoverStrokePathCHROMIUM; | 14598 static const CommandId kCmdId = kCoverStrokePathCHROMIUM; |
| 14599 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14599 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14600 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14600 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14601 | 14601 |
| 14602 static uint32_t ComputeSize() { | 14602 static uint32_t ComputeSize() { |
| 14603 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14603 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14604 } | 14604 } |
| 14605 | 14605 |
| 14606 void SetHeader() { header.SetCmd<ValueType>(); } | 14606 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14607 | 14607 |
| 14608 void Init(GLuint _path, GLenum _coverMode) { | 14608 void Init(GLuint _path, GLenum _coverMode) { |
| 14609 SetHeader(); | 14609 SetHeader(); |
| 14610 path = _path; | 14610 path = _path; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 14627 "offset of CoverStrokePathCHROMIUM header should be 0"); | 14627 "offset of CoverStrokePathCHROMIUM header should be 0"); |
| 14628 static_assert(offsetof(CoverStrokePathCHROMIUM, path) == 4, | 14628 static_assert(offsetof(CoverStrokePathCHROMIUM, path) == 4, |
| 14629 "offset of CoverStrokePathCHROMIUM path should be 4"); | 14629 "offset of CoverStrokePathCHROMIUM path should be 4"); |
| 14630 static_assert(offsetof(CoverStrokePathCHROMIUM, coverMode) == 8, | 14630 static_assert(offsetof(CoverStrokePathCHROMIUM, coverMode) == 8, |
| 14631 "offset of CoverStrokePathCHROMIUM coverMode should be 8"); | 14631 "offset of CoverStrokePathCHROMIUM coverMode should be 8"); |
| 14632 | 14632 |
| 14633 struct StencilThenCoverFillPathCHROMIUM { | 14633 struct StencilThenCoverFillPathCHROMIUM { |
| 14634 typedef StencilThenCoverFillPathCHROMIUM ValueType; | 14634 typedef StencilThenCoverFillPathCHROMIUM ValueType; |
| 14635 static const CommandId kCmdId = kStencilThenCoverFillPathCHROMIUM; | 14635 static const CommandId kCmdId = kStencilThenCoverFillPathCHROMIUM; |
| 14636 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14636 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14637 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14637 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14638 | 14638 |
| 14639 static uint32_t ComputeSize() { | 14639 static uint32_t ComputeSize() { |
| 14640 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14640 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14641 } | 14641 } |
| 14642 | 14642 |
| 14643 void SetHeader() { header.SetCmd<ValueType>(); } | 14643 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14644 | 14644 |
| 14645 void Init(GLuint _path, GLenum _fillMode, GLuint _mask, GLenum _coverMode) { | 14645 void Init(GLuint _path, GLenum _fillMode, GLuint _mask, GLenum _coverMode) { |
| 14646 SetHeader(); | 14646 SetHeader(); |
| 14647 path = _path; | 14647 path = _path; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 14678 static_assert(offsetof(StencilThenCoverFillPathCHROMIUM, mask) == 12, | 14678 static_assert(offsetof(StencilThenCoverFillPathCHROMIUM, mask) == 12, |
| 14679 "offset of StencilThenCoverFillPathCHROMIUM mask should be 12"); | 14679 "offset of StencilThenCoverFillPathCHROMIUM mask should be 12"); |
| 14680 static_assert( | 14680 static_assert( |
| 14681 offsetof(StencilThenCoverFillPathCHROMIUM, coverMode) == 16, | 14681 offsetof(StencilThenCoverFillPathCHROMIUM, coverMode) == 16, |
| 14682 "offset of StencilThenCoverFillPathCHROMIUM coverMode should be 16"); | 14682 "offset of StencilThenCoverFillPathCHROMIUM coverMode should be 16"); |
| 14683 | 14683 |
| 14684 struct StencilThenCoverStrokePathCHROMIUM { | 14684 struct StencilThenCoverStrokePathCHROMIUM { |
| 14685 typedef StencilThenCoverStrokePathCHROMIUM ValueType; | 14685 typedef StencilThenCoverStrokePathCHROMIUM ValueType; |
| 14686 static const CommandId kCmdId = kStencilThenCoverStrokePathCHROMIUM; | 14686 static const CommandId kCmdId = kStencilThenCoverStrokePathCHROMIUM; |
| 14687 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14687 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14688 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14688 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14689 | 14689 |
| 14690 static uint32_t ComputeSize() { | 14690 static uint32_t ComputeSize() { |
| 14691 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14691 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14692 } | 14692 } |
| 14693 | 14693 |
| 14694 void SetHeader() { header.SetCmd<ValueType>(); } | 14694 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14695 | 14695 |
| 14696 void Init(GLuint _path, GLint _reference, GLuint _mask, GLenum _coverMode) { | 14696 void Init(GLuint _path, GLint _reference, GLuint _mask, GLenum _coverMode) { |
| 14697 SetHeader(); | 14697 SetHeader(); |
| 14698 path = _path; | 14698 path = _path; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14730 static_assert(offsetof(StencilThenCoverStrokePathCHROMIUM, mask) == 12, | 14730 static_assert(offsetof(StencilThenCoverStrokePathCHROMIUM, mask) == 12, |
| 14731 "offset of StencilThenCoverStrokePathCHROMIUM mask should be 12"); | 14731 "offset of StencilThenCoverStrokePathCHROMIUM mask should be 12"); |
| 14732 static_assert( | 14732 static_assert( |
| 14733 offsetof(StencilThenCoverStrokePathCHROMIUM, coverMode) == 16, | 14733 offsetof(StencilThenCoverStrokePathCHROMIUM, coverMode) == 16, |
| 14734 "offset of StencilThenCoverStrokePathCHROMIUM coverMode should be 16"); | 14734 "offset of StencilThenCoverStrokePathCHROMIUM coverMode should be 16"); |
| 14735 | 14735 |
| 14736 struct StencilFillPathInstancedCHROMIUM { | 14736 struct StencilFillPathInstancedCHROMIUM { |
| 14737 typedef StencilFillPathInstancedCHROMIUM ValueType; | 14737 typedef StencilFillPathInstancedCHROMIUM ValueType; |
| 14738 static const CommandId kCmdId = kStencilFillPathInstancedCHROMIUM; | 14738 static const CommandId kCmdId = kStencilFillPathInstancedCHROMIUM; |
| 14739 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14739 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14740 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14740 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14741 | 14741 |
| 14742 static uint32_t ComputeSize() { | 14742 static uint32_t ComputeSize() { |
| 14743 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14743 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14744 } | 14744 } |
| 14745 | 14745 |
| 14746 void SetHeader() { header.SetCmd<ValueType>(); } | 14746 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14747 | 14747 |
| 14748 void Init(GLsizei _numPaths, | 14748 void Init(GLsizei _numPaths, |
| 14749 GLenum _pathNameType, | 14749 GLenum _pathNameType, |
| 14750 uint32_t _paths_shm_id, | 14750 uint32_t _paths_shm_id, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14832 "transformValues_shm_id should be 36"); | 14832 "transformValues_shm_id should be 36"); |
| 14833 static_assert(offsetof(StencilFillPathInstancedCHROMIUM, | 14833 static_assert(offsetof(StencilFillPathInstancedCHROMIUM, |
| 14834 transformValues_shm_offset) == 40, | 14834 transformValues_shm_offset) == 40, |
| 14835 "offset of StencilFillPathInstancedCHROMIUM " | 14835 "offset of StencilFillPathInstancedCHROMIUM " |
| 14836 "transformValues_shm_offset should be 40"); | 14836 "transformValues_shm_offset should be 40"); |
| 14837 | 14837 |
| 14838 struct StencilStrokePathInstancedCHROMIUM { | 14838 struct StencilStrokePathInstancedCHROMIUM { |
| 14839 typedef StencilStrokePathInstancedCHROMIUM ValueType; | 14839 typedef StencilStrokePathInstancedCHROMIUM ValueType; |
| 14840 static const CommandId kCmdId = kStencilStrokePathInstancedCHROMIUM; | 14840 static const CommandId kCmdId = kStencilStrokePathInstancedCHROMIUM; |
| 14841 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14841 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14842 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14842 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14843 | 14843 |
| 14844 static uint32_t ComputeSize() { | 14844 static uint32_t ComputeSize() { |
| 14845 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14845 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14846 } | 14846 } |
| 14847 | 14847 |
| 14848 void SetHeader() { header.SetCmd<ValueType>(); } | 14848 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14849 | 14849 |
| 14850 void Init(GLsizei _numPaths, | 14850 void Init(GLsizei _numPaths, |
| 14851 GLenum _pathNameType, | 14851 GLenum _pathNameType, |
| 14852 uint32_t _paths_shm_id, | 14852 uint32_t _paths_shm_id, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14936 "transformValues_shm_id should be 36"); | 14936 "transformValues_shm_id should be 36"); |
| 14937 static_assert(offsetof(StencilStrokePathInstancedCHROMIUM, | 14937 static_assert(offsetof(StencilStrokePathInstancedCHROMIUM, |
| 14938 transformValues_shm_offset) == 40, | 14938 transformValues_shm_offset) == 40, |
| 14939 "offset of StencilStrokePathInstancedCHROMIUM " | 14939 "offset of StencilStrokePathInstancedCHROMIUM " |
| 14940 "transformValues_shm_offset should be 40"); | 14940 "transformValues_shm_offset should be 40"); |
| 14941 | 14941 |
| 14942 struct CoverFillPathInstancedCHROMIUM { | 14942 struct CoverFillPathInstancedCHROMIUM { |
| 14943 typedef CoverFillPathInstancedCHROMIUM ValueType; | 14943 typedef CoverFillPathInstancedCHROMIUM ValueType; |
| 14944 static const CommandId kCmdId = kCoverFillPathInstancedCHROMIUM; | 14944 static const CommandId kCmdId = kCoverFillPathInstancedCHROMIUM; |
| 14945 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 14945 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 14946 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 14946 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 14947 | 14947 |
| 14948 static uint32_t ComputeSize() { | 14948 static uint32_t ComputeSize() { |
| 14949 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 14949 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 14950 } | 14950 } |
| 14951 | 14951 |
| 14952 void SetHeader() { header.SetCmd<ValueType>(); } | 14952 void SetHeader() { header.SetCmd<ValueType>(); } |
| 14953 | 14953 |
| 14954 void Init(GLsizei _numPaths, | 14954 void Init(GLsizei _numPaths, |
| 14955 GLenum _pathNameType, | 14955 GLenum _pathNameType, |
| 14956 uint32_t _paths_shm_id, | 14956 uint32_t _paths_shm_id, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15030 "should be 32"); | 15030 "should be 32"); |
| 15031 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, | 15031 static_assert(offsetof(CoverFillPathInstancedCHROMIUM, |
| 15032 transformValues_shm_offset) == 36, | 15032 transformValues_shm_offset) == 36, |
| 15033 "offset of CoverFillPathInstancedCHROMIUM " | 15033 "offset of CoverFillPathInstancedCHROMIUM " |
| 15034 "transformValues_shm_offset should be 36"); | 15034 "transformValues_shm_offset should be 36"); |
| 15035 | 15035 |
| 15036 struct CoverStrokePathInstancedCHROMIUM { | 15036 struct CoverStrokePathInstancedCHROMIUM { |
| 15037 typedef CoverStrokePathInstancedCHROMIUM ValueType; | 15037 typedef CoverStrokePathInstancedCHROMIUM ValueType; |
| 15038 static const CommandId kCmdId = kCoverStrokePathInstancedCHROMIUM; | 15038 static const CommandId kCmdId = kCoverStrokePathInstancedCHROMIUM; |
| 15039 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15039 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15040 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15040 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15041 | 15041 |
| 15042 static uint32_t ComputeSize() { | 15042 static uint32_t ComputeSize() { |
| 15043 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15043 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15044 } | 15044 } |
| 15045 | 15045 |
| 15046 void SetHeader() { header.SetCmd<ValueType>(); } | 15046 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15047 | 15047 |
| 15048 void Init(GLsizei _numPaths, | 15048 void Init(GLsizei _numPaths, |
| 15049 GLenum _pathNameType, | 15049 GLenum _pathNameType, |
| 15050 uint32_t _paths_shm_id, | 15050 uint32_t _paths_shm_id, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15126 "transformValues_shm_id should be 32"); | 15126 "transformValues_shm_id should be 32"); |
| 15127 static_assert(offsetof(CoverStrokePathInstancedCHROMIUM, | 15127 static_assert(offsetof(CoverStrokePathInstancedCHROMIUM, |
| 15128 transformValues_shm_offset) == 36, | 15128 transformValues_shm_offset) == 36, |
| 15129 "offset of CoverStrokePathInstancedCHROMIUM " | 15129 "offset of CoverStrokePathInstancedCHROMIUM " |
| 15130 "transformValues_shm_offset should be 36"); | 15130 "transformValues_shm_offset should be 36"); |
| 15131 | 15131 |
| 15132 struct StencilThenCoverFillPathInstancedCHROMIUM { | 15132 struct StencilThenCoverFillPathInstancedCHROMIUM { |
| 15133 typedef StencilThenCoverFillPathInstancedCHROMIUM ValueType; | 15133 typedef StencilThenCoverFillPathInstancedCHROMIUM ValueType; |
| 15134 static const CommandId kCmdId = kStencilThenCoverFillPathInstancedCHROMIUM; | 15134 static const CommandId kCmdId = kStencilThenCoverFillPathInstancedCHROMIUM; |
| 15135 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15135 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15136 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15136 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15137 | 15137 |
| 15138 static uint32_t ComputeSize() { | 15138 static uint32_t ComputeSize() { |
| 15139 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15139 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15140 } | 15140 } |
| 15141 | 15141 |
| 15142 void SetHeader() { header.SetCmd<ValueType>(); } | 15142 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15143 | 15143 |
| 15144 void Init(GLsizei _numPaths, | 15144 void Init(GLsizei _numPaths, |
| 15145 GLenum _pathNameType, | 15145 GLenum _pathNameType, |
| 15146 uint32_t _paths_shm_id, | 15146 uint32_t _paths_shm_id, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15244 "transformValues_shm_id should be 40"); | 15244 "transformValues_shm_id should be 40"); |
| 15245 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, | 15245 static_assert(offsetof(StencilThenCoverFillPathInstancedCHROMIUM, |
| 15246 transformValues_shm_offset) == 44, | 15246 transformValues_shm_offset) == 44, |
| 15247 "offset of StencilThenCoverFillPathInstancedCHROMIUM " | 15247 "offset of StencilThenCoverFillPathInstancedCHROMIUM " |
| 15248 "transformValues_shm_offset should be 44"); | 15248 "transformValues_shm_offset should be 44"); |
| 15249 | 15249 |
| 15250 struct StencilThenCoverStrokePathInstancedCHROMIUM { | 15250 struct StencilThenCoverStrokePathInstancedCHROMIUM { |
| 15251 typedef StencilThenCoverStrokePathInstancedCHROMIUM ValueType; | 15251 typedef StencilThenCoverStrokePathInstancedCHROMIUM ValueType; |
| 15252 static const CommandId kCmdId = kStencilThenCoverStrokePathInstancedCHROMIUM; | 15252 static const CommandId kCmdId = kStencilThenCoverStrokePathInstancedCHROMIUM; |
| 15253 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15253 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15254 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15254 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15255 | 15255 |
| 15256 static uint32_t ComputeSize() { | 15256 static uint32_t ComputeSize() { |
| 15257 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15257 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15258 } | 15258 } |
| 15259 | 15259 |
| 15260 void SetHeader() { header.SetCmd<ValueType>(); } | 15260 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15261 | 15261 |
| 15262 void Init(GLsizei _numPaths, | 15262 void Init(GLsizei _numPaths, |
| 15263 GLenum _pathNameType, | 15263 GLenum _pathNameType, |
| 15264 uint32_t _paths_shm_id, | 15264 uint32_t _paths_shm_id, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15364 "transformValues_shm_id should be 40"); | 15364 "transformValues_shm_id should be 40"); |
| 15365 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, | 15365 static_assert(offsetof(StencilThenCoverStrokePathInstancedCHROMIUM, |
| 15366 transformValues_shm_offset) == 44, | 15366 transformValues_shm_offset) == 44, |
| 15367 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " | 15367 "offset of StencilThenCoverStrokePathInstancedCHROMIUM " |
| 15368 "transformValues_shm_offset should be 44"); | 15368 "transformValues_shm_offset should be 44"); |
| 15369 | 15369 |
| 15370 struct BindFragmentInputLocationCHROMIUMBucket { | 15370 struct BindFragmentInputLocationCHROMIUMBucket { |
| 15371 typedef BindFragmentInputLocationCHROMIUMBucket ValueType; | 15371 typedef BindFragmentInputLocationCHROMIUMBucket ValueType; |
| 15372 static const CommandId kCmdId = kBindFragmentInputLocationCHROMIUMBucket; | 15372 static const CommandId kCmdId = kBindFragmentInputLocationCHROMIUMBucket; |
| 15373 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15373 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15374 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15374 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15375 | 15375 |
| 15376 static uint32_t ComputeSize() { | 15376 static uint32_t ComputeSize() { |
| 15377 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15377 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15378 } | 15378 } |
| 15379 | 15379 |
| 15380 void SetHeader() { header.SetCmd<ValueType>(); } | 15380 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15381 | 15381 |
| 15382 void Init(GLuint _program, GLint _location, uint32_t _name_bucket_id) { | 15382 void Init(GLuint _program, GLint _location, uint32_t _name_bucket_id) { |
| 15383 SetHeader(); | 15383 SetHeader(); |
| 15384 program = _program; | 15384 program = _program; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 15413 "offset of BindFragmentInputLocationCHROMIUMBucket location should be 8"); | 15413 "offset of BindFragmentInputLocationCHROMIUMBucket location should be 8"); |
| 15414 static_assert(offsetof(BindFragmentInputLocationCHROMIUMBucket, | 15414 static_assert(offsetof(BindFragmentInputLocationCHROMIUMBucket, |
| 15415 name_bucket_id) == 12, | 15415 name_bucket_id) == 12, |
| 15416 "offset of BindFragmentInputLocationCHROMIUMBucket " | 15416 "offset of BindFragmentInputLocationCHROMIUMBucket " |
| 15417 "name_bucket_id should be 12"); | 15417 "name_bucket_id should be 12"); |
| 15418 | 15418 |
| 15419 struct ProgramPathFragmentInputGenCHROMIUM { | 15419 struct ProgramPathFragmentInputGenCHROMIUM { |
| 15420 typedef ProgramPathFragmentInputGenCHROMIUM ValueType; | 15420 typedef ProgramPathFragmentInputGenCHROMIUM ValueType; |
| 15421 static const CommandId kCmdId = kProgramPathFragmentInputGenCHROMIUM; | 15421 static const CommandId kCmdId = kProgramPathFragmentInputGenCHROMIUM; |
| 15422 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15422 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15423 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15423 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15424 | 15424 |
| 15425 static uint32_t ComputeSize() { | 15425 static uint32_t ComputeSize() { |
| 15426 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15426 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15427 } | 15427 } |
| 15428 | 15428 |
| 15429 void SetHeader() { header.SetCmd<ValueType>(); } | 15429 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15430 | 15430 |
| 15431 void Init(GLuint _program, | 15431 void Init(GLuint _program, |
| 15432 GLint _location, | 15432 GLint _location, |
| 15433 GLenum _genMode, | 15433 GLenum _genMode, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15487 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_id should be 20"); | 15487 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_id should be 20"); |
| 15488 static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM, | 15488 static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM, |
| 15489 coeffs_shm_offset) == 24, | 15489 coeffs_shm_offset) == 24, |
| 15490 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset " | 15490 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset " |
| 15491 "should be 24"); | 15491 "should be 24"); |
| 15492 | 15492 |
| 15493 struct BlendBarrierKHR { | 15493 struct BlendBarrierKHR { |
| 15494 typedef BlendBarrierKHR ValueType; | 15494 typedef BlendBarrierKHR ValueType; |
| 15495 static const CommandId kCmdId = kBlendBarrierKHR; | 15495 static const CommandId kCmdId = kBlendBarrierKHR; |
| 15496 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15496 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15497 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15497 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15498 | 15498 |
| 15499 static uint32_t ComputeSize() { | 15499 static uint32_t ComputeSize() { |
| 15500 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15500 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15501 } | 15501 } |
| 15502 | 15502 |
| 15503 void SetHeader() { header.SetCmd<ValueType>(); } | 15503 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15504 | 15504 |
| 15505 void Init() { SetHeader(); } | 15505 void Init() { SetHeader(); } |
| 15506 | 15506 |
| 15507 void* Set(void* cmd) { | 15507 void* Set(void* cmd) { |
| 15508 static_cast<ValueType*>(cmd)->Init(); | 15508 static_cast<ValueType*>(cmd)->Init(); |
| 15509 return NextCmdAddress<ValueType>(cmd); | 15509 return NextCmdAddress<ValueType>(cmd); |
| 15510 } | 15510 } |
| 15511 | 15511 |
| 15512 gpu::CommandHeader header; | 15512 gpu::CommandHeader header; |
| 15513 }; | 15513 }; |
| 15514 | 15514 |
| 15515 static_assert(sizeof(BlendBarrierKHR) == 4, | 15515 static_assert(sizeof(BlendBarrierKHR) == 4, |
| 15516 "size of BlendBarrierKHR should be 4"); | 15516 "size of BlendBarrierKHR should be 4"); |
| 15517 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 15517 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
| 15518 "offset of BlendBarrierKHR header should be 0"); | 15518 "offset of BlendBarrierKHR header should be 0"); |
| 15519 | 15519 |
| 15520 struct ApplyScreenSpaceAntialiasingCHROMIUM { | 15520 struct ApplyScreenSpaceAntialiasingCHROMIUM { |
| 15521 typedef ApplyScreenSpaceAntialiasingCHROMIUM ValueType; | 15521 typedef ApplyScreenSpaceAntialiasingCHROMIUM ValueType; |
| 15522 static const CommandId kCmdId = kApplyScreenSpaceAntialiasingCHROMIUM; | 15522 static const CommandId kCmdId = kApplyScreenSpaceAntialiasingCHROMIUM; |
| 15523 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15523 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15524 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15524 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15525 | 15525 |
| 15526 static uint32_t ComputeSize() { | 15526 static uint32_t ComputeSize() { |
| 15527 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15527 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15528 } | 15528 } |
| 15529 | 15529 |
| 15530 void SetHeader() { header.SetCmd<ValueType>(); } | 15530 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15531 | 15531 |
| 15532 void Init() { SetHeader(); } | 15532 void Init() { SetHeader(); } |
| 15533 | 15533 |
| 15534 void* Set(void* cmd) { | 15534 void* Set(void* cmd) { |
| 15535 static_cast<ValueType*>(cmd)->Init(); | 15535 static_cast<ValueType*>(cmd)->Init(); |
| 15536 return NextCmdAddress<ValueType>(cmd); | 15536 return NextCmdAddress<ValueType>(cmd); |
| 15537 } | 15537 } |
| 15538 | 15538 |
| 15539 gpu::CommandHeader header; | 15539 gpu::CommandHeader header; |
| 15540 }; | 15540 }; |
| 15541 | 15541 |
| 15542 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, | 15542 static_assert(sizeof(ApplyScreenSpaceAntialiasingCHROMIUM) == 4, |
| 15543 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); | 15543 "size of ApplyScreenSpaceAntialiasingCHROMIUM should be 4"); |
| 15544 static_assert( | 15544 static_assert( |
| 15545 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, | 15545 offsetof(ApplyScreenSpaceAntialiasingCHROMIUM, header) == 0, |
| 15546 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); | 15546 "offset of ApplyScreenSpaceAntialiasingCHROMIUM header should be 0"); |
| 15547 | 15547 |
| 15548 struct BindFragDataLocationIndexedEXTBucket { | 15548 struct BindFragDataLocationIndexedEXTBucket { |
| 15549 typedef BindFragDataLocationIndexedEXTBucket ValueType; | 15549 typedef BindFragDataLocationIndexedEXTBucket ValueType; |
| 15550 static const CommandId kCmdId = kBindFragDataLocationIndexedEXTBucket; | 15550 static const CommandId kCmdId = kBindFragDataLocationIndexedEXTBucket; |
| 15551 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15551 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15552 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15552 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15553 | 15553 |
| 15554 static uint32_t ComputeSize() { | 15554 static uint32_t ComputeSize() { |
| 15555 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15555 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15556 } | 15556 } |
| 15557 | 15557 |
| 15558 void SetHeader() { header.SetCmd<ValueType>(); } | 15558 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15559 | 15559 |
| 15560 void Init(GLuint _program, | 15560 void Init(GLuint _program, |
| 15561 GLuint _colorNumber, | 15561 GLuint _colorNumber, |
| 15562 GLuint _index, | 15562 GLuint _index, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15601 "offset of BindFragDataLocationIndexedEXTBucket index should be 12"); | 15601 "offset of BindFragDataLocationIndexedEXTBucket index should be 12"); |
| 15602 static_assert(offsetof(BindFragDataLocationIndexedEXTBucket, name_bucket_id) == | 15602 static_assert(offsetof(BindFragDataLocationIndexedEXTBucket, name_bucket_id) == |
| 15603 16, | 15603 16, |
| 15604 "offset of BindFragDataLocationIndexedEXTBucket name_bucket_id " | 15604 "offset of BindFragDataLocationIndexedEXTBucket name_bucket_id " |
| 15605 "should be 16"); | 15605 "should be 16"); |
| 15606 | 15606 |
| 15607 struct BindFragDataLocationEXTBucket { | 15607 struct BindFragDataLocationEXTBucket { |
| 15608 typedef BindFragDataLocationEXTBucket ValueType; | 15608 typedef BindFragDataLocationEXTBucket ValueType; |
| 15609 static const CommandId kCmdId = kBindFragDataLocationEXTBucket; | 15609 static const CommandId kCmdId = kBindFragDataLocationEXTBucket; |
| 15610 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15610 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15611 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15611 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15612 | 15612 |
| 15613 static uint32_t ComputeSize() { | 15613 static uint32_t ComputeSize() { |
| 15614 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15614 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15615 } | 15615 } |
| 15616 | 15616 |
| 15617 void SetHeader() { header.SetCmd<ValueType>(); } | 15617 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15618 | 15618 |
| 15619 void Init(GLuint _program, GLuint _colorNumber, uint32_t _name_bucket_id) { | 15619 void Init(GLuint _program, GLuint _colorNumber, uint32_t _name_bucket_id) { |
| 15620 SetHeader(); | 15620 SetHeader(); |
| 15621 program = _program; | 15621 program = _program; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 15647 offsetof(BindFragDataLocationEXTBucket, colorNumber) == 8, | 15647 offsetof(BindFragDataLocationEXTBucket, colorNumber) == 8, |
| 15648 "offset of BindFragDataLocationEXTBucket colorNumber should be 8"); | 15648 "offset of BindFragDataLocationEXTBucket colorNumber should be 8"); |
| 15649 static_assert( | 15649 static_assert( |
| 15650 offsetof(BindFragDataLocationEXTBucket, name_bucket_id) == 12, | 15650 offsetof(BindFragDataLocationEXTBucket, name_bucket_id) == 12, |
| 15651 "offset of BindFragDataLocationEXTBucket name_bucket_id should be 12"); | 15651 "offset of BindFragDataLocationEXTBucket name_bucket_id should be 12"); |
| 15652 | 15652 |
| 15653 struct GetFragDataIndexEXT { | 15653 struct GetFragDataIndexEXT { |
| 15654 typedef GetFragDataIndexEXT ValueType; | 15654 typedef GetFragDataIndexEXT ValueType; |
| 15655 static const CommandId kCmdId = kGetFragDataIndexEXT; | 15655 static const CommandId kCmdId = kGetFragDataIndexEXT; |
| 15656 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15656 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15657 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15657 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15658 | 15658 |
| 15659 typedef GLint Result; | 15659 typedef GLint Result; |
| 15660 | 15660 |
| 15661 static uint32_t ComputeSize() { | 15661 static uint32_t ComputeSize() { |
| 15662 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15662 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15663 } | 15663 } |
| 15664 | 15664 |
| 15665 void SetHeader() { header.SetCmd<ValueType>(); } | 15665 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15666 | 15666 |
| 15667 void Init(GLuint _program, | 15667 void Init(GLuint _program, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15699 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, | 15699 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, |
| 15700 "offset of GetFragDataIndexEXT program should be 4"); | 15700 "offset of GetFragDataIndexEXT program should be 4"); |
| 15701 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, | 15701 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, |
| 15702 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); | 15702 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); |
| 15703 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, | 15703 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, |
| 15704 "offset of GetFragDataIndexEXT index_shm_id should be 12"); | 15704 "offset of GetFragDataIndexEXT index_shm_id should be 12"); |
| 15705 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, | 15705 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, |
| 15706 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); | 15706 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); |
| 15707 | 15707 |
| 15708 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15708 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |