| OLD | NEW |
| 1 // This file is auto-generated. DO NOT EDIT! | 1 // This file is auto-generated. DO NOT EDIT! |
| 2 | 2 |
| 3 #pragma pack(push, 1) | 3 #pragma pack(push, 1) |
| 4 | 4 |
| 5 struct ActiveTexture { | 5 struct ActiveTexture { |
| 6 typedef ActiveTexture ValueType; | 6 typedef ActiveTexture ValueType; |
| 7 static const CommandId kCmdId = kActiveTexture; | 7 static const CommandId kCmdId = kActiveTexture; |
| 8 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9 | 9 |
| 10 static uint32 ComputeSize() { | 10 static uint32 ComputeSize() { |
| 11 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 11 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 12 } | 12 } |
| 13 | 13 |
| 14 void SetHeader() { | 14 void SetHeader() { |
| 15 header.SetCmd<ValueType>(); | 15 header.SetCmd<ValueType>(); |
| 16 } | 16 } |
| 17 | 17 |
| 18 void Init(GLenum _texture) { | 18 void Init(GLenum _texture) { |
| 19 SetHeader(); | 19 SetHeader(); |
| 20 texture = _texture; | 20 texture = _texture; |
| 21 } | 21 } |
| 22 | 22 |
| 23 void* Set(void* cmd, GLenum _texture) { | 23 void* Set(void* cmd, GLenum _texture) { |
| 24 static_cast<ValueType*>(cmd)->Init(_texture); | 24 static_cast<ValueType*>(cmd)->Init(_texture); |
| 25 return NextCmdAddress<ValueType>(cmd); | 25 return NextCmdAddress<ValueType>(cmd); |
| 26 } | 26 } |
| 27 | 27 |
| 28 command_buffer::CommandHeader header; | 28 gpu::CommandHeader header; |
| 29 uint32 texture; | 29 uint32 texture; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 COMPILE_ASSERT(sizeof(ActiveTexture) == 8, | 32 COMPILE_ASSERT(sizeof(ActiveTexture) == 8, |
| 33 Sizeof_ActiveTexture_is_not_8); | 33 Sizeof_ActiveTexture_is_not_8); |
| 34 COMPILE_ASSERT(offsetof(ActiveTexture, header) == 0, | 34 COMPILE_ASSERT(offsetof(ActiveTexture, header) == 0, |
| 35 OffsetOf_ActiveTexture_header_not_0); | 35 OffsetOf_ActiveTexture_header_not_0); |
| 36 COMPILE_ASSERT(offsetof(ActiveTexture, texture) == 4, | 36 COMPILE_ASSERT(offsetof(ActiveTexture, texture) == 4, |
| 37 OffsetOf_ActiveTexture_texture_not_4); | 37 OffsetOf_ActiveTexture_texture_not_4); |
| 38 | 38 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 53 SetHeader(); | 53 SetHeader(); |
| 54 program = _program; | 54 program = _program; |
| 55 shader = _shader; | 55 shader = _shader; |
| 56 } | 56 } |
| 57 | 57 |
| 58 void* Set(void* cmd, GLuint _program, GLuint _shader) { | 58 void* Set(void* cmd, GLuint _program, GLuint _shader) { |
| 59 static_cast<ValueType*>(cmd)->Init(_program, _shader); | 59 static_cast<ValueType*>(cmd)->Init(_program, _shader); |
| 60 return NextCmdAddress<ValueType>(cmd); | 60 return NextCmdAddress<ValueType>(cmd); |
| 61 } | 61 } |
| 62 | 62 |
| 63 command_buffer::CommandHeader header; | 63 gpu::CommandHeader header; |
| 64 uint32 program; | 64 uint32 program; |
| 65 uint32 shader; | 65 uint32 shader; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 COMPILE_ASSERT(sizeof(AttachShader) == 12, | 68 COMPILE_ASSERT(sizeof(AttachShader) == 12, |
| 69 Sizeof_AttachShader_is_not_12); | 69 Sizeof_AttachShader_is_not_12); |
| 70 COMPILE_ASSERT(offsetof(AttachShader, header) == 0, | 70 COMPILE_ASSERT(offsetof(AttachShader, header) == 0, |
| 71 OffsetOf_AttachShader_header_not_0); | 71 OffsetOf_AttachShader_header_not_0); |
| 72 COMPILE_ASSERT(offsetof(AttachShader, program) == 4, | 72 COMPILE_ASSERT(offsetof(AttachShader, program) == 4, |
| 73 OffsetOf_AttachShader_program_not_4); | 73 OffsetOf_AttachShader_program_not_4); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 100 | 100 |
| 101 void* Set( | 101 void* Set( |
| 102 void* cmd, GLuint _program, GLuint _index, uint32 _name_shm_id, | 102 void* cmd, GLuint _program, GLuint _index, uint32 _name_shm_id, |
| 103 uint32 _name_shm_offset, uint32 _data_size) { | 103 uint32 _name_shm_offset, uint32 _data_size) { |
| 104 static_cast<ValueType*>( | 104 static_cast<ValueType*>( |
| 105 cmd)->Init( | 105 cmd)->Init( |
| 106 _program, _index, _name_shm_id, _name_shm_offset, _data_size); | 106 _program, _index, _name_shm_id, _name_shm_offset, _data_size); |
| 107 return NextCmdAddress<ValueType>(cmd); | 107 return NextCmdAddress<ValueType>(cmd); |
| 108 } | 108 } |
| 109 | 109 |
| 110 command_buffer::CommandHeader header; | 110 gpu::CommandHeader header; |
| 111 uint32 program; | 111 uint32 program; |
| 112 uint32 index; | 112 uint32 index; |
| 113 uint32 name_shm_id; | 113 uint32 name_shm_id; |
| 114 uint32 name_shm_offset; | 114 uint32 name_shm_offset; |
| 115 uint32 data_size; | 115 uint32 data_size; |
| 116 }; | 116 }; |
| 117 | 117 |
| 118 COMPILE_ASSERT(sizeof(BindAttribLocation) == 24, | 118 COMPILE_ASSERT(sizeof(BindAttribLocation) == 24, |
| 119 Sizeof_BindAttribLocation_is_not_24); | 119 Sizeof_BindAttribLocation_is_not_24); |
| 120 COMPILE_ASSERT(offsetof(BindAttribLocation, header) == 0, | 120 COMPILE_ASSERT(offsetof(BindAttribLocation, header) == 0, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 data_size = strlen(_name); | 155 data_size = strlen(_name); |
| 156 memcpy(ImmediateDataAddress(this), _name, data_size); | 156 memcpy(ImmediateDataAddress(this), _name, data_size); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void* Set(void* cmd, GLuint _program, GLuint _index, const char* _name) { | 159 void* Set(void* cmd, GLuint _program, GLuint _index, const char* _name) { |
| 160 static_cast<ValueType*>(cmd)->Init(_program, _index, _name); | 160 static_cast<ValueType*>(cmd)->Init(_program, _index, _name); |
| 161 const uint32 size = ComputeSize(_name); | 161 const uint32 size = ComputeSize(_name); |
| 162 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 162 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 163 } | 163 } |
| 164 | 164 |
| 165 command_buffer::CommandHeader header; | 165 gpu::CommandHeader header; |
| 166 uint32 program; | 166 uint32 program; |
| 167 uint32 index; | 167 uint32 index; |
| 168 uint32 data_size; | 168 uint32 data_size; |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 COMPILE_ASSERT(sizeof(BindAttribLocationImmediate) == 16, | 171 COMPILE_ASSERT(sizeof(BindAttribLocationImmediate) == 16, |
| 172 Sizeof_BindAttribLocationImmediate_is_not_16); | 172 Sizeof_BindAttribLocationImmediate_is_not_16); |
| 173 COMPILE_ASSERT(offsetof(BindAttribLocationImmediate, header) == 0, | 173 COMPILE_ASSERT(offsetof(BindAttribLocationImmediate, header) == 0, |
| 174 OffsetOf_BindAttribLocationImmediate_header_not_0); | 174 OffsetOf_BindAttribLocationImmediate_header_not_0); |
| 175 COMPILE_ASSERT(offsetof(BindAttribLocationImmediate, program) == 4, | 175 COMPILE_ASSERT(offsetof(BindAttribLocationImmediate, program) == 4, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 196 SetHeader(); | 196 SetHeader(); |
| 197 target = _target; | 197 target = _target; |
| 198 buffer = _buffer; | 198 buffer = _buffer; |
| 199 } | 199 } |
| 200 | 200 |
| 201 void* Set(void* cmd, GLenum _target, GLuint _buffer) { | 201 void* Set(void* cmd, GLenum _target, GLuint _buffer) { |
| 202 static_cast<ValueType*>(cmd)->Init(_target, _buffer); | 202 static_cast<ValueType*>(cmd)->Init(_target, _buffer); |
| 203 return NextCmdAddress<ValueType>(cmd); | 203 return NextCmdAddress<ValueType>(cmd); |
| 204 } | 204 } |
| 205 | 205 |
| 206 command_buffer::CommandHeader header; | 206 gpu::CommandHeader header; |
| 207 uint32 target; | 207 uint32 target; |
| 208 uint32 buffer; | 208 uint32 buffer; |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 COMPILE_ASSERT(sizeof(BindBuffer) == 12, | 211 COMPILE_ASSERT(sizeof(BindBuffer) == 12, |
| 212 Sizeof_BindBuffer_is_not_12); | 212 Sizeof_BindBuffer_is_not_12); |
| 213 COMPILE_ASSERT(offsetof(BindBuffer, header) == 0, | 213 COMPILE_ASSERT(offsetof(BindBuffer, header) == 0, |
| 214 OffsetOf_BindBuffer_header_not_0); | 214 OffsetOf_BindBuffer_header_not_0); |
| 215 COMPILE_ASSERT(offsetof(BindBuffer, target) == 4, | 215 COMPILE_ASSERT(offsetof(BindBuffer, target) == 4, |
| 216 OffsetOf_BindBuffer_target_not_4); | 216 OffsetOf_BindBuffer_target_not_4); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 234 SetHeader(); | 234 SetHeader(); |
| 235 target = _target; | 235 target = _target; |
| 236 framebuffer = _framebuffer; | 236 framebuffer = _framebuffer; |
| 237 } | 237 } |
| 238 | 238 |
| 239 void* Set(void* cmd, GLenum _target, GLuint _framebuffer) { | 239 void* Set(void* cmd, GLenum _target, GLuint _framebuffer) { |
| 240 static_cast<ValueType*>(cmd)->Init(_target, _framebuffer); | 240 static_cast<ValueType*>(cmd)->Init(_target, _framebuffer); |
| 241 return NextCmdAddress<ValueType>(cmd); | 241 return NextCmdAddress<ValueType>(cmd); |
| 242 } | 242 } |
| 243 | 243 |
| 244 command_buffer::CommandHeader header; | 244 gpu::CommandHeader header; |
| 245 uint32 target; | 245 uint32 target; |
| 246 uint32 framebuffer; | 246 uint32 framebuffer; |
| 247 }; | 247 }; |
| 248 | 248 |
| 249 COMPILE_ASSERT(sizeof(BindFramebuffer) == 12, | 249 COMPILE_ASSERT(sizeof(BindFramebuffer) == 12, |
| 250 Sizeof_BindFramebuffer_is_not_12); | 250 Sizeof_BindFramebuffer_is_not_12); |
| 251 COMPILE_ASSERT(offsetof(BindFramebuffer, header) == 0, | 251 COMPILE_ASSERT(offsetof(BindFramebuffer, header) == 0, |
| 252 OffsetOf_BindFramebuffer_header_not_0); | 252 OffsetOf_BindFramebuffer_header_not_0); |
| 253 COMPILE_ASSERT(offsetof(BindFramebuffer, target) == 4, | 253 COMPILE_ASSERT(offsetof(BindFramebuffer, target) == 4, |
| 254 OffsetOf_BindFramebuffer_target_not_4); | 254 OffsetOf_BindFramebuffer_target_not_4); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 272 SetHeader(); | 272 SetHeader(); |
| 273 target = _target; | 273 target = _target; |
| 274 renderbuffer = _renderbuffer; | 274 renderbuffer = _renderbuffer; |
| 275 } | 275 } |
| 276 | 276 |
| 277 void* Set(void* cmd, GLenum _target, GLuint _renderbuffer) { | 277 void* Set(void* cmd, GLenum _target, GLuint _renderbuffer) { |
| 278 static_cast<ValueType*>(cmd)->Init(_target, _renderbuffer); | 278 static_cast<ValueType*>(cmd)->Init(_target, _renderbuffer); |
| 279 return NextCmdAddress<ValueType>(cmd); | 279 return NextCmdAddress<ValueType>(cmd); |
| 280 } | 280 } |
| 281 | 281 |
| 282 command_buffer::CommandHeader header; | 282 gpu::CommandHeader header; |
| 283 uint32 target; | 283 uint32 target; |
| 284 uint32 renderbuffer; | 284 uint32 renderbuffer; |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 COMPILE_ASSERT(sizeof(BindRenderbuffer) == 12, | 287 COMPILE_ASSERT(sizeof(BindRenderbuffer) == 12, |
| 288 Sizeof_BindRenderbuffer_is_not_12); | 288 Sizeof_BindRenderbuffer_is_not_12); |
| 289 COMPILE_ASSERT(offsetof(BindRenderbuffer, header) == 0, | 289 COMPILE_ASSERT(offsetof(BindRenderbuffer, header) == 0, |
| 290 OffsetOf_BindRenderbuffer_header_not_0); | 290 OffsetOf_BindRenderbuffer_header_not_0); |
| 291 COMPILE_ASSERT(offsetof(BindRenderbuffer, target) == 4, | 291 COMPILE_ASSERT(offsetof(BindRenderbuffer, target) == 4, |
| 292 OffsetOf_BindRenderbuffer_target_not_4); | 292 OffsetOf_BindRenderbuffer_target_not_4); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 310 SetHeader(); | 310 SetHeader(); |
| 311 target = _target; | 311 target = _target; |
| 312 texture = _texture; | 312 texture = _texture; |
| 313 } | 313 } |
| 314 | 314 |
| 315 void* Set(void* cmd, GLenum _target, GLuint _texture) { | 315 void* Set(void* cmd, GLenum _target, GLuint _texture) { |
| 316 static_cast<ValueType*>(cmd)->Init(_target, _texture); | 316 static_cast<ValueType*>(cmd)->Init(_target, _texture); |
| 317 return NextCmdAddress<ValueType>(cmd); | 317 return NextCmdAddress<ValueType>(cmd); |
| 318 } | 318 } |
| 319 | 319 |
| 320 command_buffer::CommandHeader header; | 320 gpu::CommandHeader header; |
| 321 uint32 target; | 321 uint32 target; |
| 322 uint32 texture; | 322 uint32 texture; |
| 323 }; | 323 }; |
| 324 | 324 |
| 325 COMPILE_ASSERT(sizeof(BindTexture) == 12, | 325 COMPILE_ASSERT(sizeof(BindTexture) == 12, |
| 326 Sizeof_BindTexture_is_not_12); | 326 Sizeof_BindTexture_is_not_12); |
| 327 COMPILE_ASSERT(offsetof(BindTexture, header) == 0, | 327 COMPILE_ASSERT(offsetof(BindTexture, header) == 0, |
| 328 OffsetOf_BindTexture_header_not_0); | 328 OffsetOf_BindTexture_header_not_0); |
| 329 COMPILE_ASSERT(offsetof(BindTexture, target) == 4, | 329 COMPILE_ASSERT(offsetof(BindTexture, target) == 4, |
| 330 OffsetOf_BindTexture_target_not_4); | 330 OffsetOf_BindTexture_target_not_4); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 352 alpha = _alpha; | 352 alpha = _alpha; |
| 353 } | 353 } |
| 354 | 354 |
| 355 void* Set( | 355 void* Set( |
| 356 void* cmd, GLclampf _red, GLclampf _green, GLclampf _blue, | 356 void* cmd, GLclampf _red, GLclampf _green, GLclampf _blue, |
| 357 GLclampf _alpha) { | 357 GLclampf _alpha) { |
| 358 static_cast<ValueType*>(cmd)->Init(_red, _green, _blue, _alpha); | 358 static_cast<ValueType*>(cmd)->Init(_red, _green, _blue, _alpha); |
| 359 return NextCmdAddress<ValueType>(cmd); | 359 return NextCmdAddress<ValueType>(cmd); |
| 360 } | 360 } |
| 361 | 361 |
| 362 command_buffer::CommandHeader header; | 362 gpu::CommandHeader header; |
| 363 float red; | 363 float red; |
| 364 float green; | 364 float green; |
| 365 float blue; | 365 float blue; |
| 366 float alpha; | 366 float alpha; |
| 367 }; | 367 }; |
| 368 | 368 |
| 369 COMPILE_ASSERT(sizeof(BlendColor) == 20, | 369 COMPILE_ASSERT(sizeof(BlendColor) == 20, |
| 370 Sizeof_BlendColor_is_not_20); | 370 Sizeof_BlendColor_is_not_20); |
| 371 COMPILE_ASSERT(offsetof(BlendColor, header) == 0, | 371 COMPILE_ASSERT(offsetof(BlendColor, header) == 0, |
| 372 OffsetOf_BlendColor_header_not_0); | 372 OffsetOf_BlendColor_header_not_0); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 395 void Init(GLenum _mode) { | 395 void Init(GLenum _mode) { |
| 396 SetHeader(); | 396 SetHeader(); |
| 397 mode = _mode; | 397 mode = _mode; |
| 398 } | 398 } |
| 399 | 399 |
| 400 void* Set(void* cmd, GLenum _mode) { | 400 void* Set(void* cmd, GLenum _mode) { |
| 401 static_cast<ValueType*>(cmd)->Init(_mode); | 401 static_cast<ValueType*>(cmd)->Init(_mode); |
| 402 return NextCmdAddress<ValueType>(cmd); | 402 return NextCmdAddress<ValueType>(cmd); |
| 403 } | 403 } |
| 404 | 404 |
| 405 command_buffer::CommandHeader header; | 405 gpu::CommandHeader header; |
| 406 uint32 mode; | 406 uint32 mode; |
| 407 }; | 407 }; |
| 408 | 408 |
| 409 COMPILE_ASSERT(sizeof(BlendEquation) == 8, | 409 COMPILE_ASSERT(sizeof(BlendEquation) == 8, |
| 410 Sizeof_BlendEquation_is_not_8); | 410 Sizeof_BlendEquation_is_not_8); |
| 411 COMPILE_ASSERT(offsetof(BlendEquation, header) == 0, | 411 COMPILE_ASSERT(offsetof(BlendEquation, header) == 0, |
| 412 OffsetOf_BlendEquation_header_not_0); | 412 OffsetOf_BlendEquation_header_not_0); |
| 413 COMPILE_ASSERT(offsetof(BlendEquation, mode) == 4, | 413 COMPILE_ASSERT(offsetof(BlendEquation, mode) == 4, |
| 414 OffsetOf_BlendEquation_mode_not_4); | 414 OffsetOf_BlendEquation_mode_not_4); |
| 415 | 415 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 430 SetHeader(); | 430 SetHeader(); |
| 431 modeRGB = _modeRGB; | 431 modeRGB = _modeRGB; |
| 432 modeAlpha = _modeAlpha; | 432 modeAlpha = _modeAlpha; |
| 433 } | 433 } |
| 434 | 434 |
| 435 void* Set(void* cmd, GLenum _modeRGB, GLenum _modeAlpha) { | 435 void* Set(void* cmd, GLenum _modeRGB, GLenum _modeAlpha) { |
| 436 static_cast<ValueType*>(cmd)->Init(_modeRGB, _modeAlpha); | 436 static_cast<ValueType*>(cmd)->Init(_modeRGB, _modeAlpha); |
| 437 return NextCmdAddress<ValueType>(cmd); | 437 return NextCmdAddress<ValueType>(cmd); |
| 438 } | 438 } |
| 439 | 439 |
| 440 command_buffer::CommandHeader header; | 440 gpu::CommandHeader header; |
| 441 uint32 modeRGB; | 441 uint32 modeRGB; |
| 442 uint32 modeAlpha; | 442 uint32 modeAlpha; |
| 443 }; | 443 }; |
| 444 | 444 |
| 445 COMPILE_ASSERT(sizeof(BlendEquationSeparate) == 12, | 445 COMPILE_ASSERT(sizeof(BlendEquationSeparate) == 12, |
| 446 Sizeof_BlendEquationSeparate_is_not_12); | 446 Sizeof_BlendEquationSeparate_is_not_12); |
| 447 COMPILE_ASSERT(offsetof(BlendEquationSeparate, header) == 0, | 447 COMPILE_ASSERT(offsetof(BlendEquationSeparate, header) == 0, |
| 448 OffsetOf_BlendEquationSeparate_header_not_0); | 448 OffsetOf_BlendEquationSeparate_header_not_0); |
| 449 COMPILE_ASSERT(offsetof(BlendEquationSeparate, modeRGB) == 4, | 449 COMPILE_ASSERT(offsetof(BlendEquationSeparate, modeRGB) == 4, |
| 450 OffsetOf_BlendEquationSeparate_modeRGB_not_4); | 450 OffsetOf_BlendEquationSeparate_modeRGB_not_4); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 468 SetHeader(); | 468 SetHeader(); |
| 469 sfactor = _sfactor; | 469 sfactor = _sfactor; |
| 470 dfactor = _dfactor; | 470 dfactor = _dfactor; |
| 471 } | 471 } |
| 472 | 472 |
| 473 void* Set(void* cmd, GLenum _sfactor, GLenum _dfactor) { | 473 void* Set(void* cmd, GLenum _sfactor, GLenum _dfactor) { |
| 474 static_cast<ValueType*>(cmd)->Init(_sfactor, _dfactor); | 474 static_cast<ValueType*>(cmd)->Init(_sfactor, _dfactor); |
| 475 return NextCmdAddress<ValueType>(cmd); | 475 return NextCmdAddress<ValueType>(cmd); |
| 476 } | 476 } |
| 477 | 477 |
| 478 command_buffer::CommandHeader header; | 478 gpu::CommandHeader header; |
| 479 uint32 sfactor; | 479 uint32 sfactor; |
| 480 uint32 dfactor; | 480 uint32 dfactor; |
| 481 }; | 481 }; |
| 482 | 482 |
| 483 COMPILE_ASSERT(sizeof(BlendFunc) == 12, | 483 COMPILE_ASSERT(sizeof(BlendFunc) == 12, |
| 484 Sizeof_BlendFunc_is_not_12); | 484 Sizeof_BlendFunc_is_not_12); |
| 485 COMPILE_ASSERT(offsetof(BlendFunc, header) == 0, | 485 COMPILE_ASSERT(offsetof(BlendFunc, header) == 0, |
| 486 OffsetOf_BlendFunc_header_not_0); | 486 OffsetOf_BlendFunc_header_not_0); |
| 487 COMPILE_ASSERT(offsetof(BlendFunc, sfactor) == 4, | 487 COMPILE_ASSERT(offsetof(BlendFunc, sfactor) == 4, |
| 488 OffsetOf_BlendFunc_sfactor_not_4); | 488 OffsetOf_BlendFunc_sfactor_not_4); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 511 dstAlpha = _dstAlpha; | 511 dstAlpha = _dstAlpha; |
| 512 } | 512 } |
| 513 | 513 |
| 514 void* Set( | 514 void* Set( |
| 515 void* cmd, GLenum _srcRGB, GLenum _dstRGB, GLenum _srcAlpha, | 515 void* cmd, GLenum _srcRGB, GLenum _dstRGB, GLenum _srcAlpha, |
| 516 GLenum _dstAlpha) { | 516 GLenum _dstAlpha) { |
| 517 static_cast<ValueType*>(cmd)->Init(_srcRGB, _dstRGB, _srcAlpha, _dstAlpha); | 517 static_cast<ValueType*>(cmd)->Init(_srcRGB, _dstRGB, _srcAlpha, _dstAlpha); |
| 518 return NextCmdAddress<ValueType>(cmd); | 518 return NextCmdAddress<ValueType>(cmd); |
| 519 } | 519 } |
| 520 | 520 |
| 521 command_buffer::CommandHeader header; | 521 gpu::CommandHeader header; |
| 522 uint32 srcRGB; | 522 uint32 srcRGB; |
| 523 uint32 dstRGB; | 523 uint32 dstRGB; |
| 524 uint32 srcAlpha; | 524 uint32 srcAlpha; |
| 525 uint32 dstAlpha; | 525 uint32 dstAlpha; |
| 526 }; | 526 }; |
| 527 | 527 |
| 528 COMPILE_ASSERT(sizeof(BlendFuncSeparate) == 20, | 528 COMPILE_ASSERT(sizeof(BlendFuncSeparate) == 20, |
| 529 Sizeof_BlendFuncSeparate_is_not_20); | 529 Sizeof_BlendFuncSeparate_is_not_20); |
| 530 COMPILE_ASSERT(offsetof(BlendFuncSeparate, header) == 0, | 530 COMPILE_ASSERT(offsetof(BlendFuncSeparate, header) == 0, |
| 531 OffsetOf_BlendFuncSeparate_header_not_0); | 531 OffsetOf_BlendFuncSeparate_header_not_0); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 } | 563 } |
| 564 | 564 |
| 565 void* Set( | 565 void* Set( |
| 566 void* cmd, GLenum _target, GLsizeiptr _size, uint32 _data_shm_id, | 566 void* cmd, GLenum _target, GLsizeiptr _size, uint32 _data_shm_id, |
| 567 uint32 _data_shm_offset, GLenum _usage) { | 567 uint32 _data_shm_offset, GLenum _usage) { |
| 568 static_cast<ValueType*>( | 568 static_cast<ValueType*>( |
| 569 cmd)->Init(_target, _size, _data_shm_id, _data_shm_offset, _usage); | 569 cmd)->Init(_target, _size, _data_shm_id, _data_shm_offset, _usage); |
| 570 return NextCmdAddress<ValueType>(cmd); | 570 return NextCmdAddress<ValueType>(cmd); |
| 571 } | 571 } |
| 572 | 572 |
| 573 command_buffer::CommandHeader header; | 573 gpu::CommandHeader header; |
| 574 uint32 target; | 574 uint32 target; |
| 575 uint32 size; | 575 uint32 size; |
| 576 uint32 data_shm_id; | 576 uint32 data_shm_id; |
| 577 uint32 data_shm_offset; | 577 uint32 data_shm_offset; |
| 578 uint32 usage; | 578 uint32 usage; |
| 579 }; | 579 }; |
| 580 | 580 |
| 581 COMPILE_ASSERT(sizeof(BufferData) == 24, | 581 COMPILE_ASSERT(sizeof(BufferData) == 24, |
| 582 Sizeof_BufferData_is_not_24); | 582 Sizeof_BufferData_is_not_24); |
| 583 COMPILE_ASSERT(offsetof(BufferData, header) == 0, | 583 COMPILE_ASSERT(offsetof(BufferData, header) == 0, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 size = _size; | 615 size = _size; |
| 616 usage = _usage; | 616 usage = _usage; |
| 617 } | 617 } |
| 618 | 618 |
| 619 void* Set(void* cmd, GLenum _target, GLsizeiptr _size, GLenum _usage) { | 619 void* Set(void* cmd, GLenum _target, GLsizeiptr _size, GLenum _usage) { |
| 620 uint32 total_size = 0; // TODO(gman): get correct size. | 620 uint32 total_size = 0; // TODO(gman): get correct size. |
| 621 static_cast<ValueType*>(cmd)->Init(_target, _size, _usage); | 621 static_cast<ValueType*>(cmd)->Init(_target, _size, _usage); |
| 622 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); | 622 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); |
| 623 } | 623 } |
| 624 | 624 |
| 625 command_buffer::CommandHeader header; | 625 gpu::CommandHeader header; |
| 626 uint32 target; | 626 uint32 target; |
| 627 uint32 size; | 627 uint32 size; |
| 628 uint32 usage; | 628 uint32 usage; |
| 629 }; | 629 }; |
| 630 | 630 |
| 631 COMPILE_ASSERT(sizeof(BufferDataImmediate) == 16, | 631 COMPILE_ASSERT(sizeof(BufferDataImmediate) == 16, |
| 632 Sizeof_BufferDataImmediate_is_not_16); | 632 Sizeof_BufferDataImmediate_is_not_16); |
| 633 COMPILE_ASSERT(offsetof(BufferDataImmediate, header) == 0, | 633 COMPILE_ASSERT(offsetof(BufferDataImmediate, header) == 0, |
| 634 OffsetOf_BufferDataImmediate_header_not_0); | 634 OffsetOf_BufferDataImmediate_header_not_0); |
| 635 COMPILE_ASSERT(offsetof(BufferDataImmediate, target) == 4, | 635 COMPILE_ASSERT(offsetof(BufferDataImmediate, target) == 4, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 664 } | 664 } |
| 665 | 665 |
| 666 void* Set( | 666 void* Set( |
| 667 void* cmd, GLenum _target, GLintptr _offset, GLsizeiptr _size, | 667 void* cmd, GLenum _target, GLintptr _offset, GLsizeiptr _size, |
| 668 uint32 _data_shm_id, uint32 _data_shm_offset) { | 668 uint32 _data_shm_id, uint32 _data_shm_offset) { |
| 669 static_cast<ValueType*>( | 669 static_cast<ValueType*>( |
| 670 cmd)->Init(_target, _offset, _size, _data_shm_id, _data_shm_offset); | 670 cmd)->Init(_target, _offset, _size, _data_shm_id, _data_shm_offset); |
| 671 return NextCmdAddress<ValueType>(cmd); | 671 return NextCmdAddress<ValueType>(cmd); |
| 672 } | 672 } |
| 673 | 673 |
| 674 command_buffer::CommandHeader header; | 674 gpu::CommandHeader header; |
| 675 uint32 target; | 675 uint32 target; |
| 676 uint32 offset; | 676 uint32 offset; |
| 677 uint32 size; | 677 uint32 size; |
| 678 uint32 data_shm_id; | 678 uint32 data_shm_id; |
| 679 uint32 data_shm_offset; | 679 uint32 data_shm_offset; |
| 680 }; | 680 }; |
| 681 | 681 |
| 682 COMPILE_ASSERT(sizeof(BufferSubData) == 24, | 682 COMPILE_ASSERT(sizeof(BufferSubData) == 24, |
| 683 Sizeof_BufferSubData_is_not_24); | 683 Sizeof_BufferSubData_is_not_24); |
| 684 COMPILE_ASSERT(offsetof(BufferSubData, header) == 0, | 684 COMPILE_ASSERT(offsetof(BufferSubData, header) == 0, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 offset = _offset; | 716 offset = _offset; |
| 717 size = _size; | 717 size = _size; |
| 718 } | 718 } |
| 719 | 719 |
| 720 void* Set(void* cmd, GLenum _target, GLintptr _offset, GLsizeiptr _size) { | 720 void* Set(void* cmd, GLenum _target, GLintptr _offset, GLsizeiptr _size) { |
| 721 uint32 total_size = ComputeSize(_size); | 721 uint32 total_size = ComputeSize(_size); |
| 722 static_cast<ValueType*>(cmd)->Init(_target, _offset, _size); | 722 static_cast<ValueType*>(cmd)->Init(_target, _offset, _size); |
| 723 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); | 723 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); |
| 724 } | 724 } |
| 725 | 725 |
| 726 command_buffer::CommandHeader header; | 726 gpu::CommandHeader header; |
| 727 uint32 target; | 727 uint32 target; |
| 728 uint32 offset; | 728 uint32 offset; |
| 729 uint32 size; | 729 uint32 size; |
| 730 }; | 730 }; |
| 731 | 731 |
| 732 COMPILE_ASSERT(sizeof(BufferSubDataImmediate) == 16, | 732 COMPILE_ASSERT(sizeof(BufferSubDataImmediate) == 16, |
| 733 Sizeof_BufferSubDataImmediate_is_not_16); | 733 Sizeof_BufferSubDataImmediate_is_not_16); |
| 734 COMPILE_ASSERT(offsetof(BufferSubDataImmediate, header) == 0, | 734 COMPILE_ASSERT(offsetof(BufferSubDataImmediate, header) == 0, |
| 735 OffsetOf_BufferSubDataImmediate_header_not_0); | 735 OffsetOf_BufferSubDataImmediate_header_not_0); |
| 736 COMPILE_ASSERT(offsetof(BufferSubDataImmediate, target) == 4, | 736 COMPILE_ASSERT(offsetof(BufferSubDataImmediate, target) == 4, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 756 void Init(GLenum _target) { | 756 void Init(GLenum _target) { |
| 757 SetHeader(); | 757 SetHeader(); |
| 758 target = _target; | 758 target = _target; |
| 759 } | 759 } |
| 760 | 760 |
| 761 void* Set(void* cmd, GLenum _target) { | 761 void* Set(void* cmd, GLenum _target) { |
| 762 static_cast<ValueType*>(cmd)->Init(_target); | 762 static_cast<ValueType*>(cmd)->Init(_target); |
| 763 return NextCmdAddress<ValueType>(cmd); | 763 return NextCmdAddress<ValueType>(cmd); |
| 764 } | 764 } |
| 765 | 765 |
| 766 command_buffer::CommandHeader header; | 766 gpu::CommandHeader header; |
| 767 uint32 target; | 767 uint32 target; |
| 768 }; | 768 }; |
| 769 | 769 |
| 770 COMPILE_ASSERT(sizeof(CheckFramebufferStatus) == 8, | 770 COMPILE_ASSERT(sizeof(CheckFramebufferStatus) == 8, |
| 771 Sizeof_CheckFramebufferStatus_is_not_8); | 771 Sizeof_CheckFramebufferStatus_is_not_8); |
| 772 COMPILE_ASSERT(offsetof(CheckFramebufferStatus, header) == 0, | 772 COMPILE_ASSERT(offsetof(CheckFramebufferStatus, header) == 0, |
| 773 OffsetOf_CheckFramebufferStatus_header_not_0); | 773 OffsetOf_CheckFramebufferStatus_header_not_0); |
| 774 COMPILE_ASSERT(offsetof(CheckFramebufferStatus, target) == 4, | 774 COMPILE_ASSERT(offsetof(CheckFramebufferStatus, target) == 4, |
| 775 OffsetOf_CheckFramebufferStatus_target_not_4); | 775 OffsetOf_CheckFramebufferStatus_target_not_4); |
| 776 | 776 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 790 void Init(GLbitfield _mask) { | 790 void Init(GLbitfield _mask) { |
| 791 SetHeader(); | 791 SetHeader(); |
| 792 mask = _mask; | 792 mask = _mask; |
| 793 } | 793 } |
| 794 | 794 |
| 795 void* Set(void* cmd, GLbitfield _mask) { | 795 void* Set(void* cmd, GLbitfield _mask) { |
| 796 static_cast<ValueType*>(cmd)->Init(_mask); | 796 static_cast<ValueType*>(cmd)->Init(_mask); |
| 797 return NextCmdAddress<ValueType>(cmd); | 797 return NextCmdAddress<ValueType>(cmd); |
| 798 } | 798 } |
| 799 | 799 |
| 800 command_buffer::CommandHeader header; | 800 gpu::CommandHeader header; |
| 801 uint32 mask; | 801 uint32 mask; |
| 802 }; | 802 }; |
| 803 | 803 |
| 804 COMPILE_ASSERT(sizeof(Clear) == 8, | 804 COMPILE_ASSERT(sizeof(Clear) == 8, |
| 805 Sizeof_Clear_is_not_8); | 805 Sizeof_Clear_is_not_8); |
| 806 COMPILE_ASSERT(offsetof(Clear, header) == 0, | 806 COMPILE_ASSERT(offsetof(Clear, header) == 0, |
| 807 OffsetOf_Clear_header_not_0); | 807 OffsetOf_Clear_header_not_0); |
| 808 COMPILE_ASSERT(offsetof(Clear, mask) == 4, | 808 COMPILE_ASSERT(offsetof(Clear, mask) == 4, |
| 809 OffsetOf_Clear_mask_not_4); | 809 OffsetOf_Clear_mask_not_4); |
| 810 | 810 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 829 alpha = _alpha; | 829 alpha = _alpha; |
| 830 } | 830 } |
| 831 | 831 |
| 832 void* Set( | 832 void* Set( |
| 833 void* cmd, GLclampf _red, GLclampf _green, GLclampf _blue, | 833 void* cmd, GLclampf _red, GLclampf _green, GLclampf _blue, |
| 834 GLclampf _alpha) { | 834 GLclampf _alpha) { |
| 835 static_cast<ValueType*>(cmd)->Init(_red, _green, _blue, _alpha); | 835 static_cast<ValueType*>(cmd)->Init(_red, _green, _blue, _alpha); |
| 836 return NextCmdAddress<ValueType>(cmd); | 836 return NextCmdAddress<ValueType>(cmd); |
| 837 } | 837 } |
| 838 | 838 |
| 839 command_buffer::CommandHeader header; | 839 gpu::CommandHeader header; |
| 840 float red; | 840 float red; |
| 841 float green; | 841 float green; |
| 842 float blue; | 842 float blue; |
| 843 float alpha; | 843 float alpha; |
| 844 }; | 844 }; |
| 845 | 845 |
| 846 COMPILE_ASSERT(sizeof(ClearColor) == 20, | 846 COMPILE_ASSERT(sizeof(ClearColor) == 20, |
| 847 Sizeof_ClearColor_is_not_20); | 847 Sizeof_ClearColor_is_not_20); |
| 848 COMPILE_ASSERT(offsetof(ClearColor, header) == 0, | 848 COMPILE_ASSERT(offsetof(ClearColor, header) == 0, |
| 849 OffsetOf_ClearColor_header_not_0); | 849 OffsetOf_ClearColor_header_not_0); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 872 void Init(GLclampf _depth) { | 872 void Init(GLclampf _depth) { |
| 873 SetHeader(); | 873 SetHeader(); |
| 874 depth = _depth; | 874 depth = _depth; |
| 875 } | 875 } |
| 876 | 876 |
| 877 void* Set(void* cmd, GLclampf _depth) { | 877 void* Set(void* cmd, GLclampf _depth) { |
| 878 static_cast<ValueType*>(cmd)->Init(_depth); | 878 static_cast<ValueType*>(cmd)->Init(_depth); |
| 879 return NextCmdAddress<ValueType>(cmd); | 879 return NextCmdAddress<ValueType>(cmd); |
| 880 } | 880 } |
| 881 | 881 |
| 882 command_buffer::CommandHeader header; | 882 gpu::CommandHeader header; |
| 883 float depth; | 883 float depth; |
| 884 }; | 884 }; |
| 885 | 885 |
| 886 COMPILE_ASSERT(sizeof(ClearDepthf) == 8, | 886 COMPILE_ASSERT(sizeof(ClearDepthf) == 8, |
| 887 Sizeof_ClearDepthf_is_not_8); | 887 Sizeof_ClearDepthf_is_not_8); |
| 888 COMPILE_ASSERT(offsetof(ClearDepthf, header) == 0, | 888 COMPILE_ASSERT(offsetof(ClearDepthf, header) == 0, |
| 889 OffsetOf_ClearDepthf_header_not_0); | 889 OffsetOf_ClearDepthf_header_not_0); |
| 890 COMPILE_ASSERT(offsetof(ClearDepthf, depth) == 4, | 890 COMPILE_ASSERT(offsetof(ClearDepthf, depth) == 4, |
| 891 OffsetOf_ClearDepthf_depth_not_4); | 891 OffsetOf_ClearDepthf_depth_not_4); |
| 892 | 892 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 906 void Init(GLint _s) { | 906 void Init(GLint _s) { |
| 907 SetHeader(); | 907 SetHeader(); |
| 908 s = _s; | 908 s = _s; |
| 909 } | 909 } |
| 910 | 910 |
| 911 void* Set(void* cmd, GLint _s) { | 911 void* Set(void* cmd, GLint _s) { |
| 912 static_cast<ValueType*>(cmd)->Init(_s); | 912 static_cast<ValueType*>(cmd)->Init(_s); |
| 913 return NextCmdAddress<ValueType>(cmd); | 913 return NextCmdAddress<ValueType>(cmd); |
| 914 } | 914 } |
| 915 | 915 |
| 916 command_buffer::CommandHeader header; | 916 gpu::CommandHeader header; |
| 917 uint32 s; | 917 uint32 s; |
| 918 }; | 918 }; |
| 919 | 919 |
| 920 COMPILE_ASSERT(sizeof(ClearStencil) == 8, | 920 COMPILE_ASSERT(sizeof(ClearStencil) == 8, |
| 921 Sizeof_ClearStencil_is_not_8); | 921 Sizeof_ClearStencil_is_not_8); |
| 922 COMPILE_ASSERT(offsetof(ClearStencil, header) == 0, | 922 COMPILE_ASSERT(offsetof(ClearStencil, header) == 0, |
| 923 OffsetOf_ClearStencil_header_not_0); | 923 OffsetOf_ClearStencil_header_not_0); |
| 924 COMPILE_ASSERT(offsetof(ClearStencil, s) == 4, | 924 COMPILE_ASSERT(offsetof(ClearStencil, s) == 4, |
| 925 OffsetOf_ClearStencil_s_not_4); | 925 OffsetOf_ClearStencil_s_not_4); |
| 926 | 926 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 946 alpha = _alpha; | 946 alpha = _alpha; |
| 947 } | 947 } |
| 948 | 948 |
| 949 void* Set( | 949 void* Set( |
| 950 void* cmd, GLboolean _red, GLboolean _green, GLboolean _blue, | 950 void* cmd, GLboolean _red, GLboolean _green, GLboolean _blue, |
| 951 GLboolean _alpha) { | 951 GLboolean _alpha) { |
| 952 static_cast<ValueType*>(cmd)->Init(_red, _green, _blue, _alpha); | 952 static_cast<ValueType*>(cmd)->Init(_red, _green, _blue, _alpha); |
| 953 return NextCmdAddress<ValueType>(cmd); | 953 return NextCmdAddress<ValueType>(cmd); |
| 954 } | 954 } |
| 955 | 955 |
| 956 command_buffer::CommandHeader header; | 956 gpu::CommandHeader header; |
| 957 uint32 red; | 957 uint32 red; |
| 958 uint32 green; | 958 uint32 green; |
| 959 uint32 blue; | 959 uint32 blue; |
| 960 uint32 alpha; | 960 uint32 alpha; |
| 961 }; | 961 }; |
| 962 | 962 |
| 963 COMPILE_ASSERT(sizeof(ColorMask) == 20, | 963 COMPILE_ASSERT(sizeof(ColorMask) == 20, |
| 964 Sizeof_ColorMask_is_not_20); | 964 Sizeof_ColorMask_is_not_20); |
| 965 COMPILE_ASSERT(offsetof(ColorMask, header) == 0, | 965 COMPILE_ASSERT(offsetof(ColorMask, header) == 0, |
| 966 OffsetOf_ColorMask_header_not_0); | 966 OffsetOf_ColorMask_header_not_0); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 989 void Init(GLuint _shader) { | 989 void Init(GLuint _shader) { |
| 990 SetHeader(); | 990 SetHeader(); |
| 991 shader = _shader; | 991 shader = _shader; |
| 992 } | 992 } |
| 993 | 993 |
| 994 void* Set(void* cmd, GLuint _shader) { | 994 void* Set(void* cmd, GLuint _shader) { |
| 995 static_cast<ValueType*>(cmd)->Init(_shader); | 995 static_cast<ValueType*>(cmd)->Init(_shader); |
| 996 return NextCmdAddress<ValueType>(cmd); | 996 return NextCmdAddress<ValueType>(cmd); |
| 997 } | 997 } |
| 998 | 998 |
| 999 command_buffer::CommandHeader header; | 999 gpu::CommandHeader header; |
| 1000 uint32 shader; | 1000 uint32 shader; |
| 1001 }; | 1001 }; |
| 1002 | 1002 |
| 1003 COMPILE_ASSERT(sizeof(CompileShader) == 8, | 1003 COMPILE_ASSERT(sizeof(CompileShader) == 8, |
| 1004 Sizeof_CompileShader_is_not_8); | 1004 Sizeof_CompileShader_is_not_8); |
| 1005 COMPILE_ASSERT(offsetof(CompileShader, header) == 0, | 1005 COMPILE_ASSERT(offsetof(CompileShader, header) == 0, |
| 1006 OffsetOf_CompileShader_header_not_0); | 1006 OffsetOf_CompileShader_header_not_0); |
| 1007 COMPILE_ASSERT(offsetof(CompileShader, shader) == 4, | 1007 COMPILE_ASSERT(offsetof(CompileShader, shader) == 4, |
| 1008 OffsetOf_CompileShader_shader_not_4); | 1008 OffsetOf_CompileShader_shader_not_4); |
| 1009 | 1009 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1040 void* cmd, GLenum _target, GLint _level, GLenum _internalformat, | 1040 void* cmd, GLenum _target, GLint _level, GLenum _internalformat, |
| 1041 GLsizei _width, GLsizei _height, GLint _border, GLsizei _imageSize, | 1041 GLsizei _width, GLsizei _height, GLint _border, GLsizei _imageSize, |
| 1042 uint32 _data_shm_id, uint32 _data_shm_offset) { | 1042 uint32 _data_shm_id, uint32 _data_shm_offset) { |
| 1043 static_cast<ValueType*>( | 1043 static_cast<ValueType*>( |
| 1044 cmd)->Init( | 1044 cmd)->Init( |
| 1045 _target, _level, _internalformat, _width, _height, _border, | 1045 _target, _level, _internalformat, _width, _height, _border, |
| 1046 _imageSize, _data_shm_id, _data_shm_offset); | 1046 _imageSize, _data_shm_id, _data_shm_offset); |
| 1047 return NextCmdAddress<ValueType>(cmd); | 1047 return NextCmdAddress<ValueType>(cmd); |
| 1048 } | 1048 } |
| 1049 | 1049 |
| 1050 command_buffer::CommandHeader header; | 1050 gpu::CommandHeader header; |
| 1051 uint32 target; | 1051 uint32 target; |
| 1052 uint32 level; | 1052 uint32 level; |
| 1053 uint32 internalformat; | 1053 uint32 internalformat; |
| 1054 uint32 width; | 1054 uint32 width; |
| 1055 uint32 height; | 1055 uint32 height; |
| 1056 uint32 border; | 1056 uint32 border; |
| 1057 uint32 imageSize; | 1057 uint32 imageSize; |
| 1058 uint32 data_shm_id; | 1058 uint32 data_shm_id; |
| 1059 uint32 data_shm_offset; | 1059 uint32 data_shm_offset; |
| 1060 }; | 1060 }; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 void* cmd, GLenum _target, GLint _level, GLenum _internalformat, | 1115 void* cmd, GLenum _target, GLint _level, GLenum _internalformat, |
| 1116 GLsizei _width, GLsizei _height, GLint _border, GLsizei _imageSize) { | 1116 GLsizei _width, GLsizei _height, GLint _border, GLsizei _imageSize) { |
| 1117 uint32 total_size = 0; // TODO(gman): get correct size. | 1117 uint32 total_size = 0; // TODO(gman): get correct size. |
| 1118 static_cast<ValueType*>( | 1118 static_cast<ValueType*>( |
| 1119 cmd)->Init( | 1119 cmd)->Init( |
| 1120 _target, _level, _internalformat, _width, _height, _border, | 1120 _target, _level, _internalformat, _width, _height, _border, |
| 1121 _imageSize); | 1121 _imageSize); |
| 1122 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); | 1122 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); |
| 1123 } | 1123 } |
| 1124 | 1124 |
| 1125 command_buffer::CommandHeader header; | 1125 gpu::CommandHeader header; |
| 1126 uint32 target; | 1126 uint32 target; |
| 1127 uint32 level; | 1127 uint32 level; |
| 1128 uint32 internalformat; | 1128 uint32 internalformat; |
| 1129 uint32 width; | 1129 uint32 width; |
| 1130 uint32 height; | 1130 uint32 height; |
| 1131 uint32 border; | 1131 uint32 border; |
| 1132 uint32 imageSize; | 1132 uint32 imageSize; |
| 1133 }; | 1133 }; |
| 1134 | 1134 |
| 1135 COMPILE_ASSERT(sizeof(CompressedTexImage2DImmediate) == 32, | 1135 COMPILE_ASSERT(sizeof(CompressedTexImage2DImmediate) == 32, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, | 1185 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, |
| 1186 GLsizei _width, GLsizei _height, GLenum _format, GLsizei _imageSize, | 1186 GLsizei _width, GLsizei _height, GLenum _format, GLsizei _imageSize, |
| 1187 uint32 _data_shm_id, uint32 _data_shm_offset) { | 1187 uint32 _data_shm_id, uint32 _data_shm_offset) { |
| 1188 static_cast<ValueType*>( | 1188 static_cast<ValueType*>( |
| 1189 cmd)->Init( | 1189 cmd)->Init( |
| 1190 _target, _level, _xoffset, _yoffset, _width, _height, _format, | 1190 _target, _level, _xoffset, _yoffset, _width, _height, _format, |
| 1191 _imageSize, _data_shm_id, _data_shm_offset); | 1191 _imageSize, _data_shm_id, _data_shm_offset); |
| 1192 return NextCmdAddress<ValueType>(cmd); | 1192 return NextCmdAddress<ValueType>(cmd); |
| 1193 } | 1193 } |
| 1194 | 1194 |
| 1195 command_buffer::CommandHeader header; | 1195 gpu::CommandHeader header; |
| 1196 uint32 target; | 1196 uint32 target; |
| 1197 uint32 level; | 1197 uint32 level; |
| 1198 uint32 xoffset; | 1198 uint32 xoffset; |
| 1199 uint32 yoffset; | 1199 uint32 yoffset; |
| 1200 uint32 width; | 1200 uint32 width; |
| 1201 uint32 height; | 1201 uint32 height; |
| 1202 uint32 format; | 1202 uint32 format; |
| 1203 uint32 imageSize; | 1203 uint32 imageSize; |
| 1204 uint32 data_shm_id; | 1204 uint32 data_shm_id; |
| 1205 uint32 data_shm_offset; | 1205 uint32 data_shm_offset; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1264 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, | 1264 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, |
| 1265 GLsizei _width, GLsizei _height, GLenum _format, GLsizei _imageSize) { | 1265 GLsizei _width, GLsizei _height, GLenum _format, GLsizei _imageSize) { |
| 1266 uint32 total_size = ComputeSize(_imageSize); | 1266 uint32 total_size = ComputeSize(_imageSize); |
| 1267 static_cast<ValueType*>( | 1267 static_cast<ValueType*>( |
| 1268 cmd)->Init( | 1268 cmd)->Init( |
| 1269 _target, _level, _xoffset, _yoffset, _width, _height, _format, | 1269 _target, _level, _xoffset, _yoffset, _width, _height, _format, |
| 1270 _imageSize); | 1270 _imageSize); |
| 1271 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); | 1271 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); |
| 1272 } | 1272 } |
| 1273 | 1273 |
| 1274 command_buffer::CommandHeader header; | 1274 gpu::CommandHeader header; |
| 1275 uint32 target; | 1275 uint32 target; |
| 1276 uint32 level; | 1276 uint32 level; |
| 1277 uint32 xoffset; | 1277 uint32 xoffset; |
| 1278 uint32 yoffset; | 1278 uint32 yoffset; |
| 1279 uint32 width; | 1279 uint32 width; |
| 1280 uint32 height; | 1280 uint32 height; |
| 1281 uint32 format; | 1281 uint32 format; |
| 1282 uint32 imageSize; | 1282 uint32 imageSize; |
| 1283 }; | 1283 }; |
| 1284 | 1284 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 void* Set( | 1333 void* Set( |
| 1334 void* cmd, GLenum _target, GLint _level, GLenum _internalformat, GLint _x, | 1334 void* cmd, GLenum _target, GLint _level, GLenum _internalformat, GLint _x, |
| 1335 GLint _y, GLsizei _width, GLsizei _height, GLint _border) { | 1335 GLint _y, GLsizei _width, GLsizei _height, GLint _border) { |
| 1336 static_cast<ValueType*>( | 1336 static_cast<ValueType*>( |
| 1337 cmd)->Init( | 1337 cmd)->Init( |
| 1338 _target, _level, _internalformat, _x, _y, _width, _height, | 1338 _target, _level, _internalformat, _x, _y, _width, _height, |
| 1339 _border); | 1339 _border); |
| 1340 return NextCmdAddress<ValueType>(cmd); | 1340 return NextCmdAddress<ValueType>(cmd); |
| 1341 } | 1341 } |
| 1342 | 1342 |
| 1343 command_buffer::CommandHeader header; | 1343 gpu::CommandHeader header; |
| 1344 uint32 target; | 1344 uint32 target; |
| 1345 uint32 level; | 1345 uint32 level; |
| 1346 uint32 internalformat; | 1346 uint32 internalformat; |
| 1347 uint32 x; | 1347 uint32 x; |
| 1348 uint32 y; | 1348 uint32 y; |
| 1349 uint32 width; | 1349 uint32 width; |
| 1350 uint32 height; | 1350 uint32 height; |
| 1351 uint32 border; | 1351 uint32 border; |
| 1352 }; | 1352 }; |
| 1353 | 1353 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1401 | 1401 |
| 1402 void* Set( | 1402 void* Set( |
| 1403 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, | 1403 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, |
| 1404 GLint _x, GLint _y, GLsizei _width, GLsizei _height) { | 1404 GLint _x, GLint _y, GLsizei _width, GLsizei _height) { |
| 1405 static_cast<ValueType*>( | 1405 static_cast<ValueType*>( |
| 1406 cmd)->Init( | 1406 cmd)->Init( |
| 1407 _target, _level, _xoffset, _yoffset, _x, _y, _width, _height); | 1407 _target, _level, _xoffset, _yoffset, _x, _y, _width, _height); |
| 1408 return NextCmdAddress<ValueType>(cmd); | 1408 return NextCmdAddress<ValueType>(cmd); |
| 1409 } | 1409 } |
| 1410 | 1410 |
| 1411 command_buffer::CommandHeader header; | 1411 gpu::CommandHeader header; |
| 1412 uint32 target; | 1412 uint32 target; |
| 1413 uint32 level; | 1413 uint32 level; |
| 1414 uint32 xoffset; | 1414 uint32 xoffset; |
| 1415 uint32 yoffset; | 1415 uint32 yoffset; |
| 1416 uint32 x; | 1416 uint32 x; |
| 1417 uint32 y; | 1417 uint32 y; |
| 1418 uint32 width; | 1418 uint32 width; |
| 1419 uint32 height; | 1419 uint32 height; |
| 1420 }; | 1420 }; |
| 1421 | 1421 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1456 void Init(uint32 _client_id) { | 1456 void Init(uint32 _client_id) { |
| 1457 SetHeader(); | 1457 SetHeader(); |
| 1458 client_id = _client_id; | 1458 client_id = _client_id; |
| 1459 } | 1459 } |
| 1460 | 1460 |
| 1461 void* Set(void* cmd, uint32 _client_id) { | 1461 void* Set(void* cmd, uint32 _client_id) { |
| 1462 static_cast<ValueType*>(cmd)->Init(_client_id); | 1462 static_cast<ValueType*>(cmd)->Init(_client_id); |
| 1463 return NextCmdAddress<ValueType>(cmd); | 1463 return NextCmdAddress<ValueType>(cmd); |
| 1464 } | 1464 } |
| 1465 | 1465 |
| 1466 command_buffer::CommandHeader header; | 1466 gpu::CommandHeader header; |
| 1467 uint32 client_id; | 1467 uint32 client_id; |
| 1468 }; | 1468 }; |
| 1469 | 1469 |
| 1470 COMPILE_ASSERT(sizeof(CreateProgram) == 8, | 1470 COMPILE_ASSERT(sizeof(CreateProgram) == 8, |
| 1471 Sizeof_CreateProgram_is_not_8); | 1471 Sizeof_CreateProgram_is_not_8); |
| 1472 COMPILE_ASSERT(offsetof(CreateProgram, header) == 0, | 1472 COMPILE_ASSERT(offsetof(CreateProgram, header) == 0, |
| 1473 OffsetOf_CreateProgram_header_not_0); | 1473 OffsetOf_CreateProgram_header_not_0); |
| 1474 COMPILE_ASSERT(offsetof(CreateProgram, client_id) == 4, | 1474 COMPILE_ASSERT(offsetof(CreateProgram, client_id) == 4, |
| 1475 OffsetOf_CreateProgram_client_id_not_4); | 1475 OffsetOf_CreateProgram_client_id_not_4); |
| 1476 | 1476 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1491 SetHeader(); | 1491 SetHeader(); |
| 1492 type = _type; | 1492 type = _type; |
| 1493 client_id = _client_id; | 1493 client_id = _client_id; |
| 1494 } | 1494 } |
| 1495 | 1495 |
| 1496 void* Set(void* cmd, GLenum _type, uint32 _client_id) { | 1496 void* Set(void* cmd, GLenum _type, uint32 _client_id) { |
| 1497 static_cast<ValueType*>(cmd)->Init(_type, _client_id); | 1497 static_cast<ValueType*>(cmd)->Init(_type, _client_id); |
| 1498 return NextCmdAddress<ValueType>(cmd); | 1498 return NextCmdAddress<ValueType>(cmd); |
| 1499 } | 1499 } |
| 1500 | 1500 |
| 1501 command_buffer::CommandHeader header; | 1501 gpu::CommandHeader header; |
| 1502 uint32 type; | 1502 uint32 type; |
| 1503 uint32 client_id; | 1503 uint32 client_id; |
| 1504 }; | 1504 }; |
| 1505 | 1505 |
| 1506 COMPILE_ASSERT(sizeof(CreateShader) == 12, | 1506 COMPILE_ASSERT(sizeof(CreateShader) == 12, |
| 1507 Sizeof_CreateShader_is_not_12); | 1507 Sizeof_CreateShader_is_not_12); |
| 1508 COMPILE_ASSERT(offsetof(CreateShader, header) == 0, | 1508 COMPILE_ASSERT(offsetof(CreateShader, header) == 0, |
| 1509 OffsetOf_CreateShader_header_not_0); | 1509 OffsetOf_CreateShader_header_not_0); |
| 1510 COMPILE_ASSERT(offsetof(CreateShader, type) == 4, | 1510 COMPILE_ASSERT(offsetof(CreateShader, type) == 4, |
| 1511 OffsetOf_CreateShader_type_not_4); | 1511 OffsetOf_CreateShader_type_not_4); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1528 void Init(GLenum _mode) { | 1528 void Init(GLenum _mode) { |
| 1529 SetHeader(); | 1529 SetHeader(); |
| 1530 mode = _mode; | 1530 mode = _mode; |
| 1531 } | 1531 } |
| 1532 | 1532 |
| 1533 void* Set(void* cmd, GLenum _mode) { | 1533 void* Set(void* cmd, GLenum _mode) { |
| 1534 static_cast<ValueType*>(cmd)->Init(_mode); | 1534 static_cast<ValueType*>(cmd)->Init(_mode); |
| 1535 return NextCmdAddress<ValueType>(cmd); | 1535 return NextCmdAddress<ValueType>(cmd); |
| 1536 } | 1536 } |
| 1537 | 1537 |
| 1538 command_buffer::CommandHeader header; | 1538 gpu::CommandHeader header; |
| 1539 uint32 mode; | 1539 uint32 mode; |
| 1540 }; | 1540 }; |
| 1541 | 1541 |
| 1542 COMPILE_ASSERT(sizeof(CullFace) == 8, | 1542 COMPILE_ASSERT(sizeof(CullFace) == 8, |
| 1543 Sizeof_CullFace_is_not_8); | 1543 Sizeof_CullFace_is_not_8); |
| 1544 COMPILE_ASSERT(offsetof(CullFace, header) == 0, | 1544 COMPILE_ASSERT(offsetof(CullFace, header) == 0, |
| 1545 OffsetOf_CullFace_header_not_0); | 1545 OffsetOf_CullFace_header_not_0); |
| 1546 COMPILE_ASSERT(offsetof(CullFace, mode) == 4, | 1546 COMPILE_ASSERT(offsetof(CullFace, mode) == 4, |
| 1547 OffsetOf_CullFace_mode_not_4); | 1547 OffsetOf_CullFace_mode_not_4); |
| 1548 | 1548 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1567 } | 1567 } |
| 1568 | 1568 |
| 1569 void* Set( | 1569 void* Set( |
| 1570 void* cmd, GLsizei _n, uint32 _buffers_shm_id, | 1570 void* cmd, GLsizei _n, uint32 _buffers_shm_id, |
| 1571 uint32 _buffers_shm_offset) { | 1571 uint32 _buffers_shm_offset) { |
| 1572 static_cast<ValueType*>( | 1572 static_cast<ValueType*>( |
| 1573 cmd)->Init(_n, _buffers_shm_id, _buffers_shm_offset); | 1573 cmd)->Init(_n, _buffers_shm_id, _buffers_shm_offset); |
| 1574 return NextCmdAddress<ValueType>(cmd); | 1574 return NextCmdAddress<ValueType>(cmd); |
| 1575 } | 1575 } |
| 1576 | 1576 |
| 1577 command_buffer::CommandHeader header; | 1577 gpu::CommandHeader header; |
| 1578 uint32 n; | 1578 uint32 n; |
| 1579 uint32 buffers_shm_id; | 1579 uint32 buffers_shm_id; |
| 1580 uint32 buffers_shm_offset; | 1580 uint32 buffers_shm_offset; |
| 1581 }; | 1581 }; |
| 1582 | 1582 |
| 1583 COMPILE_ASSERT(sizeof(DeleteBuffers) == 16, | 1583 COMPILE_ASSERT(sizeof(DeleteBuffers) == 16, |
| 1584 Sizeof_DeleteBuffers_is_not_16); | 1584 Sizeof_DeleteBuffers_is_not_16); |
| 1585 COMPILE_ASSERT(offsetof(DeleteBuffers, header) == 0, | 1585 COMPILE_ASSERT(offsetof(DeleteBuffers, header) == 0, |
| 1586 OffsetOf_DeleteBuffers_header_not_0); | 1586 OffsetOf_DeleteBuffers_header_not_0); |
| 1587 COMPILE_ASSERT(offsetof(DeleteBuffers, n) == 4, | 1587 COMPILE_ASSERT(offsetof(DeleteBuffers, n) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1615 memcpy(ImmediateDataAddress(this), | 1615 memcpy(ImmediateDataAddress(this), |
| 1616 _buffers, ComputeDataSize(_n)); | 1616 _buffers, ComputeDataSize(_n)); |
| 1617 } | 1617 } |
| 1618 | 1618 |
| 1619 void* Set(void* cmd, GLsizei _n, const GLuint* _buffers) { | 1619 void* Set(void* cmd, GLsizei _n, const GLuint* _buffers) { |
| 1620 static_cast<ValueType*>(cmd)->Init(_n, _buffers); | 1620 static_cast<ValueType*>(cmd)->Init(_n, _buffers); |
| 1621 const uint32 size = ComputeSize(_n); | 1621 const uint32 size = ComputeSize(_n); |
| 1622 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 1622 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 1623 } | 1623 } |
| 1624 | 1624 |
| 1625 command_buffer::CommandHeader header; | 1625 gpu::CommandHeader header; |
| 1626 uint32 n; | 1626 uint32 n; |
| 1627 }; | 1627 }; |
| 1628 | 1628 |
| 1629 COMPILE_ASSERT(sizeof(DeleteBuffersImmediate) == 8, | 1629 COMPILE_ASSERT(sizeof(DeleteBuffersImmediate) == 8, |
| 1630 Sizeof_DeleteBuffersImmediate_is_not_8); | 1630 Sizeof_DeleteBuffersImmediate_is_not_8); |
| 1631 COMPILE_ASSERT(offsetof(DeleteBuffersImmediate, header) == 0, | 1631 COMPILE_ASSERT(offsetof(DeleteBuffersImmediate, header) == 0, |
| 1632 OffsetOf_DeleteBuffersImmediate_header_not_0); | 1632 OffsetOf_DeleteBuffersImmediate_header_not_0); |
| 1633 COMPILE_ASSERT(offsetof(DeleteBuffersImmediate, n) == 4, | 1633 COMPILE_ASSERT(offsetof(DeleteBuffersImmediate, n) == 4, |
| 1634 OffsetOf_DeleteBuffersImmediate_n_not_4); | 1634 OffsetOf_DeleteBuffersImmediate_n_not_4); |
| 1635 | 1635 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1656 } | 1656 } |
| 1657 | 1657 |
| 1658 void* Set( | 1658 void* Set( |
| 1659 void* cmd, GLsizei _n, uint32 _framebuffers_shm_id, | 1659 void* cmd, GLsizei _n, uint32 _framebuffers_shm_id, |
| 1660 uint32 _framebuffers_shm_offset) { | 1660 uint32 _framebuffers_shm_offset) { |
| 1661 static_cast<ValueType*>( | 1661 static_cast<ValueType*>( |
| 1662 cmd)->Init(_n, _framebuffers_shm_id, _framebuffers_shm_offset); | 1662 cmd)->Init(_n, _framebuffers_shm_id, _framebuffers_shm_offset); |
| 1663 return NextCmdAddress<ValueType>(cmd); | 1663 return NextCmdAddress<ValueType>(cmd); |
| 1664 } | 1664 } |
| 1665 | 1665 |
| 1666 command_buffer::CommandHeader header; | 1666 gpu::CommandHeader header; |
| 1667 uint32 n; | 1667 uint32 n; |
| 1668 uint32 framebuffers_shm_id; | 1668 uint32 framebuffers_shm_id; |
| 1669 uint32 framebuffers_shm_offset; | 1669 uint32 framebuffers_shm_offset; |
| 1670 }; | 1670 }; |
| 1671 | 1671 |
| 1672 COMPILE_ASSERT(sizeof(DeleteFramebuffers) == 16, | 1672 COMPILE_ASSERT(sizeof(DeleteFramebuffers) == 16, |
| 1673 Sizeof_DeleteFramebuffers_is_not_16); | 1673 Sizeof_DeleteFramebuffers_is_not_16); |
| 1674 COMPILE_ASSERT(offsetof(DeleteFramebuffers, header) == 0, | 1674 COMPILE_ASSERT(offsetof(DeleteFramebuffers, header) == 0, |
| 1675 OffsetOf_DeleteFramebuffers_header_not_0); | 1675 OffsetOf_DeleteFramebuffers_header_not_0); |
| 1676 COMPILE_ASSERT(offsetof(DeleteFramebuffers, n) == 4, | 1676 COMPILE_ASSERT(offsetof(DeleteFramebuffers, n) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1704 memcpy(ImmediateDataAddress(this), | 1704 memcpy(ImmediateDataAddress(this), |
| 1705 _framebuffers, ComputeDataSize(_n)); | 1705 _framebuffers, ComputeDataSize(_n)); |
| 1706 } | 1706 } |
| 1707 | 1707 |
| 1708 void* Set(void* cmd, GLsizei _n, const GLuint* _framebuffers) { | 1708 void* Set(void* cmd, GLsizei _n, const GLuint* _framebuffers) { |
| 1709 static_cast<ValueType*>(cmd)->Init(_n, _framebuffers); | 1709 static_cast<ValueType*>(cmd)->Init(_n, _framebuffers); |
| 1710 const uint32 size = ComputeSize(_n); | 1710 const uint32 size = ComputeSize(_n); |
| 1711 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 1711 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 1712 } | 1712 } |
| 1713 | 1713 |
| 1714 command_buffer::CommandHeader header; | 1714 gpu::CommandHeader header; |
| 1715 uint32 n; | 1715 uint32 n; |
| 1716 }; | 1716 }; |
| 1717 | 1717 |
| 1718 COMPILE_ASSERT(sizeof(DeleteFramebuffersImmediate) == 8, | 1718 COMPILE_ASSERT(sizeof(DeleteFramebuffersImmediate) == 8, |
| 1719 Sizeof_DeleteFramebuffersImmediate_is_not_8); | 1719 Sizeof_DeleteFramebuffersImmediate_is_not_8); |
| 1720 COMPILE_ASSERT(offsetof(DeleteFramebuffersImmediate, header) == 0, | 1720 COMPILE_ASSERT(offsetof(DeleteFramebuffersImmediate, header) == 0, |
| 1721 OffsetOf_DeleteFramebuffersImmediate_header_not_0); | 1721 OffsetOf_DeleteFramebuffersImmediate_header_not_0); |
| 1722 COMPILE_ASSERT(offsetof(DeleteFramebuffersImmediate, n) == 4, | 1722 COMPILE_ASSERT(offsetof(DeleteFramebuffersImmediate, n) == 4, |
| 1723 OffsetOf_DeleteFramebuffersImmediate_n_not_4); | 1723 OffsetOf_DeleteFramebuffersImmediate_n_not_4); |
| 1724 | 1724 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1738 void Init(GLuint _program) { | 1738 void Init(GLuint _program) { |
| 1739 SetHeader(); | 1739 SetHeader(); |
| 1740 program = _program; | 1740 program = _program; |
| 1741 } | 1741 } |
| 1742 | 1742 |
| 1743 void* Set(void* cmd, GLuint _program) { | 1743 void* Set(void* cmd, GLuint _program) { |
| 1744 static_cast<ValueType*>(cmd)->Init(_program); | 1744 static_cast<ValueType*>(cmd)->Init(_program); |
| 1745 return NextCmdAddress<ValueType>(cmd); | 1745 return NextCmdAddress<ValueType>(cmd); |
| 1746 } | 1746 } |
| 1747 | 1747 |
| 1748 command_buffer::CommandHeader header; | 1748 gpu::CommandHeader header; |
| 1749 uint32 program; | 1749 uint32 program; |
| 1750 }; | 1750 }; |
| 1751 | 1751 |
| 1752 COMPILE_ASSERT(sizeof(DeleteProgram) == 8, | 1752 COMPILE_ASSERT(sizeof(DeleteProgram) == 8, |
| 1753 Sizeof_DeleteProgram_is_not_8); | 1753 Sizeof_DeleteProgram_is_not_8); |
| 1754 COMPILE_ASSERT(offsetof(DeleteProgram, header) == 0, | 1754 COMPILE_ASSERT(offsetof(DeleteProgram, header) == 0, |
| 1755 OffsetOf_DeleteProgram_header_not_0); | 1755 OffsetOf_DeleteProgram_header_not_0); |
| 1756 COMPILE_ASSERT(offsetof(DeleteProgram, program) == 4, | 1756 COMPILE_ASSERT(offsetof(DeleteProgram, program) == 4, |
| 1757 OffsetOf_DeleteProgram_program_not_4); | 1757 OffsetOf_DeleteProgram_program_not_4); |
| 1758 | 1758 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1779 } | 1779 } |
| 1780 | 1780 |
| 1781 void* Set( | 1781 void* Set( |
| 1782 void* cmd, GLsizei _n, uint32 _renderbuffers_shm_id, | 1782 void* cmd, GLsizei _n, uint32 _renderbuffers_shm_id, |
| 1783 uint32 _renderbuffers_shm_offset) { | 1783 uint32 _renderbuffers_shm_offset) { |
| 1784 static_cast<ValueType*>( | 1784 static_cast<ValueType*>( |
| 1785 cmd)->Init(_n, _renderbuffers_shm_id, _renderbuffers_shm_offset); | 1785 cmd)->Init(_n, _renderbuffers_shm_id, _renderbuffers_shm_offset); |
| 1786 return NextCmdAddress<ValueType>(cmd); | 1786 return NextCmdAddress<ValueType>(cmd); |
| 1787 } | 1787 } |
| 1788 | 1788 |
| 1789 command_buffer::CommandHeader header; | 1789 gpu::CommandHeader header; |
| 1790 uint32 n; | 1790 uint32 n; |
| 1791 uint32 renderbuffers_shm_id; | 1791 uint32 renderbuffers_shm_id; |
| 1792 uint32 renderbuffers_shm_offset; | 1792 uint32 renderbuffers_shm_offset; |
| 1793 }; | 1793 }; |
| 1794 | 1794 |
| 1795 COMPILE_ASSERT(sizeof(DeleteRenderbuffers) == 16, | 1795 COMPILE_ASSERT(sizeof(DeleteRenderbuffers) == 16, |
| 1796 Sizeof_DeleteRenderbuffers_is_not_16); | 1796 Sizeof_DeleteRenderbuffers_is_not_16); |
| 1797 COMPILE_ASSERT(offsetof(DeleteRenderbuffers, header) == 0, | 1797 COMPILE_ASSERT(offsetof(DeleteRenderbuffers, header) == 0, |
| 1798 OffsetOf_DeleteRenderbuffers_header_not_0); | 1798 OffsetOf_DeleteRenderbuffers_header_not_0); |
| 1799 COMPILE_ASSERT(offsetof(DeleteRenderbuffers, n) == 4, | 1799 COMPILE_ASSERT(offsetof(DeleteRenderbuffers, n) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1827 memcpy(ImmediateDataAddress(this), | 1827 memcpy(ImmediateDataAddress(this), |
| 1828 _renderbuffers, ComputeDataSize(_n)); | 1828 _renderbuffers, ComputeDataSize(_n)); |
| 1829 } | 1829 } |
| 1830 | 1830 |
| 1831 void* Set(void* cmd, GLsizei _n, const GLuint* _renderbuffers) { | 1831 void* Set(void* cmd, GLsizei _n, const GLuint* _renderbuffers) { |
| 1832 static_cast<ValueType*>(cmd)->Init(_n, _renderbuffers); | 1832 static_cast<ValueType*>(cmd)->Init(_n, _renderbuffers); |
| 1833 const uint32 size = ComputeSize(_n); | 1833 const uint32 size = ComputeSize(_n); |
| 1834 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 1834 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 1835 } | 1835 } |
| 1836 | 1836 |
| 1837 command_buffer::CommandHeader header; | 1837 gpu::CommandHeader header; |
| 1838 uint32 n; | 1838 uint32 n; |
| 1839 }; | 1839 }; |
| 1840 | 1840 |
| 1841 COMPILE_ASSERT(sizeof(DeleteRenderbuffersImmediate) == 8, | 1841 COMPILE_ASSERT(sizeof(DeleteRenderbuffersImmediate) == 8, |
| 1842 Sizeof_DeleteRenderbuffersImmediate_is_not_8); | 1842 Sizeof_DeleteRenderbuffersImmediate_is_not_8); |
| 1843 COMPILE_ASSERT(offsetof(DeleteRenderbuffersImmediate, header) == 0, | 1843 COMPILE_ASSERT(offsetof(DeleteRenderbuffersImmediate, header) == 0, |
| 1844 OffsetOf_DeleteRenderbuffersImmediate_header_not_0); | 1844 OffsetOf_DeleteRenderbuffersImmediate_header_not_0); |
| 1845 COMPILE_ASSERT(offsetof(DeleteRenderbuffersImmediate, n) == 4, | 1845 COMPILE_ASSERT(offsetof(DeleteRenderbuffersImmediate, n) == 4, |
| 1846 OffsetOf_DeleteRenderbuffersImmediate_n_not_4); | 1846 OffsetOf_DeleteRenderbuffersImmediate_n_not_4); |
| 1847 | 1847 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1861 void Init(GLuint _shader) { | 1861 void Init(GLuint _shader) { |
| 1862 SetHeader(); | 1862 SetHeader(); |
| 1863 shader = _shader; | 1863 shader = _shader; |
| 1864 } | 1864 } |
| 1865 | 1865 |
| 1866 void* Set(void* cmd, GLuint _shader) { | 1866 void* Set(void* cmd, GLuint _shader) { |
| 1867 static_cast<ValueType*>(cmd)->Init(_shader); | 1867 static_cast<ValueType*>(cmd)->Init(_shader); |
| 1868 return NextCmdAddress<ValueType>(cmd); | 1868 return NextCmdAddress<ValueType>(cmd); |
| 1869 } | 1869 } |
| 1870 | 1870 |
| 1871 command_buffer::CommandHeader header; | 1871 gpu::CommandHeader header; |
| 1872 uint32 shader; | 1872 uint32 shader; |
| 1873 }; | 1873 }; |
| 1874 | 1874 |
| 1875 COMPILE_ASSERT(sizeof(DeleteShader) == 8, | 1875 COMPILE_ASSERT(sizeof(DeleteShader) == 8, |
| 1876 Sizeof_DeleteShader_is_not_8); | 1876 Sizeof_DeleteShader_is_not_8); |
| 1877 COMPILE_ASSERT(offsetof(DeleteShader, header) == 0, | 1877 COMPILE_ASSERT(offsetof(DeleteShader, header) == 0, |
| 1878 OffsetOf_DeleteShader_header_not_0); | 1878 OffsetOf_DeleteShader_header_not_0); |
| 1879 COMPILE_ASSERT(offsetof(DeleteShader, shader) == 4, | 1879 COMPILE_ASSERT(offsetof(DeleteShader, shader) == 4, |
| 1880 OffsetOf_DeleteShader_shader_not_4); | 1880 OffsetOf_DeleteShader_shader_not_4); |
| 1881 | 1881 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1900 } | 1900 } |
| 1901 | 1901 |
| 1902 void* Set( | 1902 void* Set( |
| 1903 void* cmd, GLsizei _n, uint32 _textures_shm_id, | 1903 void* cmd, GLsizei _n, uint32 _textures_shm_id, |
| 1904 uint32 _textures_shm_offset) { | 1904 uint32 _textures_shm_offset) { |
| 1905 static_cast<ValueType*>( | 1905 static_cast<ValueType*>( |
| 1906 cmd)->Init(_n, _textures_shm_id, _textures_shm_offset); | 1906 cmd)->Init(_n, _textures_shm_id, _textures_shm_offset); |
| 1907 return NextCmdAddress<ValueType>(cmd); | 1907 return NextCmdAddress<ValueType>(cmd); |
| 1908 } | 1908 } |
| 1909 | 1909 |
| 1910 command_buffer::CommandHeader header; | 1910 gpu::CommandHeader header; |
| 1911 uint32 n; | 1911 uint32 n; |
| 1912 uint32 textures_shm_id; | 1912 uint32 textures_shm_id; |
| 1913 uint32 textures_shm_offset; | 1913 uint32 textures_shm_offset; |
| 1914 }; | 1914 }; |
| 1915 | 1915 |
| 1916 COMPILE_ASSERT(sizeof(DeleteTextures) == 16, | 1916 COMPILE_ASSERT(sizeof(DeleteTextures) == 16, |
| 1917 Sizeof_DeleteTextures_is_not_16); | 1917 Sizeof_DeleteTextures_is_not_16); |
| 1918 COMPILE_ASSERT(offsetof(DeleteTextures, header) == 0, | 1918 COMPILE_ASSERT(offsetof(DeleteTextures, header) == 0, |
| 1919 OffsetOf_DeleteTextures_header_not_0); | 1919 OffsetOf_DeleteTextures_header_not_0); |
| 1920 COMPILE_ASSERT(offsetof(DeleteTextures, n) == 4, | 1920 COMPILE_ASSERT(offsetof(DeleteTextures, n) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1948 memcpy(ImmediateDataAddress(this), | 1948 memcpy(ImmediateDataAddress(this), |
| 1949 _textures, ComputeDataSize(_n)); | 1949 _textures, ComputeDataSize(_n)); |
| 1950 } | 1950 } |
| 1951 | 1951 |
| 1952 void* Set(void* cmd, GLsizei _n, const GLuint* _textures) { | 1952 void* Set(void* cmd, GLsizei _n, const GLuint* _textures) { |
| 1953 static_cast<ValueType*>(cmd)->Init(_n, _textures); | 1953 static_cast<ValueType*>(cmd)->Init(_n, _textures); |
| 1954 const uint32 size = ComputeSize(_n); | 1954 const uint32 size = ComputeSize(_n); |
| 1955 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 1955 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 1956 } | 1956 } |
| 1957 | 1957 |
| 1958 command_buffer::CommandHeader header; | 1958 gpu::CommandHeader header; |
| 1959 uint32 n; | 1959 uint32 n; |
| 1960 }; | 1960 }; |
| 1961 | 1961 |
| 1962 COMPILE_ASSERT(sizeof(DeleteTexturesImmediate) == 8, | 1962 COMPILE_ASSERT(sizeof(DeleteTexturesImmediate) == 8, |
| 1963 Sizeof_DeleteTexturesImmediate_is_not_8); | 1963 Sizeof_DeleteTexturesImmediate_is_not_8); |
| 1964 COMPILE_ASSERT(offsetof(DeleteTexturesImmediate, header) == 0, | 1964 COMPILE_ASSERT(offsetof(DeleteTexturesImmediate, header) == 0, |
| 1965 OffsetOf_DeleteTexturesImmediate_header_not_0); | 1965 OffsetOf_DeleteTexturesImmediate_header_not_0); |
| 1966 COMPILE_ASSERT(offsetof(DeleteTexturesImmediate, n) == 4, | 1966 COMPILE_ASSERT(offsetof(DeleteTexturesImmediate, n) == 4, |
| 1967 OffsetOf_DeleteTexturesImmediate_n_not_4); | 1967 OffsetOf_DeleteTexturesImmediate_n_not_4); |
| 1968 | 1968 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1982 void Init(GLenum _func) { | 1982 void Init(GLenum _func) { |
| 1983 SetHeader(); | 1983 SetHeader(); |
| 1984 func = _func; | 1984 func = _func; |
| 1985 } | 1985 } |
| 1986 | 1986 |
| 1987 void* Set(void* cmd, GLenum _func) { | 1987 void* Set(void* cmd, GLenum _func) { |
| 1988 static_cast<ValueType*>(cmd)->Init(_func); | 1988 static_cast<ValueType*>(cmd)->Init(_func); |
| 1989 return NextCmdAddress<ValueType>(cmd); | 1989 return NextCmdAddress<ValueType>(cmd); |
| 1990 } | 1990 } |
| 1991 | 1991 |
| 1992 command_buffer::CommandHeader header; | 1992 gpu::CommandHeader header; |
| 1993 uint32 func; | 1993 uint32 func; |
| 1994 }; | 1994 }; |
| 1995 | 1995 |
| 1996 COMPILE_ASSERT(sizeof(DepthFunc) == 8, | 1996 COMPILE_ASSERT(sizeof(DepthFunc) == 8, |
| 1997 Sizeof_DepthFunc_is_not_8); | 1997 Sizeof_DepthFunc_is_not_8); |
| 1998 COMPILE_ASSERT(offsetof(DepthFunc, header) == 0, | 1998 COMPILE_ASSERT(offsetof(DepthFunc, header) == 0, |
| 1999 OffsetOf_DepthFunc_header_not_0); | 1999 OffsetOf_DepthFunc_header_not_0); |
| 2000 COMPILE_ASSERT(offsetof(DepthFunc, func) == 4, | 2000 COMPILE_ASSERT(offsetof(DepthFunc, func) == 4, |
| 2001 OffsetOf_DepthFunc_func_not_4); | 2001 OffsetOf_DepthFunc_func_not_4); |
| 2002 | 2002 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2016 void Init(GLboolean _flag) { | 2016 void Init(GLboolean _flag) { |
| 2017 SetHeader(); | 2017 SetHeader(); |
| 2018 flag = _flag; | 2018 flag = _flag; |
| 2019 } | 2019 } |
| 2020 | 2020 |
| 2021 void* Set(void* cmd, GLboolean _flag) { | 2021 void* Set(void* cmd, GLboolean _flag) { |
| 2022 static_cast<ValueType*>(cmd)->Init(_flag); | 2022 static_cast<ValueType*>(cmd)->Init(_flag); |
| 2023 return NextCmdAddress<ValueType>(cmd); | 2023 return NextCmdAddress<ValueType>(cmd); |
| 2024 } | 2024 } |
| 2025 | 2025 |
| 2026 command_buffer::CommandHeader header; | 2026 gpu::CommandHeader header; |
| 2027 uint32 flag; | 2027 uint32 flag; |
| 2028 }; | 2028 }; |
| 2029 | 2029 |
| 2030 COMPILE_ASSERT(sizeof(DepthMask) == 8, | 2030 COMPILE_ASSERT(sizeof(DepthMask) == 8, |
| 2031 Sizeof_DepthMask_is_not_8); | 2031 Sizeof_DepthMask_is_not_8); |
| 2032 COMPILE_ASSERT(offsetof(DepthMask, header) == 0, | 2032 COMPILE_ASSERT(offsetof(DepthMask, header) == 0, |
| 2033 OffsetOf_DepthMask_header_not_0); | 2033 OffsetOf_DepthMask_header_not_0); |
| 2034 COMPILE_ASSERT(offsetof(DepthMask, flag) == 4, | 2034 COMPILE_ASSERT(offsetof(DepthMask, flag) == 4, |
| 2035 OffsetOf_DepthMask_flag_not_4); | 2035 OffsetOf_DepthMask_flag_not_4); |
| 2036 | 2036 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2051 SetHeader(); | 2051 SetHeader(); |
| 2052 zNear = _zNear; | 2052 zNear = _zNear; |
| 2053 zFar = _zFar; | 2053 zFar = _zFar; |
| 2054 } | 2054 } |
| 2055 | 2055 |
| 2056 void* Set(void* cmd, GLclampf _zNear, GLclampf _zFar) { | 2056 void* Set(void* cmd, GLclampf _zNear, GLclampf _zFar) { |
| 2057 static_cast<ValueType*>(cmd)->Init(_zNear, _zFar); | 2057 static_cast<ValueType*>(cmd)->Init(_zNear, _zFar); |
| 2058 return NextCmdAddress<ValueType>(cmd); | 2058 return NextCmdAddress<ValueType>(cmd); |
| 2059 } | 2059 } |
| 2060 | 2060 |
| 2061 command_buffer::CommandHeader header; | 2061 gpu::CommandHeader header; |
| 2062 float zNear; | 2062 float zNear; |
| 2063 float zFar; | 2063 float zFar; |
| 2064 }; | 2064 }; |
| 2065 | 2065 |
| 2066 COMPILE_ASSERT(sizeof(DepthRangef) == 12, | 2066 COMPILE_ASSERT(sizeof(DepthRangef) == 12, |
| 2067 Sizeof_DepthRangef_is_not_12); | 2067 Sizeof_DepthRangef_is_not_12); |
| 2068 COMPILE_ASSERT(offsetof(DepthRangef, header) == 0, | 2068 COMPILE_ASSERT(offsetof(DepthRangef, header) == 0, |
| 2069 OffsetOf_DepthRangef_header_not_0); | 2069 OffsetOf_DepthRangef_header_not_0); |
| 2070 COMPILE_ASSERT(offsetof(DepthRangef, zNear) == 4, | 2070 COMPILE_ASSERT(offsetof(DepthRangef, zNear) == 4, |
| 2071 OffsetOf_DepthRangef_zNear_not_4); | 2071 OffsetOf_DepthRangef_zNear_not_4); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2089 SetHeader(); | 2089 SetHeader(); |
| 2090 program = _program; | 2090 program = _program; |
| 2091 shader = _shader; | 2091 shader = _shader; |
| 2092 } | 2092 } |
| 2093 | 2093 |
| 2094 void* Set(void* cmd, GLuint _program, GLuint _shader) { | 2094 void* Set(void* cmd, GLuint _program, GLuint _shader) { |
| 2095 static_cast<ValueType*>(cmd)->Init(_program, _shader); | 2095 static_cast<ValueType*>(cmd)->Init(_program, _shader); |
| 2096 return NextCmdAddress<ValueType>(cmd); | 2096 return NextCmdAddress<ValueType>(cmd); |
| 2097 } | 2097 } |
| 2098 | 2098 |
| 2099 command_buffer::CommandHeader header; | 2099 gpu::CommandHeader header; |
| 2100 uint32 program; | 2100 uint32 program; |
| 2101 uint32 shader; | 2101 uint32 shader; |
| 2102 }; | 2102 }; |
| 2103 | 2103 |
| 2104 COMPILE_ASSERT(sizeof(DetachShader) == 12, | 2104 COMPILE_ASSERT(sizeof(DetachShader) == 12, |
| 2105 Sizeof_DetachShader_is_not_12); | 2105 Sizeof_DetachShader_is_not_12); |
| 2106 COMPILE_ASSERT(offsetof(DetachShader, header) == 0, | 2106 COMPILE_ASSERT(offsetof(DetachShader, header) == 0, |
| 2107 OffsetOf_DetachShader_header_not_0); | 2107 OffsetOf_DetachShader_header_not_0); |
| 2108 COMPILE_ASSERT(offsetof(DetachShader, program) == 4, | 2108 COMPILE_ASSERT(offsetof(DetachShader, program) == 4, |
| 2109 OffsetOf_DetachShader_program_not_4); | 2109 OffsetOf_DetachShader_program_not_4); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2126 void Init(GLenum _cap) { | 2126 void Init(GLenum _cap) { |
| 2127 SetHeader(); | 2127 SetHeader(); |
| 2128 cap = _cap; | 2128 cap = _cap; |
| 2129 } | 2129 } |
| 2130 | 2130 |
| 2131 void* Set(void* cmd, GLenum _cap) { | 2131 void* Set(void* cmd, GLenum _cap) { |
| 2132 static_cast<ValueType*>(cmd)->Init(_cap); | 2132 static_cast<ValueType*>(cmd)->Init(_cap); |
| 2133 return NextCmdAddress<ValueType>(cmd); | 2133 return NextCmdAddress<ValueType>(cmd); |
| 2134 } | 2134 } |
| 2135 | 2135 |
| 2136 command_buffer::CommandHeader header; | 2136 gpu::CommandHeader header; |
| 2137 uint32 cap; | 2137 uint32 cap; |
| 2138 }; | 2138 }; |
| 2139 | 2139 |
| 2140 COMPILE_ASSERT(sizeof(Disable) == 8, | 2140 COMPILE_ASSERT(sizeof(Disable) == 8, |
| 2141 Sizeof_Disable_is_not_8); | 2141 Sizeof_Disable_is_not_8); |
| 2142 COMPILE_ASSERT(offsetof(Disable, header) == 0, | 2142 COMPILE_ASSERT(offsetof(Disable, header) == 0, |
| 2143 OffsetOf_Disable_header_not_0); | 2143 OffsetOf_Disable_header_not_0); |
| 2144 COMPILE_ASSERT(offsetof(Disable, cap) == 4, | 2144 COMPILE_ASSERT(offsetof(Disable, cap) == 4, |
| 2145 OffsetOf_Disable_cap_not_4); | 2145 OffsetOf_Disable_cap_not_4); |
| 2146 | 2146 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2160 void Init(GLuint _index) { | 2160 void Init(GLuint _index) { |
| 2161 SetHeader(); | 2161 SetHeader(); |
| 2162 index = _index; | 2162 index = _index; |
| 2163 } | 2163 } |
| 2164 | 2164 |
| 2165 void* Set(void* cmd, GLuint _index) { | 2165 void* Set(void* cmd, GLuint _index) { |
| 2166 static_cast<ValueType*>(cmd)->Init(_index); | 2166 static_cast<ValueType*>(cmd)->Init(_index); |
| 2167 return NextCmdAddress<ValueType>(cmd); | 2167 return NextCmdAddress<ValueType>(cmd); |
| 2168 } | 2168 } |
| 2169 | 2169 |
| 2170 command_buffer::CommandHeader header; | 2170 gpu::CommandHeader header; |
| 2171 uint32 index; | 2171 uint32 index; |
| 2172 }; | 2172 }; |
| 2173 | 2173 |
| 2174 COMPILE_ASSERT(sizeof(DisableVertexAttribArray) == 8, | 2174 COMPILE_ASSERT(sizeof(DisableVertexAttribArray) == 8, |
| 2175 Sizeof_DisableVertexAttribArray_is_not_8); | 2175 Sizeof_DisableVertexAttribArray_is_not_8); |
| 2176 COMPILE_ASSERT(offsetof(DisableVertexAttribArray, header) == 0, | 2176 COMPILE_ASSERT(offsetof(DisableVertexAttribArray, header) == 0, |
| 2177 OffsetOf_DisableVertexAttribArray_header_not_0); | 2177 OffsetOf_DisableVertexAttribArray_header_not_0); |
| 2178 COMPILE_ASSERT(offsetof(DisableVertexAttribArray, index) == 4, | 2178 COMPILE_ASSERT(offsetof(DisableVertexAttribArray, index) == 4, |
| 2179 OffsetOf_DisableVertexAttribArray_index_not_4); | 2179 OffsetOf_DisableVertexAttribArray_index_not_4); |
| 2180 | 2180 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 2196 mode = _mode; | 2196 mode = _mode; |
| 2197 first = _first; | 2197 first = _first; |
| 2198 count = _count; | 2198 count = _count; |
| 2199 } | 2199 } |
| 2200 | 2200 |
| 2201 void* Set(void* cmd, GLenum _mode, GLint _first, GLsizei _count) { | 2201 void* Set(void* cmd, GLenum _mode, GLint _first, GLsizei _count) { |
| 2202 static_cast<ValueType*>(cmd)->Init(_mode, _first, _count); | 2202 static_cast<ValueType*>(cmd)->Init(_mode, _first, _count); |
| 2203 return NextCmdAddress<ValueType>(cmd); | 2203 return NextCmdAddress<ValueType>(cmd); |
| 2204 } | 2204 } |
| 2205 | 2205 |
| 2206 command_buffer::CommandHeader header; | 2206 gpu::CommandHeader header; |
| 2207 uint32 mode; | 2207 uint32 mode; |
| 2208 uint32 first; | 2208 uint32 first; |
| 2209 uint32 count; | 2209 uint32 count; |
| 2210 }; | 2210 }; |
| 2211 | 2211 |
| 2212 COMPILE_ASSERT(sizeof(DrawArrays) == 16, | 2212 COMPILE_ASSERT(sizeof(DrawArrays) == 16, |
| 2213 Sizeof_DrawArrays_is_not_16); | 2213 Sizeof_DrawArrays_is_not_16); |
| 2214 COMPILE_ASSERT(offsetof(DrawArrays, header) == 0, | 2214 COMPILE_ASSERT(offsetof(DrawArrays, header) == 0, |
| 2215 OffsetOf_DrawArrays_header_not_0); | 2215 OffsetOf_DrawArrays_header_not_0); |
| 2216 COMPILE_ASSERT(offsetof(DrawArrays, mode) == 4, | 2216 COMPILE_ASSERT(offsetof(DrawArrays, mode) == 4, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2241 index_offset = _index_offset; | 2241 index_offset = _index_offset; |
| 2242 } | 2242 } |
| 2243 | 2243 |
| 2244 void* Set( | 2244 void* Set( |
| 2245 void* cmd, GLenum _mode, GLsizei _count, GLenum _type, | 2245 void* cmd, GLenum _mode, GLsizei _count, GLenum _type, |
| 2246 GLuint _index_offset) { | 2246 GLuint _index_offset) { |
| 2247 static_cast<ValueType*>(cmd)->Init(_mode, _count, _type, _index_offset); | 2247 static_cast<ValueType*>(cmd)->Init(_mode, _count, _type, _index_offset); |
| 2248 return NextCmdAddress<ValueType>(cmd); | 2248 return NextCmdAddress<ValueType>(cmd); |
| 2249 } | 2249 } |
| 2250 | 2250 |
| 2251 command_buffer::CommandHeader header; | 2251 gpu::CommandHeader header; |
| 2252 uint32 mode; | 2252 uint32 mode; |
| 2253 uint32 count; | 2253 uint32 count; |
| 2254 uint32 type; | 2254 uint32 type; |
| 2255 uint32 index_offset; | 2255 uint32 index_offset; |
| 2256 }; | 2256 }; |
| 2257 | 2257 |
| 2258 COMPILE_ASSERT(sizeof(DrawElements) == 20, | 2258 COMPILE_ASSERT(sizeof(DrawElements) == 20, |
| 2259 Sizeof_DrawElements_is_not_20); | 2259 Sizeof_DrawElements_is_not_20); |
| 2260 COMPILE_ASSERT(offsetof(DrawElements, header) == 0, | 2260 COMPILE_ASSERT(offsetof(DrawElements, header) == 0, |
| 2261 OffsetOf_DrawElements_header_not_0); | 2261 OffsetOf_DrawElements_header_not_0); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 2284 void Init(GLenum _cap) { | 2284 void Init(GLenum _cap) { |
| 2285 SetHeader(); | 2285 SetHeader(); |
| 2286 cap = _cap; | 2286 cap = _cap; |
| 2287 } | 2287 } |
| 2288 | 2288 |
| 2289 void* Set(void* cmd, GLenum _cap) { | 2289 void* Set(void* cmd, GLenum _cap) { |
| 2290 static_cast<ValueType*>(cmd)->Init(_cap); | 2290 static_cast<ValueType*>(cmd)->Init(_cap); |
| 2291 return NextCmdAddress<ValueType>(cmd); | 2291 return NextCmdAddress<ValueType>(cmd); |
| 2292 } | 2292 } |
| 2293 | 2293 |
| 2294 command_buffer::CommandHeader header; | 2294 gpu::CommandHeader header; |
| 2295 uint32 cap; | 2295 uint32 cap; |
| 2296 }; | 2296 }; |
| 2297 | 2297 |
| 2298 COMPILE_ASSERT(sizeof(Enable) == 8, | 2298 COMPILE_ASSERT(sizeof(Enable) == 8, |
| 2299 Sizeof_Enable_is_not_8); | 2299 Sizeof_Enable_is_not_8); |
| 2300 COMPILE_ASSERT(offsetof(Enable, header) == 0, | 2300 COMPILE_ASSERT(offsetof(Enable, header) == 0, |
| 2301 OffsetOf_Enable_header_not_0); | 2301 OffsetOf_Enable_header_not_0); |
| 2302 COMPILE_ASSERT(offsetof(Enable, cap) == 4, | 2302 COMPILE_ASSERT(offsetof(Enable, cap) == 4, |
| 2303 OffsetOf_Enable_cap_not_4); | 2303 OffsetOf_Enable_cap_not_4); |
| 2304 | 2304 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2318 void Init(GLuint _index) { | 2318 void Init(GLuint _index) { |
| 2319 SetHeader(); | 2319 SetHeader(); |
| 2320 index = _index; | 2320 index = _index; |
| 2321 } | 2321 } |
| 2322 | 2322 |
| 2323 void* Set(void* cmd, GLuint _index) { | 2323 void* Set(void* cmd, GLuint _index) { |
| 2324 static_cast<ValueType*>(cmd)->Init(_index); | 2324 static_cast<ValueType*>(cmd)->Init(_index); |
| 2325 return NextCmdAddress<ValueType>(cmd); | 2325 return NextCmdAddress<ValueType>(cmd); |
| 2326 } | 2326 } |
| 2327 | 2327 |
| 2328 command_buffer::CommandHeader header; | 2328 gpu::CommandHeader header; |
| 2329 uint32 index; | 2329 uint32 index; |
| 2330 }; | 2330 }; |
| 2331 | 2331 |
| 2332 COMPILE_ASSERT(sizeof(EnableVertexAttribArray) == 8, | 2332 COMPILE_ASSERT(sizeof(EnableVertexAttribArray) == 8, |
| 2333 Sizeof_EnableVertexAttribArray_is_not_8); | 2333 Sizeof_EnableVertexAttribArray_is_not_8); |
| 2334 COMPILE_ASSERT(offsetof(EnableVertexAttribArray, header) == 0, | 2334 COMPILE_ASSERT(offsetof(EnableVertexAttribArray, header) == 0, |
| 2335 OffsetOf_EnableVertexAttribArray_header_not_0); | 2335 OffsetOf_EnableVertexAttribArray_header_not_0); |
| 2336 COMPILE_ASSERT(offsetof(EnableVertexAttribArray, index) == 4, | 2336 COMPILE_ASSERT(offsetof(EnableVertexAttribArray, index) == 4, |
| 2337 OffsetOf_EnableVertexAttribArray_index_not_4); | 2337 OffsetOf_EnableVertexAttribArray_index_not_4); |
| 2338 | 2338 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2351 | 2351 |
| 2352 void Init() { | 2352 void Init() { |
| 2353 SetHeader(); | 2353 SetHeader(); |
| 2354 } | 2354 } |
| 2355 | 2355 |
| 2356 void* Set(void* cmd) { | 2356 void* Set(void* cmd) { |
| 2357 static_cast<ValueType*>(cmd)->Init(); | 2357 static_cast<ValueType*>(cmd)->Init(); |
| 2358 return NextCmdAddress<ValueType>(cmd); | 2358 return NextCmdAddress<ValueType>(cmd); |
| 2359 } | 2359 } |
| 2360 | 2360 |
| 2361 command_buffer::CommandHeader header; | 2361 gpu::CommandHeader header; |
| 2362 }; | 2362 }; |
| 2363 | 2363 |
| 2364 COMPILE_ASSERT(sizeof(Finish) == 4, | 2364 COMPILE_ASSERT(sizeof(Finish) == 4, |
| 2365 Sizeof_Finish_is_not_4); | 2365 Sizeof_Finish_is_not_4); |
| 2366 COMPILE_ASSERT(offsetof(Finish, header) == 0, | 2366 COMPILE_ASSERT(offsetof(Finish, header) == 0, |
| 2367 OffsetOf_Finish_header_not_0); | 2367 OffsetOf_Finish_header_not_0); |
| 2368 | 2368 |
| 2369 struct Flush { | 2369 struct Flush { |
| 2370 typedef Flush ValueType; | 2370 typedef Flush ValueType; |
| 2371 static const CommandId kCmdId = kFlush; | 2371 static const CommandId kCmdId = kFlush; |
| 2372 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2372 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2373 | 2373 |
| 2374 static uint32 ComputeSize() { | 2374 static uint32 ComputeSize() { |
| 2375 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 2375 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 2376 } | 2376 } |
| 2377 | 2377 |
| 2378 void SetHeader() { | 2378 void SetHeader() { |
| 2379 header.SetCmd<ValueType>(); | 2379 header.SetCmd<ValueType>(); |
| 2380 } | 2380 } |
| 2381 | 2381 |
| 2382 void Init() { | 2382 void Init() { |
| 2383 SetHeader(); | 2383 SetHeader(); |
| 2384 } | 2384 } |
| 2385 | 2385 |
| 2386 void* Set(void* cmd) { | 2386 void* Set(void* cmd) { |
| 2387 static_cast<ValueType*>(cmd)->Init(); | 2387 static_cast<ValueType*>(cmd)->Init(); |
| 2388 return NextCmdAddress<ValueType>(cmd); | 2388 return NextCmdAddress<ValueType>(cmd); |
| 2389 } | 2389 } |
| 2390 | 2390 |
| 2391 command_buffer::CommandHeader header; | 2391 gpu::CommandHeader header; |
| 2392 }; | 2392 }; |
| 2393 | 2393 |
| 2394 COMPILE_ASSERT(sizeof(Flush) == 4, | 2394 COMPILE_ASSERT(sizeof(Flush) == 4, |
| 2395 Sizeof_Flush_is_not_4); | 2395 Sizeof_Flush_is_not_4); |
| 2396 COMPILE_ASSERT(offsetof(Flush, header) == 0, | 2396 COMPILE_ASSERT(offsetof(Flush, header) == 0, |
| 2397 OffsetOf_Flush_header_not_0); | 2397 OffsetOf_Flush_header_not_0); |
| 2398 | 2398 |
| 2399 struct FramebufferRenderbuffer { | 2399 struct FramebufferRenderbuffer { |
| 2400 typedef FramebufferRenderbuffer ValueType; | 2400 typedef FramebufferRenderbuffer ValueType; |
| 2401 static const CommandId kCmdId = kFramebufferRenderbuffer; | 2401 static const CommandId kCmdId = kFramebufferRenderbuffer; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2420 } | 2420 } |
| 2421 | 2421 |
| 2422 void* Set( | 2422 void* Set( |
| 2423 void* cmd, GLenum _target, GLenum _attachment, GLenum _renderbuffertarget, | 2423 void* cmd, GLenum _target, GLenum _attachment, GLenum _renderbuffertarget, |
| 2424 GLuint _renderbuffer) { | 2424 GLuint _renderbuffer) { |
| 2425 static_cast<ValueType*>( | 2425 static_cast<ValueType*>( |
| 2426 cmd)->Init(_target, _attachment, _renderbuffertarget, _renderbuffer); | 2426 cmd)->Init(_target, _attachment, _renderbuffertarget, _renderbuffer); |
| 2427 return NextCmdAddress<ValueType>(cmd); | 2427 return NextCmdAddress<ValueType>(cmd); |
| 2428 } | 2428 } |
| 2429 | 2429 |
| 2430 command_buffer::CommandHeader header; | 2430 gpu::CommandHeader header; |
| 2431 uint32 target; | 2431 uint32 target; |
| 2432 uint32 attachment; | 2432 uint32 attachment; |
| 2433 uint32 renderbuffertarget; | 2433 uint32 renderbuffertarget; |
| 2434 uint32 renderbuffer; | 2434 uint32 renderbuffer; |
| 2435 }; | 2435 }; |
| 2436 | 2436 |
| 2437 COMPILE_ASSERT(sizeof(FramebufferRenderbuffer) == 20, | 2437 COMPILE_ASSERT(sizeof(FramebufferRenderbuffer) == 20, |
| 2438 Sizeof_FramebufferRenderbuffer_is_not_20); | 2438 Sizeof_FramebufferRenderbuffer_is_not_20); |
| 2439 COMPILE_ASSERT(offsetof(FramebufferRenderbuffer, header) == 0, | 2439 COMPILE_ASSERT(offsetof(FramebufferRenderbuffer, header) == 0, |
| 2440 OffsetOf_FramebufferRenderbuffer_header_not_0); | 2440 OffsetOf_FramebufferRenderbuffer_header_not_0); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2472 } | 2472 } |
| 2473 | 2473 |
| 2474 void* Set( | 2474 void* Set( |
| 2475 void* cmd, GLenum _target, GLenum _attachment, GLenum _textarget, | 2475 void* cmd, GLenum _target, GLenum _attachment, GLenum _textarget, |
| 2476 GLuint _texture, GLint _level) { | 2476 GLuint _texture, GLint _level) { |
| 2477 static_cast<ValueType*>( | 2477 static_cast<ValueType*>( |
| 2478 cmd)->Init(_target, _attachment, _textarget, _texture, _level); | 2478 cmd)->Init(_target, _attachment, _textarget, _texture, _level); |
| 2479 return NextCmdAddress<ValueType>(cmd); | 2479 return NextCmdAddress<ValueType>(cmd); |
| 2480 } | 2480 } |
| 2481 | 2481 |
| 2482 command_buffer::CommandHeader header; | 2482 gpu::CommandHeader header; |
| 2483 uint32 target; | 2483 uint32 target; |
| 2484 uint32 attachment; | 2484 uint32 attachment; |
| 2485 uint32 textarget; | 2485 uint32 textarget; |
| 2486 uint32 texture; | 2486 uint32 texture; |
| 2487 uint32 level; | 2487 uint32 level; |
| 2488 }; | 2488 }; |
| 2489 | 2489 |
| 2490 COMPILE_ASSERT(sizeof(FramebufferTexture2D) == 24, | 2490 COMPILE_ASSERT(sizeof(FramebufferTexture2D) == 24, |
| 2491 Sizeof_FramebufferTexture2D_is_not_24); | 2491 Sizeof_FramebufferTexture2D_is_not_24); |
| 2492 COMPILE_ASSERT(offsetof(FramebufferTexture2D, header) == 0, | 2492 COMPILE_ASSERT(offsetof(FramebufferTexture2D, header) == 0, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 2518 void Init(GLenum _mode) { | 2518 void Init(GLenum _mode) { |
| 2519 SetHeader(); | 2519 SetHeader(); |
| 2520 mode = _mode; | 2520 mode = _mode; |
| 2521 } | 2521 } |
| 2522 | 2522 |
| 2523 void* Set(void* cmd, GLenum _mode) { | 2523 void* Set(void* cmd, GLenum _mode) { |
| 2524 static_cast<ValueType*>(cmd)->Init(_mode); | 2524 static_cast<ValueType*>(cmd)->Init(_mode); |
| 2525 return NextCmdAddress<ValueType>(cmd); | 2525 return NextCmdAddress<ValueType>(cmd); |
| 2526 } | 2526 } |
| 2527 | 2527 |
| 2528 command_buffer::CommandHeader header; | 2528 gpu::CommandHeader header; |
| 2529 uint32 mode; | 2529 uint32 mode; |
| 2530 }; | 2530 }; |
| 2531 | 2531 |
| 2532 COMPILE_ASSERT(sizeof(FrontFace) == 8, | 2532 COMPILE_ASSERT(sizeof(FrontFace) == 8, |
| 2533 Sizeof_FrontFace_is_not_8); | 2533 Sizeof_FrontFace_is_not_8); |
| 2534 COMPILE_ASSERT(offsetof(FrontFace, header) == 0, | 2534 COMPILE_ASSERT(offsetof(FrontFace, header) == 0, |
| 2535 OffsetOf_FrontFace_header_not_0); | 2535 OffsetOf_FrontFace_header_not_0); |
| 2536 COMPILE_ASSERT(offsetof(FrontFace, mode) == 4, | 2536 COMPILE_ASSERT(offsetof(FrontFace, mode) == 4, |
| 2537 OffsetOf_FrontFace_mode_not_4); | 2537 OffsetOf_FrontFace_mode_not_4); |
| 2538 | 2538 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2557 } | 2557 } |
| 2558 | 2558 |
| 2559 void* Set( | 2559 void* Set( |
| 2560 void* cmd, GLsizei _n, uint32 _buffers_shm_id, | 2560 void* cmd, GLsizei _n, uint32 _buffers_shm_id, |
| 2561 uint32 _buffers_shm_offset) { | 2561 uint32 _buffers_shm_offset) { |
| 2562 static_cast<ValueType*>( | 2562 static_cast<ValueType*>( |
| 2563 cmd)->Init(_n, _buffers_shm_id, _buffers_shm_offset); | 2563 cmd)->Init(_n, _buffers_shm_id, _buffers_shm_offset); |
| 2564 return NextCmdAddress<ValueType>(cmd); | 2564 return NextCmdAddress<ValueType>(cmd); |
| 2565 } | 2565 } |
| 2566 | 2566 |
| 2567 command_buffer::CommandHeader header; | 2567 gpu::CommandHeader header; |
| 2568 uint32 n; | 2568 uint32 n; |
| 2569 uint32 buffers_shm_id; | 2569 uint32 buffers_shm_id; |
| 2570 uint32 buffers_shm_offset; | 2570 uint32 buffers_shm_offset; |
| 2571 }; | 2571 }; |
| 2572 | 2572 |
| 2573 COMPILE_ASSERT(sizeof(GenBuffers) == 16, | 2573 COMPILE_ASSERT(sizeof(GenBuffers) == 16, |
| 2574 Sizeof_GenBuffers_is_not_16); | 2574 Sizeof_GenBuffers_is_not_16); |
| 2575 COMPILE_ASSERT(offsetof(GenBuffers, header) == 0, | 2575 COMPILE_ASSERT(offsetof(GenBuffers, header) == 0, |
| 2576 OffsetOf_GenBuffers_header_not_0); | 2576 OffsetOf_GenBuffers_header_not_0); |
| 2577 COMPILE_ASSERT(offsetof(GenBuffers, n) == 4, | 2577 COMPILE_ASSERT(offsetof(GenBuffers, n) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2605 memcpy(ImmediateDataAddress(this), | 2605 memcpy(ImmediateDataAddress(this), |
| 2606 _buffers, ComputeDataSize(_n)); | 2606 _buffers, ComputeDataSize(_n)); |
| 2607 } | 2607 } |
| 2608 | 2608 |
| 2609 void* Set(void* cmd, GLsizei _n, GLuint* _buffers) { | 2609 void* Set(void* cmd, GLsizei _n, GLuint* _buffers) { |
| 2610 static_cast<ValueType*>(cmd)->Init(_n, _buffers); | 2610 static_cast<ValueType*>(cmd)->Init(_n, _buffers); |
| 2611 const uint32 size = ComputeSize(_n); | 2611 const uint32 size = ComputeSize(_n); |
| 2612 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 2612 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 2613 } | 2613 } |
| 2614 | 2614 |
| 2615 command_buffer::CommandHeader header; | 2615 gpu::CommandHeader header; |
| 2616 uint32 n; | 2616 uint32 n; |
| 2617 }; | 2617 }; |
| 2618 | 2618 |
| 2619 COMPILE_ASSERT(sizeof(GenBuffersImmediate) == 8, | 2619 COMPILE_ASSERT(sizeof(GenBuffersImmediate) == 8, |
| 2620 Sizeof_GenBuffersImmediate_is_not_8); | 2620 Sizeof_GenBuffersImmediate_is_not_8); |
| 2621 COMPILE_ASSERT(offsetof(GenBuffersImmediate, header) == 0, | 2621 COMPILE_ASSERT(offsetof(GenBuffersImmediate, header) == 0, |
| 2622 OffsetOf_GenBuffersImmediate_header_not_0); | 2622 OffsetOf_GenBuffersImmediate_header_not_0); |
| 2623 COMPILE_ASSERT(offsetof(GenBuffersImmediate, n) == 4, | 2623 COMPILE_ASSERT(offsetof(GenBuffersImmediate, n) == 4, |
| 2624 OffsetOf_GenBuffersImmediate_n_not_4); | 2624 OffsetOf_GenBuffersImmediate_n_not_4); |
| 2625 | 2625 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2639 void Init(GLenum _target) { | 2639 void Init(GLenum _target) { |
| 2640 SetHeader(); | 2640 SetHeader(); |
| 2641 target = _target; | 2641 target = _target; |
| 2642 } | 2642 } |
| 2643 | 2643 |
| 2644 void* Set(void* cmd, GLenum _target) { | 2644 void* Set(void* cmd, GLenum _target) { |
| 2645 static_cast<ValueType*>(cmd)->Init(_target); | 2645 static_cast<ValueType*>(cmd)->Init(_target); |
| 2646 return NextCmdAddress<ValueType>(cmd); | 2646 return NextCmdAddress<ValueType>(cmd); |
| 2647 } | 2647 } |
| 2648 | 2648 |
| 2649 command_buffer::CommandHeader header; | 2649 gpu::CommandHeader header; |
| 2650 uint32 target; | 2650 uint32 target; |
| 2651 }; | 2651 }; |
| 2652 | 2652 |
| 2653 COMPILE_ASSERT(sizeof(GenerateMipmap) == 8, | 2653 COMPILE_ASSERT(sizeof(GenerateMipmap) == 8, |
| 2654 Sizeof_GenerateMipmap_is_not_8); | 2654 Sizeof_GenerateMipmap_is_not_8); |
| 2655 COMPILE_ASSERT(offsetof(GenerateMipmap, header) == 0, | 2655 COMPILE_ASSERT(offsetof(GenerateMipmap, header) == 0, |
| 2656 OffsetOf_GenerateMipmap_header_not_0); | 2656 OffsetOf_GenerateMipmap_header_not_0); |
| 2657 COMPILE_ASSERT(offsetof(GenerateMipmap, target) == 4, | 2657 COMPILE_ASSERT(offsetof(GenerateMipmap, target) == 4, |
| 2658 OffsetOf_GenerateMipmap_target_not_4); | 2658 OffsetOf_GenerateMipmap_target_not_4); |
| 2659 | 2659 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2680 } | 2680 } |
| 2681 | 2681 |
| 2682 void* Set( | 2682 void* Set( |
| 2683 void* cmd, GLsizei _n, uint32 _framebuffers_shm_id, | 2683 void* cmd, GLsizei _n, uint32 _framebuffers_shm_id, |
| 2684 uint32 _framebuffers_shm_offset) { | 2684 uint32 _framebuffers_shm_offset) { |
| 2685 static_cast<ValueType*>( | 2685 static_cast<ValueType*>( |
| 2686 cmd)->Init(_n, _framebuffers_shm_id, _framebuffers_shm_offset); | 2686 cmd)->Init(_n, _framebuffers_shm_id, _framebuffers_shm_offset); |
| 2687 return NextCmdAddress<ValueType>(cmd); | 2687 return NextCmdAddress<ValueType>(cmd); |
| 2688 } | 2688 } |
| 2689 | 2689 |
| 2690 command_buffer::CommandHeader header; | 2690 gpu::CommandHeader header; |
| 2691 uint32 n; | 2691 uint32 n; |
| 2692 uint32 framebuffers_shm_id; | 2692 uint32 framebuffers_shm_id; |
| 2693 uint32 framebuffers_shm_offset; | 2693 uint32 framebuffers_shm_offset; |
| 2694 }; | 2694 }; |
| 2695 | 2695 |
| 2696 COMPILE_ASSERT(sizeof(GenFramebuffers) == 16, | 2696 COMPILE_ASSERT(sizeof(GenFramebuffers) == 16, |
| 2697 Sizeof_GenFramebuffers_is_not_16); | 2697 Sizeof_GenFramebuffers_is_not_16); |
| 2698 COMPILE_ASSERT(offsetof(GenFramebuffers, header) == 0, | 2698 COMPILE_ASSERT(offsetof(GenFramebuffers, header) == 0, |
| 2699 OffsetOf_GenFramebuffers_header_not_0); | 2699 OffsetOf_GenFramebuffers_header_not_0); |
| 2700 COMPILE_ASSERT(offsetof(GenFramebuffers, n) == 4, | 2700 COMPILE_ASSERT(offsetof(GenFramebuffers, n) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2728 memcpy(ImmediateDataAddress(this), | 2728 memcpy(ImmediateDataAddress(this), |
| 2729 _framebuffers, ComputeDataSize(_n)); | 2729 _framebuffers, ComputeDataSize(_n)); |
| 2730 } | 2730 } |
| 2731 | 2731 |
| 2732 void* Set(void* cmd, GLsizei _n, GLuint* _framebuffers) { | 2732 void* Set(void* cmd, GLsizei _n, GLuint* _framebuffers) { |
| 2733 static_cast<ValueType*>(cmd)->Init(_n, _framebuffers); | 2733 static_cast<ValueType*>(cmd)->Init(_n, _framebuffers); |
| 2734 const uint32 size = ComputeSize(_n); | 2734 const uint32 size = ComputeSize(_n); |
| 2735 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 2735 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 2736 } | 2736 } |
| 2737 | 2737 |
| 2738 command_buffer::CommandHeader header; | 2738 gpu::CommandHeader header; |
| 2739 uint32 n; | 2739 uint32 n; |
| 2740 }; | 2740 }; |
| 2741 | 2741 |
| 2742 COMPILE_ASSERT(sizeof(GenFramebuffersImmediate) == 8, | 2742 COMPILE_ASSERT(sizeof(GenFramebuffersImmediate) == 8, |
| 2743 Sizeof_GenFramebuffersImmediate_is_not_8); | 2743 Sizeof_GenFramebuffersImmediate_is_not_8); |
| 2744 COMPILE_ASSERT(offsetof(GenFramebuffersImmediate, header) == 0, | 2744 COMPILE_ASSERT(offsetof(GenFramebuffersImmediate, header) == 0, |
| 2745 OffsetOf_GenFramebuffersImmediate_header_not_0); | 2745 OffsetOf_GenFramebuffersImmediate_header_not_0); |
| 2746 COMPILE_ASSERT(offsetof(GenFramebuffersImmediate, n) == 4, | 2746 COMPILE_ASSERT(offsetof(GenFramebuffersImmediate, n) == 4, |
| 2747 OffsetOf_GenFramebuffersImmediate_n_not_4); | 2747 OffsetOf_GenFramebuffersImmediate_n_not_4); |
| 2748 | 2748 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2769 } | 2769 } |
| 2770 | 2770 |
| 2771 void* Set( | 2771 void* Set( |
| 2772 void* cmd, GLsizei _n, uint32 _renderbuffers_shm_id, | 2772 void* cmd, GLsizei _n, uint32 _renderbuffers_shm_id, |
| 2773 uint32 _renderbuffers_shm_offset) { | 2773 uint32 _renderbuffers_shm_offset) { |
| 2774 static_cast<ValueType*>( | 2774 static_cast<ValueType*>( |
| 2775 cmd)->Init(_n, _renderbuffers_shm_id, _renderbuffers_shm_offset); | 2775 cmd)->Init(_n, _renderbuffers_shm_id, _renderbuffers_shm_offset); |
| 2776 return NextCmdAddress<ValueType>(cmd); | 2776 return NextCmdAddress<ValueType>(cmd); |
| 2777 } | 2777 } |
| 2778 | 2778 |
| 2779 command_buffer::CommandHeader header; | 2779 gpu::CommandHeader header; |
| 2780 uint32 n; | 2780 uint32 n; |
| 2781 uint32 renderbuffers_shm_id; | 2781 uint32 renderbuffers_shm_id; |
| 2782 uint32 renderbuffers_shm_offset; | 2782 uint32 renderbuffers_shm_offset; |
| 2783 }; | 2783 }; |
| 2784 | 2784 |
| 2785 COMPILE_ASSERT(sizeof(GenRenderbuffers) == 16, | 2785 COMPILE_ASSERT(sizeof(GenRenderbuffers) == 16, |
| 2786 Sizeof_GenRenderbuffers_is_not_16); | 2786 Sizeof_GenRenderbuffers_is_not_16); |
| 2787 COMPILE_ASSERT(offsetof(GenRenderbuffers, header) == 0, | 2787 COMPILE_ASSERT(offsetof(GenRenderbuffers, header) == 0, |
| 2788 OffsetOf_GenRenderbuffers_header_not_0); | 2788 OffsetOf_GenRenderbuffers_header_not_0); |
| 2789 COMPILE_ASSERT(offsetof(GenRenderbuffers, n) == 4, | 2789 COMPILE_ASSERT(offsetof(GenRenderbuffers, n) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2817 memcpy(ImmediateDataAddress(this), | 2817 memcpy(ImmediateDataAddress(this), |
| 2818 _renderbuffers, ComputeDataSize(_n)); | 2818 _renderbuffers, ComputeDataSize(_n)); |
| 2819 } | 2819 } |
| 2820 | 2820 |
| 2821 void* Set(void* cmd, GLsizei _n, GLuint* _renderbuffers) { | 2821 void* Set(void* cmd, GLsizei _n, GLuint* _renderbuffers) { |
| 2822 static_cast<ValueType*>(cmd)->Init(_n, _renderbuffers); | 2822 static_cast<ValueType*>(cmd)->Init(_n, _renderbuffers); |
| 2823 const uint32 size = ComputeSize(_n); | 2823 const uint32 size = ComputeSize(_n); |
| 2824 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 2824 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 2825 } | 2825 } |
| 2826 | 2826 |
| 2827 command_buffer::CommandHeader header; | 2827 gpu::CommandHeader header; |
| 2828 uint32 n; | 2828 uint32 n; |
| 2829 }; | 2829 }; |
| 2830 | 2830 |
| 2831 COMPILE_ASSERT(sizeof(GenRenderbuffersImmediate) == 8, | 2831 COMPILE_ASSERT(sizeof(GenRenderbuffersImmediate) == 8, |
| 2832 Sizeof_GenRenderbuffersImmediate_is_not_8); | 2832 Sizeof_GenRenderbuffersImmediate_is_not_8); |
| 2833 COMPILE_ASSERT(offsetof(GenRenderbuffersImmediate, header) == 0, | 2833 COMPILE_ASSERT(offsetof(GenRenderbuffersImmediate, header) == 0, |
| 2834 OffsetOf_GenRenderbuffersImmediate_header_not_0); | 2834 OffsetOf_GenRenderbuffersImmediate_header_not_0); |
| 2835 COMPILE_ASSERT(offsetof(GenRenderbuffersImmediate, n) == 4, | 2835 COMPILE_ASSERT(offsetof(GenRenderbuffersImmediate, n) == 4, |
| 2836 OffsetOf_GenRenderbuffersImmediate_n_not_4); | 2836 OffsetOf_GenRenderbuffersImmediate_n_not_4); |
| 2837 | 2837 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2856 } | 2856 } |
| 2857 | 2857 |
| 2858 void* Set( | 2858 void* Set( |
| 2859 void* cmd, GLsizei _n, uint32 _textures_shm_id, | 2859 void* cmd, GLsizei _n, uint32 _textures_shm_id, |
| 2860 uint32 _textures_shm_offset) { | 2860 uint32 _textures_shm_offset) { |
| 2861 static_cast<ValueType*>( | 2861 static_cast<ValueType*>( |
| 2862 cmd)->Init(_n, _textures_shm_id, _textures_shm_offset); | 2862 cmd)->Init(_n, _textures_shm_id, _textures_shm_offset); |
| 2863 return NextCmdAddress<ValueType>(cmd); | 2863 return NextCmdAddress<ValueType>(cmd); |
| 2864 } | 2864 } |
| 2865 | 2865 |
| 2866 command_buffer::CommandHeader header; | 2866 gpu::CommandHeader header; |
| 2867 uint32 n; | 2867 uint32 n; |
| 2868 uint32 textures_shm_id; | 2868 uint32 textures_shm_id; |
| 2869 uint32 textures_shm_offset; | 2869 uint32 textures_shm_offset; |
| 2870 }; | 2870 }; |
| 2871 | 2871 |
| 2872 COMPILE_ASSERT(sizeof(GenTextures) == 16, | 2872 COMPILE_ASSERT(sizeof(GenTextures) == 16, |
| 2873 Sizeof_GenTextures_is_not_16); | 2873 Sizeof_GenTextures_is_not_16); |
| 2874 COMPILE_ASSERT(offsetof(GenTextures, header) == 0, | 2874 COMPILE_ASSERT(offsetof(GenTextures, header) == 0, |
| 2875 OffsetOf_GenTextures_header_not_0); | 2875 OffsetOf_GenTextures_header_not_0); |
| 2876 COMPILE_ASSERT(offsetof(GenTextures, n) == 4, | 2876 COMPILE_ASSERT(offsetof(GenTextures, n) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2904 memcpy(ImmediateDataAddress(this), | 2904 memcpy(ImmediateDataAddress(this), |
| 2905 _textures, ComputeDataSize(_n)); | 2905 _textures, ComputeDataSize(_n)); |
| 2906 } | 2906 } |
| 2907 | 2907 |
| 2908 void* Set(void* cmd, GLsizei _n, GLuint* _textures) { | 2908 void* Set(void* cmd, GLsizei _n, GLuint* _textures) { |
| 2909 static_cast<ValueType*>(cmd)->Init(_n, _textures); | 2909 static_cast<ValueType*>(cmd)->Init(_n, _textures); |
| 2910 const uint32 size = ComputeSize(_n); | 2910 const uint32 size = ComputeSize(_n); |
| 2911 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 2911 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 2912 } | 2912 } |
| 2913 | 2913 |
| 2914 command_buffer::CommandHeader header; | 2914 gpu::CommandHeader header; |
| 2915 uint32 n; | 2915 uint32 n; |
| 2916 }; | 2916 }; |
| 2917 | 2917 |
| 2918 COMPILE_ASSERT(sizeof(GenTexturesImmediate) == 8, | 2918 COMPILE_ASSERT(sizeof(GenTexturesImmediate) == 8, |
| 2919 Sizeof_GenTexturesImmediate_is_not_8); | 2919 Sizeof_GenTexturesImmediate_is_not_8); |
| 2920 COMPILE_ASSERT(offsetof(GenTexturesImmediate, header) == 0, | 2920 COMPILE_ASSERT(offsetof(GenTexturesImmediate, header) == 0, |
| 2921 OffsetOf_GenTexturesImmediate_header_not_0); | 2921 OffsetOf_GenTexturesImmediate_header_not_0); |
| 2922 COMPILE_ASSERT(offsetof(GenTexturesImmediate, n) == 4, | 2922 COMPILE_ASSERT(offsetof(GenTexturesImmediate, n) == 4, |
| 2923 OffsetOf_GenTexturesImmediate_n_not_4); | 2923 OffsetOf_GenTexturesImmediate_n_not_4); |
| 2924 | 2924 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2960 uint32 _size_shm_offset, uint32 _type_shm_id, uint32 _type_shm_offset, | 2960 uint32 _size_shm_offset, uint32 _type_shm_id, uint32 _type_shm_offset, |
| 2961 uint32 _name_shm_id, uint32 _name_shm_offset) { | 2961 uint32 _name_shm_id, uint32 _name_shm_offset) { |
| 2962 static_cast<ValueType*>( | 2962 static_cast<ValueType*>( |
| 2963 cmd)->Init( | 2963 cmd)->Init( |
| 2964 _program, _index, _bufsize, _length_shm_id, _length_shm_offset, | 2964 _program, _index, _bufsize, _length_shm_id, _length_shm_offset, |
| 2965 _size_shm_id, _size_shm_offset, _type_shm_id, _type_shm_offset, | 2965 _size_shm_id, _size_shm_offset, _type_shm_id, _type_shm_offset, |
| 2966 _name_shm_id, _name_shm_offset); | 2966 _name_shm_id, _name_shm_offset); |
| 2967 return NextCmdAddress<ValueType>(cmd); | 2967 return NextCmdAddress<ValueType>(cmd); |
| 2968 } | 2968 } |
| 2969 | 2969 |
| 2970 command_buffer::CommandHeader header; | 2970 gpu::CommandHeader header; |
| 2971 uint32 program; | 2971 uint32 program; |
| 2972 uint32 index; | 2972 uint32 index; |
| 2973 uint32 bufsize; | 2973 uint32 bufsize; |
| 2974 uint32 length_shm_id; | 2974 uint32 length_shm_id; |
| 2975 uint32 length_shm_offset; | 2975 uint32 length_shm_offset; |
| 2976 uint32 size_shm_id; | 2976 uint32 size_shm_id; |
| 2977 uint32 size_shm_offset; | 2977 uint32 size_shm_offset; |
| 2978 uint32 type_shm_id; | 2978 uint32 type_shm_id; |
| 2979 uint32 type_shm_offset; | 2979 uint32 type_shm_offset; |
| 2980 uint32 name_shm_id; | 2980 uint32 name_shm_id; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3046 uint32 _size_shm_offset, uint32 _type_shm_id, uint32 _type_shm_offset, | 3046 uint32 _size_shm_offset, uint32 _type_shm_id, uint32 _type_shm_offset, |
| 3047 uint32 _name_shm_id, uint32 _name_shm_offset) { | 3047 uint32 _name_shm_id, uint32 _name_shm_offset) { |
| 3048 static_cast<ValueType*>( | 3048 static_cast<ValueType*>( |
| 3049 cmd)->Init( | 3049 cmd)->Init( |
| 3050 _program, _index, _bufsize, _length_shm_id, _length_shm_offset, | 3050 _program, _index, _bufsize, _length_shm_id, _length_shm_offset, |
| 3051 _size_shm_id, _size_shm_offset, _type_shm_id, _type_shm_offset, | 3051 _size_shm_id, _size_shm_offset, _type_shm_id, _type_shm_offset, |
| 3052 _name_shm_id, _name_shm_offset); | 3052 _name_shm_id, _name_shm_offset); |
| 3053 return NextCmdAddress<ValueType>(cmd); | 3053 return NextCmdAddress<ValueType>(cmd); |
| 3054 } | 3054 } |
| 3055 | 3055 |
| 3056 command_buffer::CommandHeader header; | 3056 gpu::CommandHeader header; |
| 3057 uint32 program; | 3057 uint32 program; |
| 3058 uint32 index; | 3058 uint32 index; |
| 3059 uint32 bufsize; | 3059 uint32 bufsize; |
| 3060 uint32 length_shm_id; | 3060 uint32 length_shm_id; |
| 3061 uint32 length_shm_offset; | 3061 uint32 length_shm_offset; |
| 3062 uint32 size_shm_id; | 3062 uint32 size_shm_id; |
| 3063 uint32 size_shm_offset; | 3063 uint32 size_shm_offset; |
| 3064 uint32 type_shm_id; | 3064 uint32 type_shm_id; |
| 3065 uint32 type_shm_offset; | 3065 uint32 type_shm_offset; |
| 3066 uint32 name_shm_id; | 3066 uint32 name_shm_id; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3124 void* cmd, GLuint _program, GLsizei _maxcount, uint32 _count_shm_id, | 3124 void* cmd, GLuint _program, GLsizei _maxcount, uint32 _count_shm_id, |
| 3125 uint32 _count_shm_offset, uint32 _shaders_shm_id, | 3125 uint32 _count_shm_offset, uint32 _shaders_shm_id, |
| 3126 uint32 _shaders_shm_offset) { | 3126 uint32 _shaders_shm_offset) { |
| 3127 static_cast<ValueType*>( | 3127 static_cast<ValueType*>( |
| 3128 cmd)->Init( | 3128 cmd)->Init( |
| 3129 _program, _maxcount, _count_shm_id, _count_shm_offset, | 3129 _program, _maxcount, _count_shm_id, _count_shm_offset, |
| 3130 _shaders_shm_id, _shaders_shm_offset); | 3130 _shaders_shm_id, _shaders_shm_offset); |
| 3131 return NextCmdAddress<ValueType>(cmd); | 3131 return NextCmdAddress<ValueType>(cmd); |
| 3132 } | 3132 } |
| 3133 | 3133 |
| 3134 command_buffer::CommandHeader header; | 3134 gpu::CommandHeader header; |
| 3135 uint32 program; | 3135 uint32 program; |
| 3136 uint32 maxcount; | 3136 uint32 maxcount; |
| 3137 uint32 count_shm_id; | 3137 uint32 count_shm_id; |
| 3138 uint32 count_shm_offset; | 3138 uint32 count_shm_offset; |
| 3139 uint32 shaders_shm_id; | 3139 uint32 shaders_shm_id; |
| 3140 uint32 shaders_shm_offset; | 3140 uint32 shaders_shm_offset; |
| 3141 }; | 3141 }; |
| 3142 | 3142 |
| 3143 COMPILE_ASSERT(sizeof(GetAttachedShaders) == 28, | 3143 COMPILE_ASSERT(sizeof(GetAttachedShaders) == 28, |
| 3144 Sizeof_GetAttachedShaders_is_not_28); | 3144 Sizeof_GetAttachedShaders_is_not_28); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3178 } | 3178 } |
| 3179 | 3179 |
| 3180 void* Set( | 3180 void* Set( |
| 3181 void* cmd, GLenum _pname, uint32 _params_shm_id, | 3181 void* cmd, GLenum _pname, uint32 _params_shm_id, |
| 3182 uint32 _params_shm_offset) { | 3182 uint32 _params_shm_offset) { |
| 3183 static_cast<ValueType*>( | 3183 static_cast<ValueType*>( |
| 3184 cmd)->Init(_pname, _params_shm_id, _params_shm_offset); | 3184 cmd)->Init(_pname, _params_shm_id, _params_shm_offset); |
| 3185 return NextCmdAddress<ValueType>(cmd); | 3185 return NextCmdAddress<ValueType>(cmd); |
| 3186 } | 3186 } |
| 3187 | 3187 |
| 3188 command_buffer::CommandHeader header; | 3188 gpu::CommandHeader header; |
| 3189 uint32 pname; | 3189 uint32 pname; |
| 3190 uint32 params_shm_id; | 3190 uint32 params_shm_id; |
| 3191 uint32 params_shm_offset; | 3191 uint32 params_shm_offset; |
| 3192 }; | 3192 }; |
| 3193 | 3193 |
| 3194 COMPILE_ASSERT(sizeof(GetBooleanv) == 16, | 3194 COMPILE_ASSERT(sizeof(GetBooleanv) == 16, |
| 3195 Sizeof_GetBooleanv_is_not_16); | 3195 Sizeof_GetBooleanv_is_not_16); |
| 3196 COMPILE_ASSERT(offsetof(GetBooleanv, header) == 0, | 3196 COMPILE_ASSERT(offsetof(GetBooleanv, header) == 0, |
| 3197 OffsetOf_GetBooleanv_header_not_0); | 3197 OffsetOf_GetBooleanv_header_not_0); |
| 3198 COMPILE_ASSERT(offsetof(GetBooleanv, pname) == 4, | 3198 COMPILE_ASSERT(offsetof(GetBooleanv, pname) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 3226 } | 3226 } |
| 3227 | 3227 |
| 3228 void* Set( | 3228 void* Set( |
| 3229 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, | 3229 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, |
| 3230 uint32 _params_shm_offset) { | 3230 uint32 _params_shm_offset) { |
| 3231 static_cast<ValueType*>( | 3231 static_cast<ValueType*>( |
| 3232 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); | 3232 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); |
| 3233 return NextCmdAddress<ValueType>(cmd); | 3233 return NextCmdAddress<ValueType>(cmd); |
| 3234 } | 3234 } |
| 3235 | 3235 |
| 3236 command_buffer::CommandHeader header; | 3236 gpu::CommandHeader header; |
| 3237 uint32 target; | 3237 uint32 target; |
| 3238 uint32 pname; | 3238 uint32 pname; |
| 3239 uint32 params_shm_id; | 3239 uint32 params_shm_id; |
| 3240 uint32 params_shm_offset; | 3240 uint32 params_shm_offset; |
| 3241 }; | 3241 }; |
| 3242 | 3242 |
| 3243 COMPILE_ASSERT(sizeof(GetBufferParameteriv) == 20, | 3243 COMPILE_ASSERT(sizeof(GetBufferParameteriv) == 20, |
| 3244 Sizeof_GetBufferParameteriv_is_not_20); | 3244 Sizeof_GetBufferParameteriv_is_not_20); |
| 3245 COMPILE_ASSERT(offsetof(GetBufferParameteriv, header) == 0, | 3245 COMPILE_ASSERT(offsetof(GetBufferParameteriv, header) == 0, |
| 3246 OffsetOf_GetBufferParameteriv_header_not_0); | 3246 OffsetOf_GetBufferParameteriv_header_not_0); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3270 SetHeader(); | 3270 SetHeader(); |
| 3271 result_shm_id = _result_shm_id; | 3271 result_shm_id = _result_shm_id; |
| 3272 result_shm_offset = _result_shm_offset; | 3272 result_shm_offset = _result_shm_offset; |
| 3273 } | 3273 } |
| 3274 | 3274 |
| 3275 void* Set(void* cmd, uint32 _result_shm_id, uint32 _result_shm_offset) { | 3275 void* Set(void* cmd, uint32 _result_shm_id, uint32 _result_shm_offset) { |
| 3276 static_cast<ValueType*>(cmd)->Init(_result_shm_id, _result_shm_offset); | 3276 static_cast<ValueType*>(cmd)->Init(_result_shm_id, _result_shm_offset); |
| 3277 return NextCmdAddress<ValueType>(cmd); | 3277 return NextCmdAddress<ValueType>(cmd); |
| 3278 } | 3278 } |
| 3279 | 3279 |
| 3280 command_buffer::CommandHeader header; | 3280 gpu::CommandHeader header; |
| 3281 uint32 result_shm_id; | 3281 uint32 result_shm_id; |
| 3282 uint32 result_shm_offset; | 3282 uint32 result_shm_offset; |
| 3283 }; | 3283 }; |
| 3284 | 3284 |
| 3285 COMPILE_ASSERT(sizeof(GetError) == 12, | 3285 COMPILE_ASSERT(sizeof(GetError) == 12, |
| 3286 Sizeof_GetError_is_not_12); | 3286 Sizeof_GetError_is_not_12); |
| 3287 COMPILE_ASSERT(offsetof(GetError, header) == 0, | 3287 COMPILE_ASSERT(offsetof(GetError, header) == 0, |
| 3288 OffsetOf_GetError_header_not_0); | 3288 OffsetOf_GetError_header_not_0); |
| 3289 COMPILE_ASSERT(offsetof(GetError, result_shm_id) == 4, | 3289 COMPILE_ASSERT(offsetof(GetError, result_shm_id) == 4, |
| 3290 OffsetOf_GetError_result_shm_id_not_4); | 3290 OffsetOf_GetError_result_shm_id_not_4); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3312 } | 3312 } |
| 3313 | 3313 |
| 3314 void* Set( | 3314 void* Set( |
| 3315 void* cmd, GLenum _pname, uint32 _params_shm_id, | 3315 void* cmd, GLenum _pname, uint32 _params_shm_id, |
| 3316 uint32 _params_shm_offset) { | 3316 uint32 _params_shm_offset) { |
| 3317 static_cast<ValueType*>( | 3317 static_cast<ValueType*>( |
| 3318 cmd)->Init(_pname, _params_shm_id, _params_shm_offset); | 3318 cmd)->Init(_pname, _params_shm_id, _params_shm_offset); |
| 3319 return NextCmdAddress<ValueType>(cmd); | 3319 return NextCmdAddress<ValueType>(cmd); |
| 3320 } | 3320 } |
| 3321 | 3321 |
| 3322 command_buffer::CommandHeader header; | 3322 gpu::CommandHeader header; |
| 3323 uint32 pname; | 3323 uint32 pname; |
| 3324 uint32 params_shm_id; | 3324 uint32 params_shm_id; |
| 3325 uint32 params_shm_offset; | 3325 uint32 params_shm_offset; |
| 3326 }; | 3326 }; |
| 3327 | 3327 |
| 3328 COMPILE_ASSERT(sizeof(GetFloatv) == 16, | 3328 COMPILE_ASSERT(sizeof(GetFloatv) == 16, |
| 3329 Sizeof_GetFloatv_is_not_16); | 3329 Sizeof_GetFloatv_is_not_16); |
| 3330 COMPILE_ASSERT(offsetof(GetFloatv, header) == 0, | 3330 COMPILE_ASSERT(offsetof(GetFloatv, header) == 0, |
| 3331 OffsetOf_GetFloatv_header_not_0); | 3331 OffsetOf_GetFloatv_header_not_0); |
| 3332 COMPILE_ASSERT(offsetof(GetFloatv, pname) == 4, | 3332 COMPILE_ASSERT(offsetof(GetFloatv, pname) == 4, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3362 | 3362 |
| 3363 void* Set( | 3363 void* Set( |
| 3364 void* cmd, GLenum _target, GLenum _attachment, GLenum _pname, | 3364 void* cmd, GLenum _target, GLenum _attachment, GLenum _pname, |
| 3365 uint32 _params_shm_id, uint32 _params_shm_offset) { | 3365 uint32 _params_shm_id, uint32 _params_shm_offset) { |
| 3366 static_cast<ValueType*>( | 3366 static_cast<ValueType*>( |
| 3367 cmd)->Init( | 3367 cmd)->Init( |
| 3368 _target, _attachment, _pname, _params_shm_id, _params_shm_offset); | 3368 _target, _attachment, _pname, _params_shm_id, _params_shm_offset); |
| 3369 return NextCmdAddress<ValueType>(cmd); | 3369 return NextCmdAddress<ValueType>(cmd); |
| 3370 } | 3370 } |
| 3371 | 3371 |
| 3372 command_buffer::CommandHeader header; | 3372 gpu::CommandHeader header; |
| 3373 uint32 target; | 3373 uint32 target; |
| 3374 uint32 attachment; | 3374 uint32 attachment; |
| 3375 uint32 pname; | 3375 uint32 pname; |
| 3376 uint32 params_shm_id; | 3376 uint32 params_shm_id; |
| 3377 uint32 params_shm_offset; | 3377 uint32 params_shm_offset; |
| 3378 }; | 3378 }; |
| 3379 | 3379 |
| 3380 COMPILE_ASSERT(sizeof(GetFramebufferAttachmentParameteriv) == 24, | 3380 COMPILE_ASSERT(sizeof(GetFramebufferAttachmentParameteriv) == 24, |
| 3381 Sizeof_GetFramebufferAttachmentParameteriv_is_not_24); | 3381 Sizeof_GetFramebufferAttachmentParameteriv_is_not_24); |
| 3382 COMPILE_ASSERT(offsetof(GetFramebufferAttachmentParameteriv, header) == 0, | 3382 COMPILE_ASSERT(offsetof(GetFramebufferAttachmentParameteriv, header) == 0, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3415 } | 3415 } |
| 3416 | 3416 |
| 3417 void* Set( | 3417 void* Set( |
| 3418 void* cmd, GLenum _pname, uint32 _params_shm_id, | 3418 void* cmd, GLenum _pname, uint32 _params_shm_id, |
| 3419 uint32 _params_shm_offset) { | 3419 uint32 _params_shm_offset) { |
| 3420 static_cast<ValueType*>( | 3420 static_cast<ValueType*>( |
| 3421 cmd)->Init(_pname, _params_shm_id, _params_shm_offset); | 3421 cmd)->Init(_pname, _params_shm_id, _params_shm_offset); |
| 3422 return NextCmdAddress<ValueType>(cmd); | 3422 return NextCmdAddress<ValueType>(cmd); |
| 3423 } | 3423 } |
| 3424 | 3424 |
| 3425 command_buffer::CommandHeader header; | 3425 gpu::CommandHeader header; |
| 3426 uint32 pname; | 3426 uint32 pname; |
| 3427 uint32 params_shm_id; | 3427 uint32 params_shm_id; |
| 3428 uint32 params_shm_offset; | 3428 uint32 params_shm_offset; |
| 3429 }; | 3429 }; |
| 3430 | 3430 |
| 3431 COMPILE_ASSERT(sizeof(GetIntegerv) == 16, | 3431 COMPILE_ASSERT(sizeof(GetIntegerv) == 16, |
| 3432 Sizeof_GetIntegerv_is_not_16); | 3432 Sizeof_GetIntegerv_is_not_16); |
| 3433 COMPILE_ASSERT(offsetof(GetIntegerv, header) == 0, | 3433 COMPILE_ASSERT(offsetof(GetIntegerv, header) == 0, |
| 3434 OffsetOf_GetIntegerv_header_not_0); | 3434 OffsetOf_GetIntegerv_header_not_0); |
| 3435 COMPILE_ASSERT(offsetof(GetIntegerv, pname) == 4, | 3435 COMPILE_ASSERT(offsetof(GetIntegerv, pname) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 3463 } | 3463 } |
| 3464 | 3464 |
| 3465 void* Set( | 3465 void* Set( |
| 3466 void* cmd, GLuint _program, GLenum _pname, uint32 _params_shm_id, | 3466 void* cmd, GLuint _program, GLenum _pname, uint32 _params_shm_id, |
| 3467 uint32 _params_shm_offset) { | 3467 uint32 _params_shm_offset) { |
| 3468 static_cast<ValueType*>( | 3468 static_cast<ValueType*>( |
| 3469 cmd)->Init(_program, _pname, _params_shm_id, _params_shm_offset); | 3469 cmd)->Init(_program, _pname, _params_shm_id, _params_shm_offset); |
| 3470 return NextCmdAddress<ValueType>(cmd); | 3470 return NextCmdAddress<ValueType>(cmd); |
| 3471 } | 3471 } |
| 3472 | 3472 |
| 3473 command_buffer::CommandHeader header; | 3473 gpu::CommandHeader header; |
| 3474 uint32 program; | 3474 uint32 program; |
| 3475 uint32 pname; | 3475 uint32 pname; |
| 3476 uint32 params_shm_id; | 3476 uint32 params_shm_id; |
| 3477 uint32 params_shm_offset; | 3477 uint32 params_shm_offset; |
| 3478 }; | 3478 }; |
| 3479 | 3479 |
| 3480 COMPILE_ASSERT(sizeof(GetProgramiv) == 20, | 3480 COMPILE_ASSERT(sizeof(GetProgramiv) == 20, |
| 3481 Sizeof_GetProgramiv_is_not_20); | 3481 Sizeof_GetProgramiv_is_not_20); |
| 3482 COMPILE_ASSERT(offsetof(GetProgramiv, header) == 0, | 3482 COMPILE_ASSERT(offsetof(GetProgramiv, header) == 0, |
| 3483 OffsetOf_GetProgramiv_header_not_0); | 3483 OffsetOf_GetProgramiv_header_not_0); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3520 void* cmd, GLuint _program, GLsizei _bufsize, uint32 _length_shm_id, | 3520 void* cmd, GLuint _program, GLsizei _bufsize, uint32 _length_shm_id, |
| 3521 uint32 _length_shm_offset, uint32 _infolog_shm_id, | 3521 uint32 _length_shm_offset, uint32 _infolog_shm_id, |
| 3522 uint32 _infolog_shm_offset) { | 3522 uint32 _infolog_shm_offset) { |
| 3523 static_cast<ValueType*>( | 3523 static_cast<ValueType*>( |
| 3524 cmd)->Init( | 3524 cmd)->Init( |
| 3525 _program, _bufsize, _length_shm_id, _length_shm_offset, | 3525 _program, _bufsize, _length_shm_id, _length_shm_offset, |
| 3526 _infolog_shm_id, _infolog_shm_offset); | 3526 _infolog_shm_id, _infolog_shm_offset); |
| 3527 return NextCmdAddress<ValueType>(cmd); | 3527 return NextCmdAddress<ValueType>(cmd); |
| 3528 } | 3528 } |
| 3529 | 3529 |
| 3530 command_buffer::CommandHeader header; | 3530 gpu::CommandHeader header; |
| 3531 uint32 program; | 3531 uint32 program; |
| 3532 uint32 bufsize; | 3532 uint32 bufsize; |
| 3533 uint32 length_shm_id; | 3533 uint32 length_shm_id; |
| 3534 uint32 length_shm_offset; | 3534 uint32 length_shm_offset; |
| 3535 uint32 infolog_shm_id; | 3535 uint32 infolog_shm_id; |
| 3536 uint32 infolog_shm_offset; | 3536 uint32 infolog_shm_offset; |
| 3537 }; | 3537 }; |
| 3538 | 3538 |
| 3539 COMPILE_ASSERT(sizeof(GetProgramInfoLog) == 28, | 3539 COMPILE_ASSERT(sizeof(GetProgramInfoLog) == 28, |
| 3540 Sizeof_GetProgramInfoLog_is_not_28); | 3540 Sizeof_GetProgramInfoLog_is_not_28); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3577 } | 3577 } |
| 3578 | 3578 |
| 3579 void* Set( | 3579 void* Set( |
| 3580 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, | 3580 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, |
| 3581 uint32 _params_shm_offset) { | 3581 uint32 _params_shm_offset) { |
| 3582 static_cast<ValueType*>( | 3582 static_cast<ValueType*>( |
| 3583 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); | 3583 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); |
| 3584 return NextCmdAddress<ValueType>(cmd); | 3584 return NextCmdAddress<ValueType>(cmd); |
| 3585 } | 3585 } |
| 3586 | 3586 |
| 3587 command_buffer::CommandHeader header; | 3587 gpu::CommandHeader header; |
| 3588 uint32 target; | 3588 uint32 target; |
| 3589 uint32 pname; | 3589 uint32 pname; |
| 3590 uint32 params_shm_id; | 3590 uint32 params_shm_id; |
| 3591 uint32 params_shm_offset; | 3591 uint32 params_shm_offset; |
| 3592 }; | 3592 }; |
| 3593 | 3593 |
| 3594 COMPILE_ASSERT(sizeof(GetRenderbufferParameteriv) == 20, | 3594 COMPILE_ASSERT(sizeof(GetRenderbufferParameteriv) == 20, |
| 3595 Sizeof_GetRenderbufferParameteriv_is_not_20); | 3595 Sizeof_GetRenderbufferParameteriv_is_not_20); |
| 3596 COMPILE_ASSERT(offsetof(GetRenderbufferParameteriv, header) == 0, | 3596 COMPILE_ASSERT(offsetof(GetRenderbufferParameteriv, header) == 0, |
| 3597 OffsetOf_GetRenderbufferParameteriv_header_not_0); | 3597 OffsetOf_GetRenderbufferParameteriv_header_not_0); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 3628 } | 3628 } |
| 3629 | 3629 |
| 3630 void* Set( | 3630 void* Set( |
| 3631 void* cmd, GLuint _shader, GLenum _pname, uint32 _params_shm_id, | 3631 void* cmd, GLuint _shader, GLenum _pname, uint32 _params_shm_id, |
| 3632 uint32 _params_shm_offset) { | 3632 uint32 _params_shm_offset) { |
| 3633 static_cast<ValueType*>( | 3633 static_cast<ValueType*>( |
| 3634 cmd)->Init(_shader, _pname, _params_shm_id, _params_shm_offset); | 3634 cmd)->Init(_shader, _pname, _params_shm_id, _params_shm_offset); |
| 3635 return NextCmdAddress<ValueType>(cmd); | 3635 return NextCmdAddress<ValueType>(cmd); |
| 3636 } | 3636 } |
| 3637 | 3637 |
| 3638 command_buffer::CommandHeader header; | 3638 gpu::CommandHeader header; |
| 3639 uint32 shader; | 3639 uint32 shader; |
| 3640 uint32 pname; | 3640 uint32 pname; |
| 3641 uint32 params_shm_id; | 3641 uint32 params_shm_id; |
| 3642 uint32 params_shm_offset; | 3642 uint32 params_shm_offset; |
| 3643 }; | 3643 }; |
| 3644 | 3644 |
| 3645 COMPILE_ASSERT(sizeof(GetShaderiv) == 20, | 3645 COMPILE_ASSERT(sizeof(GetShaderiv) == 20, |
| 3646 Sizeof_GetShaderiv_is_not_20); | 3646 Sizeof_GetShaderiv_is_not_20); |
| 3647 COMPILE_ASSERT(offsetof(GetShaderiv, header) == 0, | 3647 COMPILE_ASSERT(offsetof(GetShaderiv, header) == 0, |
| 3648 OffsetOf_GetShaderiv_header_not_0); | 3648 OffsetOf_GetShaderiv_header_not_0); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3685 void* cmd, GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, | 3685 void* cmd, GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, |
| 3686 uint32 _length_shm_offset, uint32 _infolog_shm_id, | 3686 uint32 _length_shm_offset, uint32 _infolog_shm_id, |
| 3687 uint32 _infolog_shm_offset) { | 3687 uint32 _infolog_shm_offset) { |
| 3688 static_cast<ValueType*>( | 3688 static_cast<ValueType*>( |
| 3689 cmd)->Init( | 3689 cmd)->Init( |
| 3690 _shader, _bufsize, _length_shm_id, _length_shm_offset, | 3690 _shader, _bufsize, _length_shm_id, _length_shm_offset, |
| 3691 _infolog_shm_id, _infolog_shm_offset); | 3691 _infolog_shm_id, _infolog_shm_offset); |
| 3692 return NextCmdAddress<ValueType>(cmd); | 3692 return NextCmdAddress<ValueType>(cmd); |
| 3693 } | 3693 } |
| 3694 | 3694 |
| 3695 command_buffer::CommandHeader header; | 3695 gpu::CommandHeader header; |
| 3696 uint32 shader; | 3696 uint32 shader; |
| 3697 uint32 bufsize; | 3697 uint32 bufsize; |
| 3698 uint32 length_shm_id; | 3698 uint32 length_shm_id; |
| 3699 uint32 length_shm_offset; | 3699 uint32 length_shm_offset; |
| 3700 uint32 infolog_shm_id; | 3700 uint32 infolog_shm_id; |
| 3701 uint32 infolog_shm_offset; | 3701 uint32 infolog_shm_offset; |
| 3702 }; | 3702 }; |
| 3703 | 3703 |
| 3704 COMPILE_ASSERT(sizeof(GetShaderInfoLog) == 28, | 3704 COMPILE_ASSERT(sizeof(GetShaderInfoLog) == 28, |
| 3705 Sizeof_GetShaderInfoLog_is_not_28); | 3705 Sizeof_GetShaderInfoLog_is_not_28); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3748 void* cmd, GLenum _shadertype, GLenum _precisiontype, | 3748 void* cmd, GLenum _shadertype, GLenum _precisiontype, |
| 3749 uint32 _range_shm_id, uint32 _range_shm_offset, uint32 _precision_shm_id, | 3749 uint32 _range_shm_id, uint32 _range_shm_offset, uint32 _precision_shm_id, |
| 3750 uint32 _precision_shm_offset) { | 3750 uint32 _precision_shm_offset) { |
| 3751 static_cast<ValueType*>( | 3751 static_cast<ValueType*>( |
| 3752 cmd)->Init( | 3752 cmd)->Init( |
| 3753 _shadertype, _precisiontype, _range_shm_id, _range_shm_offset, | 3753 _shadertype, _precisiontype, _range_shm_id, _range_shm_offset, |
| 3754 _precision_shm_id, _precision_shm_offset); | 3754 _precision_shm_id, _precision_shm_offset); |
| 3755 return NextCmdAddress<ValueType>(cmd); | 3755 return NextCmdAddress<ValueType>(cmd); |
| 3756 } | 3756 } |
| 3757 | 3757 |
| 3758 command_buffer::CommandHeader header; | 3758 gpu::CommandHeader header; |
| 3759 uint32 shadertype; | 3759 uint32 shadertype; |
| 3760 uint32 precisiontype; | 3760 uint32 precisiontype; |
| 3761 uint32 range_shm_id; | 3761 uint32 range_shm_id; |
| 3762 uint32 range_shm_offset; | 3762 uint32 range_shm_offset; |
| 3763 uint32 precision_shm_id; | 3763 uint32 precision_shm_id; |
| 3764 uint32 precision_shm_offset; | 3764 uint32 precision_shm_offset; |
| 3765 }; | 3765 }; |
| 3766 | 3766 |
| 3767 COMPILE_ASSERT(sizeof(GetShaderPrecisionFormat) == 28, | 3767 COMPILE_ASSERT(sizeof(GetShaderPrecisionFormat) == 28, |
| 3768 Sizeof_GetShaderPrecisionFormat_is_not_28); | 3768 Sizeof_GetShaderPrecisionFormat_is_not_28); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3811 void* cmd, GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, | 3811 void* cmd, GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, |
| 3812 uint32 _length_shm_offset, uint32 _source_shm_id, | 3812 uint32 _length_shm_offset, uint32 _source_shm_id, |
| 3813 uint32 _source_shm_offset) { | 3813 uint32 _source_shm_offset) { |
| 3814 static_cast<ValueType*>( | 3814 static_cast<ValueType*>( |
| 3815 cmd)->Init( | 3815 cmd)->Init( |
| 3816 _shader, _bufsize, _length_shm_id, _length_shm_offset, | 3816 _shader, _bufsize, _length_shm_id, _length_shm_offset, |
| 3817 _source_shm_id, _source_shm_offset); | 3817 _source_shm_id, _source_shm_offset); |
| 3818 return NextCmdAddress<ValueType>(cmd); | 3818 return NextCmdAddress<ValueType>(cmd); |
| 3819 } | 3819 } |
| 3820 | 3820 |
| 3821 command_buffer::CommandHeader header; | 3821 gpu::CommandHeader header; |
| 3822 uint32 shader; | 3822 uint32 shader; |
| 3823 uint32 bufsize; | 3823 uint32 bufsize; |
| 3824 uint32 length_shm_id; | 3824 uint32 length_shm_id; |
| 3825 uint32 length_shm_offset; | 3825 uint32 length_shm_offset; |
| 3826 uint32 source_shm_id; | 3826 uint32 source_shm_id; |
| 3827 uint32 source_shm_offset; | 3827 uint32 source_shm_offset; |
| 3828 }; | 3828 }; |
| 3829 | 3829 |
| 3830 COMPILE_ASSERT(sizeof(GetShaderSource) == 28, | 3830 COMPILE_ASSERT(sizeof(GetShaderSource) == 28, |
| 3831 Sizeof_GetShaderSource_is_not_28); | 3831 Sizeof_GetShaderSource_is_not_28); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 3860 void Init(GLenum _name) { | 3860 void Init(GLenum _name) { |
| 3861 SetHeader(); | 3861 SetHeader(); |
| 3862 name = _name; | 3862 name = _name; |
| 3863 } | 3863 } |
| 3864 | 3864 |
| 3865 void* Set(void* cmd, GLenum _name) { | 3865 void* Set(void* cmd, GLenum _name) { |
| 3866 static_cast<ValueType*>(cmd)->Init(_name); | 3866 static_cast<ValueType*>(cmd)->Init(_name); |
| 3867 return NextCmdAddress<ValueType>(cmd); | 3867 return NextCmdAddress<ValueType>(cmd); |
| 3868 } | 3868 } |
| 3869 | 3869 |
| 3870 command_buffer::CommandHeader header; | 3870 gpu::CommandHeader header; |
| 3871 uint32 name; | 3871 uint32 name; |
| 3872 }; | 3872 }; |
| 3873 | 3873 |
| 3874 COMPILE_ASSERT(sizeof(GetString) == 8, | 3874 COMPILE_ASSERT(sizeof(GetString) == 8, |
| 3875 Sizeof_GetString_is_not_8); | 3875 Sizeof_GetString_is_not_8); |
| 3876 COMPILE_ASSERT(offsetof(GetString, header) == 0, | 3876 COMPILE_ASSERT(offsetof(GetString, header) == 0, |
| 3877 OffsetOf_GetString_header_not_0); | 3877 OffsetOf_GetString_header_not_0); |
| 3878 COMPILE_ASSERT(offsetof(GetString, name) == 4, | 3878 COMPILE_ASSERT(offsetof(GetString, name) == 4, |
| 3879 OffsetOf_GetString_name_not_4); | 3879 OffsetOf_GetString_name_not_4); |
| 3880 | 3880 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3902 } | 3902 } |
| 3903 | 3903 |
| 3904 void* Set( | 3904 void* Set( |
| 3905 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, | 3905 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, |
| 3906 uint32 _params_shm_offset) { | 3906 uint32 _params_shm_offset) { |
| 3907 static_cast<ValueType*>( | 3907 static_cast<ValueType*>( |
| 3908 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); | 3908 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); |
| 3909 return NextCmdAddress<ValueType>(cmd); | 3909 return NextCmdAddress<ValueType>(cmd); |
| 3910 } | 3910 } |
| 3911 | 3911 |
| 3912 command_buffer::CommandHeader header; | 3912 gpu::CommandHeader header; |
| 3913 uint32 target; | 3913 uint32 target; |
| 3914 uint32 pname; | 3914 uint32 pname; |
| 3915 uint32 params_shm_id; | 3915 uint32 params_shm_id; |
| 3916 uint32 params_shm_offset; | 3916 uint32 params_shm_offset; |
| 3917 }; | 3917 }; |
| 3918 | 3918 |
| 3919 COMPILE_ASSERT(sizeof(GetTexParameterfv) == 20, | 3919 COMPILE_ASSERT(sizeof(GetTexParameterfv) == 20, |
| 3920 Sizeof_GetTexParameterfv_is_not_20); | 3920 Sizeof_GetTexParameterfv_is_not_20); |
| 3921 COMPILE_ASSERT(offsetof(GetTexParameterfv, header) == 0, | 3921 COMPILE_ASSERT(offsetof(GetTexParameterfv, header) == 0, |
| 3922 OffsetOf_GetTexParameterfv_header_not_0); | 3922 OffsetOf_GetTexParameterfv_header_not_0); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 3953 } | 3953 } |
| 3954 | 3954 |
| 3955 void* Set( | 3955 void* Set( |
| 3956 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, | 3956 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, |
| 3957 uint32 _params_shm_offset) { | 3957 uint32 _params_shm_offset) { |
| 3958 static_cast<ValueType*>( | 3958 static_cast<ValueType*>( |
| 3959 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); | 3959 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); |
| 3960 return NextCmdAddress<ValueType>(cmd); | 3960 return NextCmdAddress<ValueType>(cmd); |
| 3961 } | 3961 } |
| 3962 | 3962 |
| 3963 command_buffer::CommandHeader header; | 3963 gpu::CommandHeader header; |
| 3964 uint32 target; | 3964 uint32 target; |
| 3965 uint32 pname; | 3965 uint32 pname; |
| 3966 uint32 params_shm_id; | 3966 uint32 params_shm_id; |
| 3967 uint32 params_shm_offset; | 3967 uint32 params_shm_offset; |
| 3968 }; | 3968 }; |
| 3969 | 3969 |
| 3970 COMPILE_ASSERT(sizeof(GetTexParameteriv) == 20, | 3970 COMPILE_ASSERT(sizeof(GetTexParameteriv) == 20, |
| 3971 Sizeof_GetTexParameteriv_is_not_20); | 3971 Sizeof_GetTexParameteriv_is_not_20); |
| 3972 COMPILE_ASSERT(offsetof(GetTexParameteriv, header) == 0, | 3972 COMPILE_ASSERT(offsetof(GetTexParameteriv, header) == 0, |
| 3973 OffsetOf_GetTexParameteriv_header_not_0); | 3973 OffsetOf_GetTexParameteriv_header_not_0); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 4004 } | 4004 } |
| 4005 | 4005 |
| 4006 void* Set( | 4006 void* Set( |
| 4007 void* cmd, GLuint _program, GLint _location, uint32 _params_shm_id, | 4007 void* cmd, GLuint _program, GLint _location, uint32 _params_shm_id, |
| 4008 uint32 _params_shm_offset) { | 4008 uint32 _params_shm_offset) { |
| 4009 static_cast<ValueType*>( | 4009 static_cast<ValueType*>( |
| 4010 cmd)->Init(_program, _location, _params_shm_id, _params_shm_offset); | 4010 cmd)->Init(_program, _location, _params_shm_id, _params_shm_offset); |
| 4011 return NextCmdAddress<ValueType>(cmd); | 4011 return NextCmdAddress<ValueType>(cmd); |
| 4012 } | 4012 } |
| 4013 | 4013 |
| 4014 command_buffer::CommandHeader header; | 4014 gpu::CommandHeader header; |
| 4015 uint32 program; | 4015 uint32 program; |
| 4016 uint32 location; | 4016 uint32 location; |
| 4017 uint32 params_shm_id; | 4017 uint32 params_shm_id; |
| 4018 uint32 params_shm_offset; | 4018 uint32 params_shm_offset; |
| 4019 }; | 4019 }; |
| 4020 | 4020 |
| 4021 COMPILE_ASSERT(sizeof(GetUniformfv) == 20, | 4021 COMPILE_ASSERT(sizeof(GetUniformfv) == 20, |
| 4022 Sizeof_GetUniformfv_is_not_20); | 4022 Sizeof_GetUniformfv_is_not_20); |
| 4023 COMPILE_ASSERT(offsetof(GetUniformfv, header) == 0, | 4023 COMPILE_ASSERT(offsetof(GetUniformfv, header) == 0, |
| 4024 OffsetOf_GetUniformfv_header_not_0); | 4024 OffsetOf_GetUniformfv_header_not_0); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 4055 } | 4055 } |
| 4056 | 4056 |
| 4057 void* Set( | 4057 void* Set( |
| 4058 void* cmd, GLuint _program, GLint _location, uint32 _params_shm_id, | 4058 void* cmd, GLuint _program, GLint _location, uint32 _params_shm_id, |
| 4059 uint32 _params_shm_offset) { | 4059 uint32 _params_shm_offset) { |
| 4060 static_cast<ValueType*>( | 4060 static_cast<ValueType*>( |
| 4061 cmd)->Init(_program, _location, _params_shm_id, _params_shm_offset); | 4061 cmd)->Init(_program, _location, _params_shm_id, _params_shm_offset); |
| 4062 return NextCmdAddress<ValueType>(cmd); | 4062 return NextCmdAddress<ValueType>(cmd); |
| 4063 } | 4063 } |
| 4064 | 4064 |
| 4065 command_buffer::CommandHeader header; | 4065 gpu::CommandHeader header; |
| 4066 uint32 program; | 4066 uint32 program; |
| 4067 uint32 location; | 4067 uint32 location; |
| 4068 uint32 params_shm_id; | 4068 uint32 params_shm_id; |
| 4069 uint32 params_shm_offset; | 4069 uint32 params_shm_offset; |
| 4070 }; | 4070 }; |
| 4071 | 4071 |
| 4072 COMPILE_ASSERT(sizeof(GetUniformiv) == 20, | 4072 COMPILE_ASSERT(sizeof(GetUniformiv) == 20, |
| 4073 Sizeof_GetUniformiv_is_not_20); | 4073 Sizeof_GetUniformiv_is_not_20); |
| 4074 COMPILE_ASSERT(offsetof(GetUniformiv, header) == 0, | 4074 COMPILE_ASSERT(offsetof(GetUniformiv, header) == 0, |
| 4075 OffsetOf_GetUniformiv_header_not_0); | 4075 OffsetOf_GetUniformiv_header_not_0); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 4106 } | 4106 } |
| 4107 | 4107 |
| 4108 void* Set( | 4108 void* Set( |
| 4109 void* cmd, GLuint _index, GLenum _pname, uint32 _params_shm_id, | 4109 void* cmd, GLuint _index, GLenum _pname, uint32 _params_shm_id, |
| 4110 uint32 _params_shm_offset) { | 4110 uint32 _params_shm_offset) { |
| 4111 static_cast<ValueType*>( | 4111 static_cast<ValueType*>( |
| 4112 cmd)->Init(_index, _pname, _params_shm_id, _params_shm_offset); | 4112 cmd)->Init(_index, _pname, _params_shm_id, _params_shm_offset); |
| 4113 return NextCmdAddress<ValueType>(cmd); | 4113 return NextCmdAddress<ValueType>(cmd); |
| 4114 } | 4114 } |
| 4115 | 4115 |
| 4116 command_buffer::CommandHeader header; | 4116 gpu::CommandHeader header; |
| 4117 uint32 index; | 4117 uint32 index; |
| 4118 uint32 pname; | 4118 uint32 pname; |
| 4119 uint32 params_shm_id; | 4119 uint32 params_shm_id; |
| 4120 uint32 params_shm_offset; | 4120 uint32 params_shm_offset; |
| 4121 }; | 4121 }; |
| 4122 | 4122 |
| 4123 COMPILE_ASSERT(sizeof(GetVertexAttribfv) == 20, | 4123 COMPILE_ASSERT(sizeof(GetVertexAttribfv) == 20, |
| 4124 Sizeof_GetVertexAttribfv_is_not_20); | 4124 Sizeof_GetVertexAttribfv_is_not_20); |
| 4125 COMPILE_ASSERT(offsetof(GetVertexAttribfv, header) == 0, | 4125 COMPILE_ASSERT(offsetof(GetVertexAttribfv, header) == 0, |
| 4126 OffsetOf_GetVertexAttribfv_header_not_0); | 4126 OffsetOf_GetVertexAttribfv_header_not_0); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 4157 } | 4157 } |
| 4158 | 4158 |
| 4159 void* Set( | 4159 void* Set( |
| 4160 void* cmd, GLuint _index, GLenum _pname, uint32 _params_shm_id, | 4160 void* cmd, GLuint _index, GLenum _pname, uint32 _params_shm_id, |
| 4161 uint32 _params_shm_offset) { | 4161 uint32 _params_shm_offset) { |
| 4162 static_cast<ValueType*>( | 4162 static_cast<ValueType*>( |
| 4163 cmd)->Init(_index, _pname, _params_shm_id, _params_shm_offset); | 4163 cmd)->Init(_index, _pname, _params_shm_id, _params_shm_offset); |
| 4164 return NextCmdAddress<ValueType>(cmd); | 4164 return NextCmdAddress<ValueType>(cmd); |
| 4165 } | 4165 } |
| 4166 | 4166 |
| 4167 command_buffer::CommandHeader header; | 4167 gpu::CommandHeader header; |
| 4168 uint32 index; | 4168 uint32 index; |
| 4169 uint32 pname; | 4169 uint32 pname; |
| 4170 uint32 params_shm_id; | 4170 uint32 params_shm_id; |
| 4171 uint32 params_shm_offset; | 4171 uint32 params_shm_offset; |
| 4172 }; | 4172 }; |
| 4173 | 4173 |
| 4174 COMPILE_ASSERT(sizeof(GetVertexAttribiv) == 20, | 4174 COMPILE_ASSERT(sizeof(GetVertexAttribiv) == 20, |
| 4175 Sizeof_GetVertexAttribiv_is_not_20); | 4175 Sizeof_GetVertexAttribiv_is_not_20); |
| 4176 COMPILE_ASSERT(offsetof(GetVertexAttribiv, header) == 0, | 4176 COMPILE_ASSERT(offsetof(GetVertexAttribiv, header) == 0, |
| 4177 OffsetOf_GetVertexAttribiv_header_not_0); | 4177 OffsetOf_GetVertexAttribiv_header_not_0); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 4208 } | 4208 } |
| 4209 | 4209 |
| 4210 void* Set( | 4210 void* Set( |
| 4211 void* cmd, GLuint _index, GLenum _pname, uint32 _pointer_shm_id, | 4211 void* cmd, GLuint _index, GLenum _pname, uint32 _pointer_shm_id, |
| 4212 uint32 _pointer_shm_offset) { | 4212 uint32 _pointer_shm_offset) { |
| 4213 static_cast<ValueType*>( | 4213 static_cast<ValueType*>( |
| 4214 cmd)->Init(_index, _pname, _pointer_shm_id, _pointer_shm_offset); | 4214 cmd)->Init(_index, _pname, _pointer_shm_id, _pointer_shm_offset); |
| 4215 return NextCmdAddress<ValueType>(cmd); | 4215 return NextCmdAddress<ValueType>(cmd); |
| 4216 } | 4216 } |
| 4217 | 4217 |
| 4218 command_buffer::CommandHeader header; | 4218 gpu::CommandHeader header; |
| 4219 uint32 index; | 4219 uint32 index; |
| 4220 uint32 pname; | 4220 uint32 pname; |
| 4221 uint32 pointer_shm_id; | 4221 uint32 pointer_shm_id; |
| 4222 uint32 pointer_shm_offset; | 4222 uint32 pointer_shm_offset; |
| 4223 }; | 4223 }; |
| 4224 | 4224 |
| 4225 COMPILE_ASSERT(sizeof(GetVertexAttribPointerv) == 20, | 4225 COMPILE_ASSERT(sizeof(GetVertexAttribPointerv) == 20, |
| 4226 Sizeof_GetVertexAttribPointerv_is_not_20); | 4226 Sizeof_GetVertexAttribPointerv_is_not_20); |
| 4227 COMPILE_ASSERT(offsetof(GetVertexAttribPointerv, header) == 0, | 4227 COMPILE_ASSERT(offsetof(GetVertexAttribPointerv, header) == 0, |
| 4228 OffsetOf_GetVertexAttribPointerv_header_not_0); | 4228 OffsetOf_GetVertexAttribPointerv_header_not_0); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4252 SetHeader(); | 4252 SetHeader(); |
| 4253 target = _target; | 4253 target = _target; |
| 4254 mode = _mode; | 4254 mode = _mode; |
| 4255 } | 4255 } |
| 4256 | 4256 |
| 4257 void* Set(void* cmd, GLenum _target, GLenum _mode) { | 4257 void* Set(void* cmd, GLenum _target, GLenum _mode) { |
| 4258 static_cast<ValueType*>(cmd)->Init(_target, _mode); | 4258 static_cast<ValueType*>(cmd)->Init(_target, _mode); |
| 4259 return NextCmdAddress<ValueType>(cmd); | 4259 return NextCmdAddress<ValueType>(cmd); |
| 4260 } | 4260 } |
| 4261 | 4261 |
| 4262 command_buffer::CommandHeader header; | 4262 gpu::CommandHeader header; |
| 4263 uint32 target; | 4263 uint32 target; |
| 4264 uint32 mode; | 4264 uint32 mode; |
| 4265 }; | 4265 }; |
| 4266 | 4266 |
| 4267 COMPILE_ASSERT(sizeof(Hint) == 12, | 4267 COMPILE_ASSERT(sizeof(Hint) == 12, |
| 4268 Sizeof_Hint_is_not_12); | 4268 Sizeof_Hint_is_not_12); |
| 4269 COMPILE_ASSERT(offsetof(Hint, header) == 0, | 4269 COMPILE_ASSERT(offsetof(Hint, header) == 0, |
| 4270 OffsetOf_Hint_header_not_0); | 4270 OffsetOf_Hint_header_not_0); |
| 4271 COMPILE_ASSERT(offsetof(Hint, target) == 4, | 4271 COMPILE_ASSERT(offsetof(Hint, target) == 4, |
| 4272 OffsetOf_Hint_target_not_4); | 4272 OffsetOf_Hint_target_not_4); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4294 } | 4294 } |
| 4295 | 4295 |
| 4296 void* Set( | 4296 void* Set( |
| 4297 void* cmd, GLuint _buffer, uint32 _result_shm_id, | 4297 void* cmd, GLuint _buffer, uint32 _result_shm_id, |
| 4298 uint32 _result_shm_offset) { | 4298 uint32 _result_shm_offset) { |
| 4299 static_cast<ValueType*>( | 4299 static_cast<ValueType*>( |
| 4300 cmd)->Init(_buffer, _result_shm_id, _result_shm_offset); | 4300 cmd)->Init(_buffer, _result_shm_id, _result_shm_offset); |
| 4301 return NextCmdAddress<ValueType>(cmd); | 4301 return NextCmdAddress<ValueType>(cmd); |
| 4302 } | 4302 } |
| 4303 | 4303 |
| 4304 command_buffer::CommandHeader header; | 4304 gpu::CommandHeader header; |
| 4305 uint32 buffer; | 4305 uint32 buffer; |
| 4306 uint32 result_shm_id; | 4306 uint32 result_shm_id; |
| 4307 uint32 result_shm_offset; | 4307 uint32 result_shm_offset; |
| 4308 }; | 4308 }; |
| 4309 | 4309 |
| 4310 COMPILE_ASSERT(sizeof(IsBuffer) == 16, | 4310 COMPILE_ASSERT(sizeof(IsBuffer) == 16, |
| 4311 Sizeof_IsBuffer_is_not_16); | 4311 Sizeof_IsBuffer_is_not_16); |
| 4312 COMPILE_ASSERT(offsetof(IsBuffer, header) == 0, | 4312 COMPILE_ASSERT(offsetof(IsBuffer, header) == 0, |
| 4313 OffsetOf_IsBuffer_header_not_0); | 4313 OffsetOf_IsBuffer_header_not_0); |
| 4314 COMPILE_ASSERT(offsetof(IsBuffer, buffer) == 4, | 4314 COMPILE_ASSERT(offsetof(IsBuffer, buffer) == 4, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 4339 } | 4339 } |
| 4340 | 4340 |
| 4341 void* Set( | 4341 void* Set( |
| 4342 void* cmd, GLenum _cap, uint32 _result_shm_id, | 4342 void* cmd, GLenum _cap, uint32 _result_shm_id, |
| 4343 uint32 _result_shm_offset) { | 4343 uint32 _result_shm_offset) { |
| 4344 static_cast<ValueType*>( | 4344 static_cast<ValueType*>( |
| 4345 cmd)->Init(_cap, _result_shm_id, _result_shm_offset); | 4345 cmd)->Init(_cap, _result_shm_id, _result_shm_offset); |
| 4346 return NextCmdAddress<ValueType>(cmd); | 4346 return NextCmdAddress<ValueType>(cmd); |
| 4347 } | 4347 } |
| 4348 | 4348 |
| 4349 command_buffer::CommandHeader header; | 4349 gpu::CommandHeader header; |
| 4350 uint32 cap; | 4350 uint32 cap; |
| 4351 uint32 result_shm_id; | 4351 uint32 result_shm_id; |
| 4352 uint32 result_shm_offset; | 4352 uint32 result_shm_offset; |
| 4353 }; | 4353 }; |
| 4354 | 4354 |
| 4355 COMPILE_ASSERT(sizeof(IsEnabled) == 16, | 4355 COMPILE_ASSERT(sizeof(IsEnabled) == 16, |
| 4356 Sizeof_IsEnabled_is_not_16); | 4356 Sizeof_IsEnabled_is_not_16); |
| 4357 COMPILE_ASSERT(offsetof(IsEnabled, header) == 0, | 4357 COMPILE_ASSERT(offsetof(IsEnabled, header) == 0, |
| 4358 OffsetOf_IsEnabled_header_not_0); | 4358 OffsetOf_IsEnabled_header_not_0); |
| 4359 COMPILE_ASSERT(offsetof(IsEnabled, cap) == 4, | 4359 COMPILE_ASSERT(offsetof(IsEnabled, cap) == 4, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4385 } | 4385 } |
| 4386 | 4386 |
| 4387 void* Set( | 4387 void* Set( |
| 4388 void* cmd, GLuint _framebuffer, uint32 _result_shm_id, | 4388 void* cmd, GLuint _framebuffer, uint32 _result_shm_id, |
| 4389 uint32 _result_shm_offset) { | 4389 uint32 _result_shm_offset) { |
| 4390 static_cast<ValueType*>( | 4390 static_cast<ValueType*>( |
| 4391 cmd)->Init(_framebuffer, _result_shm_id, _result_shm_offset); | 4391 cmd)->Init(_framebuffer, _result_shm_id, _result_shm_offset); |
| 4392 return NextCmdAddress<ValueType>(cmd); | 4392 return NextCmdAddress<ValueType>(cmd); |
| 4393 } | 4393 } |
| 4394 | 4394 |
| 4395 command_buffer::CommandHeader header; | 4395 gpu::CommandHeader header; |
| 4396 uint32 framebuffer; | 4396 uint32 framebuffer; |
| 4397 uint32 result_shm_id; | 4397 uint32 result_shm_id; |
| 4398 uint32 result_shm_offset; | 4398 uint32 result_shm_offset; |
| 4399 }; | 4399 }; |
| 4400 | 4400 |
| 4401 COMPILE_ASSERT(sizeof(IsFramebuffer) == 16, | 4401 COMPILE_ASSERT(sizeof(IsFramebuffer) == 16, |
| 4402 Sizeof_IsFramebuffer_is_not_16); | 4402 Sizeof_IsFramebuffer_is_not_16); |
| 4403 COMPILE_ASSERT(offsetof(IsFramebuffer, header) == 0, | 4403 COMPILE_ASSERT(offsetof(IsFramebuffer, header) == 0, |
| 4404 OffsetOf_IsFramebuffer_header_not_0); | 4404 OffsetOf_IsFramebuffer_header_not_0); |
| 4405 COMPILE_ASSERT(offsetof(IsFramebuffer, framebuffer) == 4, | 4405 COMPILE_ASSERT(offsetof(IsFramebuffer, framebuffer) == 4, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4431 } | 4431 } |
| 4432 | 4432 |
| 4433 void* Set( | 4433 void* Set( |
| 4434 void* cmd, GLuint _program, uint32 _result_shm_id, | 4434 void* cmd, GLuint _program, uint32 _result_shm_id, |
| 4435 uint32 _result_shm_offset) { | 4435 uint32 _result_shm_offset) { |
| 4436 static_cast<ValueType*>( | 4436 static_cast<ValueType*>( |
| 4437 cmd)->Init(_program, _result_shm_id, _result_shm_offset); | 4437 cmd)->Init(_program, _result_shm_id, _result_shm_offset); |
| 4438 return NextCmdAddress<ValueType>(cmd); | 4438 return NextCmdAddress<ValueType>(cmd); |
| 4439 } | 4439 } |
| 4440 | 4440 |
| 4441 command_buffer::CommandHeader header; | 4441 gpu::CommandHeader header; |
| 4442 uint32 program; | 4442 uint32 program; |
| 4443 uint32 result_shm_id; | 4443 uint32 result_shm_id; |
| 4444 uint32 result_shm_offset; | 4444 uint32 result_shm_offset; |
| 4445 }; | 4445 }; |
| 4446 | 4446 |
| 4447 COMPILE_ASSERT(sizeof(IsProgram) == 16, | 4447 COMPILE_ASSERT(sizeof(IsProgram) == 16, |
| 4448 Sizeof_IsProgram_is_not_16); | 4448 Sizeof_IsProgram_is_not_16); |
| 4449 COMPILE_ASSERT(offsetof(IsProgram, header) == 0, | 4449 COMPILE_ASSERT(offsetof(IsProgram, header) == 0, |
| 4450 OffsetOf_IsProgram_header_not_0); | 4450 OffsetOf_IsProgram_header_not_0); |
| 4451 COMPILE_ASSERT(offsetof(IsProgram, program) == 4, | 4451 COMPILE_ASSERT(offsetof(IsProgram, program) == 4, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4477 } | 4477 } |
| 4478 | 4478 |
| 4479 void* Set( | 4479 void* Set( |
| 4480 void* cmd, GLuint _renderbuffer, uint32 _result_shm_id, | 4480 void* cmd, GLuint _renderbuffer, uint32 _result_shm_id, |
| 4481 uint32 _result_shm_offset) { | 4481 uint32 _result_shm_offset) { |
| 4482 static_cast<ValueType*>( | 4482 static_cast<ValueType*>( |
| 4483 cmd)->Init(_renderbuffer, _result_shm_id, _result_shm_offset); | 4483 cmd)->Init(_renderbuffer, _result_shm_id, _result_shm_offset); |
| 4484 return NextCmdAddress<ValueType>(cmd); | 4484 return NextCmdAddress<ValueType>(cmd); |
| 4485 } | 4485 } |
| 4486 | 4486 |
| 4487 command_buffer::CommandHeader header; | 4487 gpu::CommandHeader header; |
| 4488 uint32 renderbuffer; | 4488 uint32 renderbuffer; |
| 4489 uint32 result_shm_id; | 4489 uint32 result_shm_id; |
| 4490 uint32 result_shm_offset; | 4490 uint32 result_shm_offset; |
| 4491 }; | 4491 }; |
| 4492 | 4492 |
| 4493 COMPILE_ASSERT(sizeof(IsRenderbuffer) == 16, | 4493 COMPILE_ASSERT(sizeof(IsRenderbuffer) == 16, |
| 4494 Sizeof_IsRenderbuffer_is_not_16); | 4494 Sizeof_IsRenderbuffer_is_not_16); |
| 4495 COMPILE_ASSERT(offsetof(IsRenderbuffer, header) == 0, | 4495 COMPILE_ASSERT(offsetof(IsRenderbuffer, header) == 0, |
| 4496 OffsetOf_IsRenderbuffer_header_not_0); | 4496 OffsetOf_IsRenderbuffer_header_not_0); |
| 4497 COMPILE_ASSERT(offsetof(IsRenderbuffer, renderbuffer) == 4, | 4497 COMPILE_ASSERT(offsetof(IsRenderbuffer, renderbuffer) == 4, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 4522 } | 4522 } |
| 4523 | 4523 |
| 4524 void* Set( | 4524 void* Set( |
| 4525 void* cmd, GLuint _shader, uint32 _result_shm_id, | 4525 void* cmd, GLuint _shader, uint32 _result_shm_id, |
| 4526 uint32 _result_shm_offset) { | 4526 uint32 _result_shm_offset) { |
| 4527 static_cast<ValueType*>( | 4527 static_cast<ValueType*>( |
| 4528 cmd)->Init(_shader, _result_shm_id, _result_shm_offset); | 4528 cmd)->Init(_shader, _result_shm_id, _result_shm_offset); |
| 4529 return NextCmdAddress<ValueType>(cmd); | 4529 return NextCmdAddress<ValueType>(cmd); |
| 4530 } | 4530 } |
| 4531 | 4531 |
| 4532 command_buffer::CommandHeader header; | 4532 gpu::CommandHeader header; |
| 4533 uint32 shader; | 4533 uint32 shader; |
| 4534 uint32 result_shm_id; | 4534 uint32 result_shm_id; |
| 4535 uint32 result_shm_offset; | 4535 uint32 result_shm_offset; |
| 4536 }; | 4536 }; |
| 4537 | 4537 |
| 4538 COMPILE_ASSERT(sizeof(IsShader) == 16, | 4538 COMPILE_ASSERT(sizeof(IsShader) == 16, |
| 4539 Sizeof_IsShader_is_not_16); | 4539 Sizeof_IsShader_is_not_16); |
| 4540 COMPILE_ASSERT(offsetof(IsShader, header) == 0, | 4540 COMPILE_ASSERT(offsetof(IsShader, header) == 0, |
| 4541 OffsetOf_IsShader_header_not_0); | 4541 OffsetOf_IsShader_header_not_0); |
| 4542 COMPILE_ASSERT(offsetof(IsShader, shader) == 4, | 4542 COMPILE_ASSERT(offsetof(IsShader, shader) == 4, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 4568 } | 4568 } |
| 4569 | 4569 |
| 4570 void* Set( | 4570 void* Set( |
| 4571 void* cmd, GLuint _texture, uint32 _result_shm_id, | 4571 void* cmd, GLuint _texture, uint32 _result_shm_id, |
| 4572 uint32 _result_shm_offset) { | 4572 uint32 _result_shm_offset) { |
| 4573 static_cast<ValueType*>( | 4573 static_cast<ValueType*>( |
| 4574 cmd)->Init(_texture, _result_shm_id, _result_shm_offset); | 4574 cmd)->Init(_texture, _result_shm_id, _result_shm_offset); |
| 4575 return NextCmdAddress<ValueType>(cmd); | 4575 return NextCmdAddress<ValueType>(cmd); |
| 4576 } | 4576 } |
| 4577 | 4577 |
| 4578 command_buffer::CommandHeader header; | 4578 gpu::CommandHeader header; |
| 4579 uint32 texture; | 4579 uint32 texture; |
| 4580 uint32 result_shm_id; | 4580 uint32 result_shm_id; |
| 4581 uint32 result_shm_offset; | 4581 uint32 result_shm_offset; |
| 4582 }; | 4582 }; |
| 4583 | 4583 |
| 4584 COMPILE_ASSERT(sizeof(IsTexture) == 16, | 4584 COMPILE_ASSERT(sizeof(IsTexture) == 16, |
| 4585 Sizeof_IsTexture_is_not_16); | 4585 Sizeof_IsTexture_is_not_16); |
| 4586 COMPILE_ASSERT(offsetof(IsTexture, header) == 0, | 4586 COMPILE_ASSERT(offsetof(IsTexture, header) == 0, |
| 4587 OffsetOf_IsTexture_header_not_0); | 4587 OffsetOf_IsTexture_header_not_0); |
| 4588 COMPILE_ASSERT(offsetof(IsTexture, texture) == 4, | 4588 COMPILE_ASSERT(offsetof(IsTexture, texture) == 4, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 4608 void Init(GLfloat _width) { | 4608 void Init(GLfloat _width) { |
| 4609 SetHeader(); | 4609 SetHeader(); |
| 4610 width = _width; | 4610 width = _width; |
| 4611 } | 4611 } |
| 4612 | 4612 |
| 4613 void* Set(void* cmd, GLfloat _width) { | 4613 void* Set(void* cmd, GLfloat _width) { |
| 4614 static_cast<ValueType*>(cmd)->Init(_width); | 4614 static_cast<ValueType*>(cmd)->Init(_width); |
| 4615 return NextCmdAddress<ValueType>(cmd); | 4615 return NextCmdAddress<ValueType>(cmd); |
| 4616 } | 4616 } |
| 4617 | 4617 |
| 4618 command_buffer::CommandHeader header; | 4618 gpu::CommandHeader header; |
| 4619 float width; | 4619 float width; |
| 4620 }; | 4620 }; |
| 4621 | 4621 |
| 4622 COMPILE_ASSERT(sizeof(LineWidth) == 8, | 4622 COMPILE_ASSERT(sizeof(LineWidth) == 8, |
| 4623 Sizeof_LineWidth_is_not_8); | 4623 Sizeof_LineWidth_is_not_8); |
| 4624 COMPILE_ASSERT(offsetof(LineWidth, header) == 0, | 4624 COMPILE_ASSERT(offsetof(LineWidth, header) == 0, |
| 4625 OffsetOf_LineWidth_header_not_0); | 4625 OffsetOf_LineWidth_header_not_0); |
| 4626 COMPILE_ASSERT(offsetof(LineWidth, width) == 4, | 4626 COMPILE_ASSERT(offsetof(LineWidth, width) == 4, |
| 4627 OffsetOf_LineWidth_width_not_4); | 4627 OffsetOf_LineWidth_width_not_4); |
| 4628 | 4628 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 4642 void Init(GLuint _program) { | 4642 void Init(GLuint _program) { |
| 4643 SetHeader(); | 4643 SetHeader(); |
| 4644 program = _program; | 4644 program = _program; |
| 4645 } | 4645 } |
| 4646 | 4646 |
| 4647 void* Set(void* cmd, GLuint _program) { | 4647 void* Set(void* cmd, GLuint _program) { |
| 4648 static_cast<ValueType*>(cmd)->Init(_program); | 4648 static_cast<ValueType*>(cmd)->Init(_program); |
| 4649 return NextCmdAddress<ValueType>(cmd); | 4649 return NextCmdAddress<ValueType>(cmd); |
| 4650 } | 4650 } |
| 4651 | 4651 |
| 4652 command_buffer::CommandHeader header; | 4652 gpu::CommandHeader header; |
| 4653 uint32 program; | 4653 uint32 program; |
| 4654 }; | 4654 }; |
| 4655 | 4655 |
| 4656 COMPILE_ASSERT(sizeof(LinkProgram) == 8, | 4656 COMPILE_ASSERT(sizeof(LinkProgram) == 8, |
| 4657 Sizeof_LinkProgram_is_not_8); | 4657 Sizeof_LinkProgram_is_not_8); |
| 4658 COMPILE_ASSERT(offsetof(LinkProgram, header) == 0, | 4658 COMPILE_ASSERT(offsetof(LinkProgram, header) == 0, |
| 4659 OffsetOf_LinkProgram_header_not_0); | 4659 OffsetOf_LinkProgram_header_not_0); |
| 4660 COMPILE_ASSERT(offsetof(LinkProgram, program) == 4, | 4660 COMPILE_ASSERT(offsetof(LinkProgram, program) == 4, |
| 4661 OffsetOf_LinkProgram_program_not_4); | 4661 OffsetOf_LinkProgram_program_not_4); |
| 4662 | 4662 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 4677 SetHeader(); | 4677 SetHeader(); |
| 4678 pname = _pname; | 4678 pname = _pname; |
| 4679 param = _param; | 4679 param = _param; |
| 4680 } | 4680 } |
| 4681 | 4681 |
| 4682 void* Set(void* cmd, GLenum _pname, GLint _param) { | 4682 void* Set(void* cmd, GLenum _pname, GLint _param) { |
| 4683 static_cast<ValueType*>(cmd)->Init(_pname, _param); | 4683 static_cast<ValueType*>(cmd)->Init(_pname, _param); |
| 4684 return NextCmdAddress<ValueType>(cmd); | 4684 return NextCmdAddress<ValueType>(cmd); |
| 4685 } | 4685 } |
| 4686 | 4686 |
| 4687 command_buffer::CommandHeader header; | 4687 gpu::CommandHeader header; |
| 4688 uint32 pname; | 4688 uint32 pname; |
| 4689 uint32 param; | 4689 uint32 param; |
| 4690 }; | 4690 }; |
| 4691 | 4691 |
| 4692 COMPILE_ASSERT(sizeof(PixelStorei) == 12, | 4692 COMPILE_ASSERT(sizeof(PixelStorei) == 12, |
| 4693 Sizeof_PixelStorei_is_not_12); | 4693 Sizeof_PixelStorei_is_not_12); |
| 4694 COMPILE_ASSERT(offsetof(PixelStorei, header) == 0, | 4694 COMPILE_ASSERT(offsetof(PixelStorei, header) == 0, |
| 4695 OffsetOf_PixelStorei_header_not_0); | 4695 OffsetOf_PixelStorei_header_not_0); |
| 4696 COMPILE_ASSERT(offsetof(PixelStorei, pname) == 4, | 4696 COMPILE_ASSERT(offsetof(PixelStorei, pname) == 4, |
| 4697 OffsetOf_PixelStorei_pname_not_4); | 4697 OffsetOf_PixelStorei_pname_not_4); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4715 SetHeader(); | 4715 SetHeader(); |
| 4716 factor = _factor; | 4716 factor = _factor; |
| 4717 units = _units; | 4717 units = _units; |
| 4718 } | 4718 } |
| 4719 | 4719 |
| 4720 void* Set(void* cmd, GLfloat _factor, GLfloat _units) { | 4720 void* Set(void* cmd, GLfloat _factor, GLfloat _units) { |
| 4721 static_cast<ValueType*>(cmd)->Init(_factor, _units); | 4721 static_cast<ValueType*>(cmd)->Init(_factor, _units); |
| 4722 return NextCmdAddress<ValueType>(cmd); | 4722 return NextCmdAddress<ValueType>(cmd); |
| 4723 } | 4723 } |
| 4724 | 4724 |
| 4725 command_buffer::CommandHeader header; | 4725 gpu::CommandHeader header; |
| 4726 float factor; | 4726 float factor; |
| 4727 float units; | 4727 float units; |
| 4728 }; | 4728 }; |
| 4729 | 4729 |
| 4730 COMPILE_ASSERT(sizeof(PolygonOffset) == 12, | 4730 COMPILE_ASSERT(sizeof(PolygonOffset) == 12, |
| 4731 Sizeof_PolygonOffset_is_not_12); | 4731 Sizeof_PolygonOffset_is_not_12); |
| 4732 COMPILE_ASSERT(offsetof(PolygonOffset, header) == 0, | 4732 COMPILE_ASSERT(offsetof(PolygonOffset, header) == 0, |
| 4733 OffsetOf_PolygonOffset_header_not_0); | 4733 OffsetOf_PolygonOffset_header_not_0); |
| 4734 COMPILE_ASSERT(offsetof(PolygonOffset, factor) == 4, | 4734 COMPILE_ASSERT(offsetof(PolygonOffset, factor) == 4, |
| 4735 OffsetOf_PolygonOffset_factor_not_4); | 4735 OffsetOf_PolygonOffset_factor_not_4); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4767 void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height, | 4767 void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height, |
| 4768 GLenum _format, GLenum _type, uint32 _pixels_shm_id, | 4768 GLenum _format, GLenum _type, uint32 _pixels_shm_id, |
| 4769 uint32 _pixels_shm_offset) { | 4769 uint32 _pixels_shm_offset) { |
| 4770 static_cast<ValueType*>( | 4770 static_cast<ValueType*>( |
| 4771 cmd)->Init( | 4771 cmd)->Init( |
| 4772 _x, _y, _width, _height, _format, _type, _pixels_shm_id, | 4772 _x, _y, _width, _height, _format, _type, _pixels_shm_id, |
| 4773 _pixels_shm_offset); | 4773 _pixels_shm_offset); |
| 4774 return NextCmdAddress<ValueType>(cmd); | 4774 return NextCmdAddress<ValueType>(cmd); |
| 4775 } | 4775 } |
| 4776 | 4776 |
| 4777 command_buffer::CommandHeader header; | 4777 gpu::CommandHeader header; |
| 4778 uint32 x; | 4778 uint32 x; |
| 4779 uint32 y; | 4779 uint32 y; |
| 4780 uint32 width; | 4780 uint32 width; |
| 4781 uint32 height; | 4781 uint32 height; |
| 4782 uint32 format; | 4782 uint32 format; |
| 4783 uint32 type; | 4783 uint32 type; |
| 4784 uint32 pixels_shm_id; | 4784 uint32 pixels_shm_id; |
| 4785 uint32 pixels_shm_offset; | 4785 uint32 pixels_shm_offset; |
| 4786 }; | 4786 }; |
| 4787 | 4787 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4830 } | 4830 } |
| 4831 | 4831 |
| 4832 void* Set( | 4832 void* Set( |
| 4833 void* cmd, GLenum _target, GLenum _internalformat, GLsizei _width, | 4833 void* cmd, GLenum _target, GLenum _internalformat, GLsizei _width, |
| 4834 GLsizei _height) { | 4834 GLsizei _height) { |
| 4835 static_cast<ValueType*>( | 4835 static_cast<ValueType*>( |
| 4836 cmd)->Init(_target, _internalformat, _width, _height); | 4836 cmd)->Init(_target, _internalformat, _width, _height); |
| 4837 return NextCmdAddress<ValueType>(cmd); | 4837 return NextCmdAddress<ValueType>(cmd); |
| 4838 } | 4838 } |
| 4839 | 4839 |
| 4840 command_buffer::CommandHeader header; | 4840 gpu::CommandHeader header; |
| 4841 uint32 target; | 4841 uint32 target; |
| 4842 uint32 internalformat; | 4842 uint32 internalformat; |
| 4843 uint32 width; | 4843 uint32 width; |
| 4844 uint32 height; | 4844 uint32 height; |
| 4845 }; | 4845 }; |
| 4846 | 4846 |
| 4847 COMPILE_ASSERT(sizeof(RenderbufferStorage) == 20, | 4847 COMPILE_ASSERT(sizeof(RenderbufferStorage) == 20, |
| 4848 Sizeof_RenderbufferStorage_is_not_20); | 4848 Sizeof_RenderbufferStorage_is_not_20); |
| 4849 COMPILE_ASSERT(offsetof(RenderbufferStorage, header) == 0, | 4849 COMPILE_ASSERT(offsetof(RenderbufferStorage, header) == 0, |
| 4850 OffsetOf_RenderbufferStorage_header_not_0); | 4850 OffsetOf_RenderbufferStorage_header_not_0); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4874 SetHeader(); | 4874 SetHeader(); |
| 4875 value = _value; | 4875 value = _value; |
| 4876 invert = _invert; | 4876 invert = _invert; |
| 4877 } | 4877 } |
| 4878 | 4878 |
| 4879 void* Set(void* cmd, GLclampf _value, GLboolean _invert) { | 4879 void* Set(void* cmd, GLclampf _value, GLboolean _invert) { |
| 4880 static_cast<ValueType*>(cmd)->Init(_value, _invert); | 4880 static_cast<ValueType*>(cmd)->Init(_value, _invert); |
| 4881 return NextCmdAddress<ValueType>(cmd); | 4881 return NextCmdAddress<ValueType>(cmd); |
| 4882 } | 4882 } |
| 4883 | 4883 |
| 4884 command_buffer::CommandHeader header; | 4884 gpu::CommandHeader header; |
| 4885 float value; | 4885 float value; |
| 4886 uint32 invert; | 4886 uint32 invert; |
| 4887 }; | 4887 }; |
| 4888 | 4888 |
| 4889 COMPILE_ASSERT(sizeof(SampleCoverage) == 12, | 4889 COMPILE_ASSERT(sizeof(SampleCoverage) == 12, |
| 4890 Sizeof_SampleCoverage_is_not_12); | 4890 Sizeof_SampleCoverage_is_not_12); |
| 4891 COMPILE_ASSERT(offsetof(SampleCoverage, header) == 0, | 4891 COMPILE_ASSERT(offsetof(SampleCoverage, header) == 0, |
| 4892 OffsetOf_SampleCoverage_header_not_0); | 4892 OffsetOf_SampleCoverage_header_not_0); |
| 4893 COMPILE_ASSERT(offsetof(SampleCoverage, value) == 4, | 4893 COMPILE_ASSERT(offsetof(SampleCoverage, value) == 4, |
| 4894 OffsetOf_SampleCoverage_value_not_4); | 4894 OffsetOf_SampleCoverage_value_not_4); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 4914 y = _y; | 4914 y = _y; |
| 4915 width = _width; | 4915 width = _width; |
| 4916 height = _height; | 4916 height = _height; |
| 4917 } | 4917 } |
| 4918 | 4918 |
| 4919 void* Set(void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height) { | 4919 void* Set(void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height) { |
| 4920 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height); | 4920 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height); |
| 4921 return NextCmdAddress<ValueType>(cmd); | 4921 return NextCmdAddress<ValueType>(cmd); |
| 4922 } | 4922 } |
| 4923 | 4923 |
| 4924 command_buffer::CommandHeader header; | 4924 gpu::CommandHeader header; |
| 4925 uint32 x; | 4925 uint32 x; |
| 4926 uint32 y; | 4926 uint32 y; |
| 4927 uint32 width; | 4927 uint32 width; |
| 4928 uint32 height; | 4928 uint32 height; |
| 4929 }; | 4929 }; |
| 4930 | 4930 |
| 4931 COMPILE_ASSERT(sizeof(Scissor) == 20, | 4931 COMPILE_ASSERT(sizeof(Scissor) == 20, |
| 4932 Sizeof_Scissor_is_not_20); | 4932 Sizeof_Scissor_is_not_20); |
| 4933 COMPILE_ASSERT(offsetof(Scissor, header) == 0, | 4933 COMPILE_ASSERT(offsetof(Scissor, header) == 0, |
| 4934 OffsetOf_Scissor_header_not_0); | 4934 OffsetOf_Scissor_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4967 | 4967 |
| 4968 void* Set( | 4968 void* Set( |
| 4969 void* cmd, GLuint _shader, GLsizei _count, uint32 _data_shm_id, | 4969 void* cmd, GLuint _shader, GLsizei _count, uint32 _data_shm_id, |
| 4970 uint32 _data_shm_offset, uint32 _data_size) { | 4970 uint32 _data_shm_offset, uint32 _data_size) { |
| 4971 static_cast<ValueType*>( | 4971 static_cast<ValueType*>( |
| 4972 cmd)->Init( | 4972 cmd)->Init( |
| 4973 _shader, _count, _data_shm_id, _data_shm_offset, _data_size); | 4973 _shader, _count, _data_shm_id, _data_shm_offset, _data_size); |
| 4974 return NextCmdAddress<ValueType>(cmd); | 4974 return NextCmdAddress<ValueType>(cmd); |
| 4975 } | 4975 } |
| 4976 | 4976 |
| 4977 command_buffer::CommandHeader header; | 4977 gpu::CommandHeader header; |
| 4978 uint32 shader; | 4978 uint32 shader; |
| 4979 uint32 count; | 4979 uint32 count; |
| 4980 uint32 data_shm_id; | 4980 uint32 data_shm_id; |
| 4981 uint32 data_shm_offset; | 4981 uint32 data_shm_offset; |
| 4982 uint32 data_size; | 4982 uint32 data_size; |
| 4983 }; | 4983 }; |
| 4984 | 4984 |
| 4985 COMPILE_ASSERT(sizeof(ShaderSource) == 24, | 4985 COMPILE_ASSERT(sizeof(ShaderSource) == 24, |
| 4986 Sizeof_ShaderSource_is_not_24); | 4986 Sizeof_ShaderSource_is_not_24); |
| 4987 COMPILE_ASSERT(offsetof(ShaderSource, header) == 0, | 4987 COMPILE_ASSERT(offsetof(ShaderSource, header) == 0, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5019 count = _count; | 5019 count = _count; |
| 5020 data_size = _data_size; | 5020 data_size = _data_size; |
| 5021 } | 5021 } |
| 5022 | 5022 |
| 5023 void* Set(void* cmd, GLuint _shader, GLsizei _count, uint32 _data_size) { | 5023 void* Set(void* cmd, GLuint _shader, GLsizei _count, uint32 _data_size) { |
| 5024 uint32 total_size = ComputeSize(_data_size); | 5024 uint32 total_size = ComputeSize(_data_size); |
| 5025 static_cast<ValueType*>(cmd)->Init(_shader, _count, _data_size); | 5025 static_cast<ValueType*>(cmd)->Init(_shader, _count, _data_size); |
| 5026 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); | 5026 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); |
| 5027 } | 5027 } |
| 5028 | 5028 |
| 5029 command_buffer::CommandHeader header; | 5029 gpu::CommandHeader header; |
| 5030 uint32 shader; | 5030 uint32 shader; |
| 5031 uint32 count; | 5031 uint32 count; |
| 5032 uint32 data_size; | 5032 uint32 data_size; |
| 5033 }; | 5033 }; |
| 5034 | 5034 |
| 5035 COMPILE_ASSERT(sizeof(ShaderSourceImmediate) == 16, | 5035 COMPILE_ASSERT(sizeof(ShaderSourceImmediate) == 16, |
| 5036 Sizeof_ShaderSourceImmediate_is_not_16); | 5036 Sizeof_ShaderSourceImmediate_is_not_16); |
| 5037 COMPILE_ASSERT(offsetof(ShaderSourceImmediate, header) == 0, | 5037 COMPILE_ASSERT(offsetof(ShaderSourceImmediate, header) == 0, |
| 5038 OffsetOf_ShaderSourceImmediate_header_not_0); | 5038 OffsetOf_ShaderSourceImmediate_header_not_0); |
| 5039 COMPILE_ASSERT(offsetof(ShaderSourceImmediate, shader) == 4, | 5039 COMPILE_ASSERT(offsetof(ShaderSourceImmediate, shader) == 4, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 5061 func = _func; | 5061 func = _func; |
| 5062 ref = _ref; | 5062 ref = _ref; |
| 5063 mask = _mask; | 5063 mask = _mask; |
| 5064 } | 5064 } |
| 5065 | 5065 |
| 5066 void* Set(void* cmd, GLenum _func, GLint _ref, GLuint _mask) { | 5066 void* Set(void* cmd, GLenum _func, GLint _ref, GLuint _mask) { |
| 5067 static_cast<ValueType*>(cmd)->Init(_func, _ref, _mask); | 5067 static_cast<ValueType*>(cmd)->Init(_func, _ref, _mask); |
| 5068 return NextCmdAddress<ValueType>(cmd); | 5068 return NextCmdAddress<ValueType>(cmd); |
| 5069 } | 5069 } |
| 5070 | 5070 |
| 5071 command_buffer::CommandHeader header; | 5071 gpu::CommandHeader header; |
| 5072 uint32 func; | 5072 uint32 func; |
| 5073 uint32 ref; | 5073 uint32 ref; |
| 5074 uint32 mask; | 5074 uint32 mask; |
| 5075 }; | 5075 }; |
| 5076 | 5076 |
| 5077 COMPILE_ASSERT(sizeof(StencilFunc) == 16, | 5077 COMPILE_ASSERT(sizeof(StencilFunc) == 16, |
| 5078 Sizeof_StencilFunc_is_not_16); | 5078 Sizeof_StencilFunc_is_not_16); |
| 5079 COMPILE_ASSERT(offsetof(StencilFunc, header) == 0, | 5079 COMPILE_ASSERT(offsetof(StencilFunc, header) == 0, |
| 5080 OffsetOf_StencilFunc_header_not_0); | 5080 OffsetOf_StencilFunc_header_not_0); |
| 5081 COMPILE_ASSERT(offsetof(StencilFunc, func) == 4, | 5081 COMPILE_ASSERT(offsetof(StencilFunc, func) == 4, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 5104 func = _func; | 5104 func = _func; |
| 5105 ref = _ref; | 5105 ref = _ref; |
| 5106 mask = _mask; | 5106 mask = _mask; |
| 5107 } | 5107 } |
| 5108 | 5108 |
| 5109 void* Set(void* cmd, GLenum _face, GLenum _func, GLint _ref, GLuint _mask) { | 5109 void* Set(void* cmd, GLenum _face, GLenum _func, GLint _ref, GLuint _mask) { |
| 5110 static_cast<ValueType*>(cmd)->Init(_face, _func, _ref, _mask); | 5110 static_cast<ValueType*>(cmd)->Init(_face, _func, _ref, _mask); |
| 5111 return NextCmdAddress<ValueType>(cmd); | 5111 return NextCmdAddress<ValueType>(cmd); |
| 5112 } | 5112 } |
| 5113 | 5113 |
| 5114 command_buffer::CommandHeader header; | 5114 gpu::CommandHeader header; |
| 5115 uint32 face; | 5115 uint32 face; |
| 5116 uint32 func; | 5116 uint32 func; |
| 5117 uint32 ref; | 5117 uint32 ref; |
| 5118 uint32 mask; | 5118 uint32 mask; |
| 5119 }; | 5119 }; |
| 5120 | 5120 |
| 5121 COMPILE_ASSERT(sizeof(StencilFuncSeparate) == 20, | 5121 COMPILE_ASSERT(sizeof(StencilFuncSeparate) == 20, |
| 5122 Sizeof_StencilFuncSeparate_is_not_20); | 5122 Sizeof_StencilFuncSeparate_is_not_20); |
| 5123 COMPILE_ASSERT(offsetof(StencilFuncSeparate, header) == 0, | 5123 COMPILE_ASSERT(offsetof(StencilFuncSeparate, header) == 0, |
| 5124 OffsetOf_StencilFuncSeparate_header_not_0); | 5124 OffsetOf_StencilFuncSeparate_header_not_0); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 5147 void Init(GLuint _mask) { | 5147 void Init(GLuint _mask) { |
| 5148 SetHeader(); | 5148 SetHeader(); |
| 5149 mask = _mask; | 5149 mask = _mask; |
| 5150 } | 5150 } |
| 5151 | 5151 |
| 5152 void* Set(void* cmd, GLuint _mask) { | 5152 void* Set(void* cmd, GLuint _mask) { |
| 5153 static_cast<ValueType*>(cmd)->Init(_mask); | 5153 static_cast<ValueType*>(cmd)->Init(_mask); |
| 5154 return NextCmdAddress<ValueType>(cmd); | 5154 return NextCmdAddress<ValueType>(cmd); |
| 5155 } | 5155 } |
| 5156 | 5156 |
| 5157 command_buffer::CommandHeader header; | 5157 gpu::CommandHeader header; |
| 5158 uint32 mask; | 5158 uint32 mask; |
| 5159 }; | 5159 }; |
| 5160 | 5160 |
| 5161 COMPILE_ASSERT(sizeof(StencilMask) == 8, | 5161 COMPILE_ASSERT(sizeof(StencilMask) == 8, |
| 5162 Sizeof_StencilMask_is_not_8); | 5162 Sizeof_StencilMask_is_not_8); |
| 5163 COMPILE_ASSERT(offsetof(StencilMask, header) == 0, | 5163 COMPILE_ASSERT(offsetof(StencilMask, header) == 0, |
| 5164 OffsetOf_StencilMask_header_not_0); | 5164 OffsetOf_StencilMask_header_not_0); |
| 5165 COMPILE_ASSERT(offsetof(StencilMask, mask) == 4, | 5165 COMPILE_ASSERT(offsetof(StencilMask, mask) == 4, |
| 5166 OffsetOf_StencilMask_mask_not_4); | 5166 OffsetOf_StencilMask_mask_not_4); |
| 5167 | 5167 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 5182 SetHeader(); | 5182 SetHeader(); |
| 5183 face = _face; | 5183 face = _face; |
| 5184 mask = _mask; | 5184 mask = _mask; |
| 5185 } | 5185 } |
| 5186 | 5186 |
| 5187 void* Set(void* cmd, GLenum _face, GLuint _mask) { | 5187 void* Set(void* cmd, GLenum _face, GLuint _mask) { |
| 5188 static_cast<ValueType*>(cmd)->Init(_face, _mask); | 5188 static_cast<ValueType*>(cmd)->Init(_face, _mask); |
| 5189 return NextCmdAddress<ValueType>(cmd); | 5189 return NextCmdAddress<ValueType>(cmd); |
| 5190 } | 5190 } |
| 5191 | 5191 |
| 5192 command_buffer::CommandHeader header; | 5192 gpu::CommandHeader header; |
| 5193 uint32 face; | 5193 uint32 face; |
| 5194 uint32 mask; | 5194 uint32 mask; |
| 5195 }; | 5195 }; |
| 5196 | 5196 |
| 5197 COMPILE_ASSERT(sizeof(StencilMaskSeparate) == 12, | 5197 COMPILE_ASSERT(sizeof(StencilMaskSeparate) == 12, |
| 5198 Sizeof_StencilMaskSeparate_is_not_12); | 5198 Sizeof_StencilMaskSeparate_is_not_12); |
| 5199 COMPILE_ASSERT(offsetof(StencilMaskSeparate, header) == 0, | 5199 COMPILE_ASSERT(offsetof(StencilMaskSeparate, header) == 0, |
| 5200 OffsetOf_StencilMaskSeparate_header_not_0); | 5200 OffsetOf_StencilMaskSeparate_header_not_0); |
| 5201 COMPILE_ASSERT(offsetof(StencilMaskSeparate, face) == 4, | 5201 COMPILE_ASSERT(offsetof(StencilMaskSeparate, face) == 4, |
| 5202 OffsetOf_StencilMaskSeparate_face_not_4); | 5202 OffsetOf_StencilMaskSeparate_face_not_4); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 5221 fail = _fail; | 5221 fail = _fail; |
| 5222 zfail = _zfail; | 5222 zfail = _zfail; |
| 5223 zpass = _zpass; | 5223 zpass = _zpass; |
| 5224 } | 5224 } |
| 5225 | 5225 |
| 5226 void* Set(void* cmd, GLenum _fail, GLenum _zfail, GLenum _zpass) { | 5226 void* Set(void* cmd, GLenum _fail, GLenum _zfail, GLenum _zpass) { |
| 5227 static_cast<ValueType*>(cmd)->Init(_fail, _zfail, _zpass); | 5227 static_cast<ValueType*>(cmd)->Init(_fail, _zfail, _zpass); |
| 5228 return NextCmdAddress<ValueType>(cmd); | 5228 return NextCmdAddress<ValueType>(cmd); |
| 5229 } | 5229 } |
| 5230 | 5230 |
| 5231 command_buffer::CommandHeader header; | 5231 gpu::CommandHeader header; |
| 5232 uint32 fail; | 5232 uint32 fail; |
| 5233 uint32 zfail; | 5233 uint32 zfail; |
| 5234 uint32 zpass; | 5234 uint32 zpass; |
| 5235 }; | 5235 }; |
| 5236 | 5236 |
| 5237 COMPILE_ASSERT(sizeof(StencilOp) == 16, | 5237 COMPILE_ASSERT(sizeof(StencilOp) == 16, |
| 5238 Sizeof_StencilOp_is_not_16); | 5238 Sizeof_StencilOp_is_not_16); |
| 5239 COMPILE_ASSERT(offsetof(StencilOp, header) == 0, | 5239 COMPILE_ASSERT(offsetof(StencilOp, header) == 0, |
| 5240 OffsetOf_StencilOp_header_not_0); | 5240 OffsetOf_StencilOp_header_not_0); |
| 5241 COMPILE_ASSERT(offsetof(StencilOp, fail) == 4, | 5241 COMPILE_ASSERT(offsetof(StencilOp, fail) == 4, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5265 zfail = _zfail; | 5265 zfail = _zfail; |
| 5266 zpass = _zpass; | 5266 zpass = _zpass; |
| 5267 } | 5267 } |
| 5268 | 5268 |
| 5269 void* Set( | 5269 void* Set( |
| 5270 void* cmd, GLenum _face, GLenum _fail, GLenum _zfail, GLenum _zpass) { | 5270 void* cmd, GLenum _face, GLenum _fail, GLenum _zfail, GLenum _zpass) { |
| 5271 static_cast<ValueType*>(cmd)->Init(_face, _fail, _zfail, _zpass); | 5271 static_cast<ValueType*>(cmd)->Init(_face, _fail, _zfail, _zpass); |
| 5272 return NextCmdAddress<ValueType>(cmd); | 5272 return NextCmdAddress<ValueType>(cmd); |
| 5273 } | 5273 } |
| 5274 | 5274 |
| 5275 command_buffer::CommandHeader header; | 5275 gpu::CommandHeader header; |
| 5276 uint32 face; | 5276 uint32 face; |
| 5277 uint32 fail; | 5277 uint32 fail; |
| 5278 uint32 zfail; | 5278 uint32 zfail; |
| 5279 uint32 zpass; | 5279 uint32 zpass; |
| 5280 }; | 5280 }; |
| 5281 | 5281 |
| 5282 COMPILE_ASSERT(sizeof(StencilOpSeparate) == 20, | 5282 COMPILE_ASSERT(sizeof(StencilOpSeparate) == 20, |
| 5283 Sizeof_StencilOpSeparate_is_not_20); | 5283 Sizeof_StencilOpSeparate_is_not_20); |
| 5284 COMPILE_ASSERT(offsetof(StencilOpSeparate, header) == 0, | 5284 COMPILE_ASSERT(offsetof(StencilOpSeparate, header) == 0, |
| 5285 OffsetOf_StencilOpSeparate_header_not_0); | 5285 OffsetOf_StencilOpSeparate_header_not_0); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5326 void* cmd, GLenum _target, GLint _level, GLint _internalformat, | 5326 void* cmd, GLenum _target, GLint _level, GLint _internalformat, |
| 5327 GLsizei _width, GLsizei _height, GLint _border, GLenum _format, | 5327 GLsizei _width, GLsizei _height, GLint _border, GLenum _format, |
| 5328 GLenum _type, uint32 _pixels_shm_id, uint32 _pixels_shm_offset) { | 5328 GLenum _type, uint32 _pixels_shm_id, uint32 _pixels_shm_offset) { |
| 5329 static_cast<ValueType*>( | 5329 static_cast<ValueType*>( |
| 5330 cmd)->Init( | 5330 cmd)->Init( |
| 5331 _target, _level, _internalformat, _width, _height, _border, _format, | 5331 _target, _level, _internalformat, _width, _height, _border, _format, |
| 5332 _type, _pixels_shm_id, _pixels_shm_offset); | 5332 _type, _pixels_shm_id, _pixels_shm_offset); |
| 5333 return NextCmdAddress<ValueType>(cmd); | 5333 return NextCmdAddress<ValueType>(cmd); |
| 5334 } | 5334 } |
| 5335 | 5335 |
| 5336 command_buffer::CommandHeader header; | 5336 gpu::CommandHeader header; |
| 5337 uint32 target; | 5337 uint32 target; |
| 5338 uint32 level; | 5338 uint32 level; |
| 5339 uint32 internalformat; | 5339 uint32 internalformat; |
| 5340 uint32 width; | 5340 uint32 width; |
| 5341 uint32 height; | 5341 uint32 height; |
| 5342 uint32 border; | 5342 uint32 border; |
| 5343 uint32 format; | 5343 uint32 format; |
| 5344 uint32 type; | 5344 uint32 type; |
| 5345 uint32 pixels_shm_id; | 5345 uint32 pixels_shm_id; |
| 5346 uint32 pixels_shm_offset; | 5346 uint32 pixels_shm_offset; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5406 GLsizei _width, GLsizei _height, GLint _border, GLenum _format, | 5406 GLsizei _width, GLsizei _height, GLint _border, GLenum _format, |
| 5407 GLenum _type) { | 5407 GLenum _type) { |
| 5408 uint32 total_size = 0; // TODO(gman): get correct size. | 5408 uint32 total_size = 0; // TODO(gman): get correct size. |
| 5409 static_cast<ValueType*>( | 5409 static_cast<ValueType*>( |
| 5410 cmd)->Init( | 5410 cmd)->Init( |
| 5411 _target, _level, _internalformat, _width, _height, _border, _format, | 5411 _target, _level, _internalformat, _width, _height, _border, _format, |
| 5412 _type); | 5412 _type); |
| 5413 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); | 5413 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); |
| 5414 } | 5414 } |
| 5415 | 5415 |
| 5416 command_buffer::CommandHeader header; | 5416 gpu::CommandHeader header; |
| 5417 uint32 target; | 5417 uint32 target; |
| 5418 uint32 level; | 5418 uint32 level; |
| 5419 uint32 internalformat; | 5419 uint32 internalformat; |
| 5420 uint32 width; | 5420 uint32 width; |
| 5421 uint32 height; | 5421 uint32 height; |
| 5422 uint32 border; | 5422 uint32 border; |
| 5423 uint32 format; | 5423 uint32 format; |
| 5424 uint32 type; | 5424 uint32 type; |
| 5425 }; | 5425 }; |
| 5426 | 5426 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5463 target = _target; | 5463 target = _target; |
| 5464 pname = _pname; | 5464 pname = _pname; |
| 5465 param = _param; | 5465 param = _param; |
| 5466 } | 5466 } |
| 5467 | 5467 |
| 5468 void* Set(void* cmd, GLenum _target, GLenum _pname, GLfloat _param) { | 5468 void* Set(void* cmd, GLenum _target, GLenum _pname, GLfloat _param) { |
| 5469 static_cast<ValueType*>(cmd)->Init(_target, _pname, _param); | 5469 static_cast<ValueType*>(cmd)->Init(_target, _pname, _param); |
| 5470 return NextCmdAddress<ValueType>(cmd); | 5470 return NextCmdAddress<ValueType>(cmd); |
| 5471 } | 5471 } |
| 5472 | 5472 |
| 5473 command_buffer::CommandHeader header; | 5473 gpu::CommandHeader header; |
| 5474 uint32 target; | 5474 uint32 target; |
| 5475 uint32 pname; | 5475 uint32 pname; |
| 5476 float param; | 5476 float param; |
| 5477 }; | 5477 }; |
| 5478 | 5478 |
| 5479 COMPILE_ASSERT(sizeof(TexParameterf) == 16, | 5479 COMPILE_ASSERT(sizeof(TexParameterf) == 16, |
| 5480 Sizeof_TexParameterf_is_not_16); | 5480 Sizeof_TexParameterf_is_not_16); |
| 5481 COMPILE_ASSERT(offsetof(TexParameterf, header) == 0, | 5481 COMPILE_ASSERT(offsetof(TexParameterf, header) == 0, |
| 5482 OffsetOf_TexParameterf_header_not_0); | 5482 OffsetOf_TexParameterf_header_not_0); |
| 5483 COMPILE_ASSERT(offsetof(TexParameterf, target) == 4, | 5483 COMPILE_ASSERT(offsetof(TexParameterf, target) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5511 } | 5511 } |
| 5512 | 5512 |
| 5513 void* Set( | 5513 void* Set( |
| 5514 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, | 5514 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, |
| 5515 uint32 _params_shm_offset) { | 5515 uint32 _params_shm_offset) { |
| 5516 static_cast<ValueType*>( | 5516 static_cast<ValueType*>( |
| 5517 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); | 5517 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); |
| 5518 return NextCmdAddress<ValueType>(cmd); | 5518 return NextCmdAddress<ValueType>(cmd); |
| 5519 } | 5519 } |
| 5520 | 5520 |
| 5521 command_buffer::CommandHeader header; | 5521 gpu::CommandHeader header; |
| 5522 uint32 target; | 5522 uint32 target; |
| 5523 uint32 pname; | 5523 uint32 pname; |
| 5524 uint32 params_shm_id; | 5524 uint32 params_shm_id; |
| 5525 uint32 params_shm_offset; | 5525 uint32 params_shm_offset; |
| 5526 }; | 5526 }; |
| 5527 | 5527 |
| 5528 COMPILE_ASSERT(sizeof(TexParameterfv) == 20, | 5528 COMPILE_ASSERT(sizeof(TexParameterfv) == 20, |
| 5529 Sizeof_TexParameterfv_is_not_20); | 5529 Sizeof_TexParameterfv_is_not_20); |
| 5530 COMPILE_ASSERT(offsetof(TexParameterfv, header) == 0, | 5530 COMPILE_ASSERT(offsetof(TexParameterfv, header) == 0, |
| 5531 OffsetOf_TexParameterfv_header_not_0); | 5531 OffsetOf_TexParameterfv_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5564 memcpy(ImmediateDataAddress(this), | 5564 memcpy(ImmediateDataAddress(this), |
| 5565 _params, ComputeDataSize()); | 5565 _params, ComputeDataSize()); |
| 5566 } | 5566 } |
| 5567 | 5567 |
| 5568 void* Set(void* cmd, GLenum _target, GLenum _pname, const GLfloat* _params) { | 5568 void* Set(void* cmd, GLenum _target, GLenum _pname, const GLfloat* _params) { |
| 5569 static_cast<ValueType*>(cmd)->Init(_target, _pname, _params); | 5569 static_cast<ValueType*>(cmd)->Init(_target, _pname, _params); |
| 5570 const uint32 size = ComputeSize(); | 5570 const uint32 size = ComputeSize(); |
| 5571 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 5571 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 5572 } | 5572 } |
| 5573 | 5573 |
| 5574 command_buffer::CommandHeader header; | 5574 gpu::CommandHeader header; |
| 5575 uint32 target; | 5575 uint32 target; |
| 5576 uint32 pname; | 5576 uint32 pname; |
| 5577 }; | 5577 }; |
| 5578 | 5578 |
| 5579 COMPILE_ASSERT(sizeof(TexParameterfvImmediate) == 12, | 5579 COMPILE_ASSERT(sizeof(TexParameterfvImmediate) == 12, |
| 5580 Sizeof_TexParameterfvImmediate_is_not_12); | 5580 Sizeof_TexParameterfvImmediate_is_not_12); |
| 5581 COMPILE_ASSERT(offsetof(TexParameterfvImmediate, header) == 0, | 5581 COMPILE_ASSERT(offsetof(TexParameterfvImmediate, header) == 0, |
| 5582 OffsetOf_TexParameterfvImmediate_header_not_0); | 5582 OffsetOf_TexParameterfvImmediate_header_not_0); |
| 5583 COMPILE_ASSERT(offsetof(TexParameterfvImmediate, target) == 4, | 5583 COMPILE_ASSERT(offsetof(TexParameterfvImmediate, target) == 4, |
| 5584 OffsetOf_TexParameterfvImmediate_target_not_4); | 5584 OffsetOf_TexParameterfvImmediate_target_not_4); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 5603 target = _target; | 5603 target = _target; |
| 5604 pname = _pname; | 5604 pname = _pname; |
| 5605 param = _param; | 5605 param = _param; |
| 5606 } | 5606 } |
| 5607 | 5607 |
| 5608 void* Set(void* cmd, GLenum _target, GLenum _pname, GLint _param) { | 5608 void* Set(void* cmd, GLenum _target, GLenum _pname, GLint _param) { |
| 5609 static_cast<ValueType*>(cmd)->Init(_target, _pname, _param); | 5609 static_cast<ValueType*>(cmd)->Init(_target, _pname, _param); |
| 5610 return NextCmdAddress<ValueType>(cmd); | 5610 return NextCmdAddress<ValueType>(cmd); |
| 5611 } | 5611 } |
| 5612 | 5612 |
| 5613 command_buffer::CommandHeader header; | 5613 gpu::CommandHeader header; |
| 5614 uint32 target; | 5614 uint32 target; |
| 5615 uint32 pname; | 5615 uint32 pname; |
| 5616 uint32 param; | 5616 uint32 param; |
| 5617 }; | 5617 }; |
| 5618 | 5618 |
| 5619 COMPILE_ASSERT(sizeof(TexParameteri) == 16, | 5619 COMPILE_ASSERT(sizeof(TexParameteri) == 16, |
| 5620 Sizeof_TexParameteri_is_not_16); | 5620 Sizeof_TexParameteri_is_not_16); |
| 5621 COMPILE_ASSERT(offsetof(TexParameteri, header) == 0, | 5621 COMPILE_ASSERT(offsetof(TexParameteri, header) == 0, |
| 5622 OffsetOf_TexParameteri_header_not_0); | 5622 OffsetOf_TexParameteri_header_not_0); |
| 5623 COMPILE_ASSERT(offsetof(TexParameteri, target) == 4, | 5623 COMPILE_ASSERT(offsetof(TexParameteri, target) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 5651 } | 5651 } |
| 5652 | 5652 |
| 5653 void* Set( | 5653 void* Set( |
| 5654 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, | 5654 void* cmd, GLenum _target, GLenum _pname, uint32 _params_shm_id, |
| 5655 uint32 _params_shm_offset) { | 5655 uint32 _params_shm_offset) { |
| 5656 static_cast<ValueType*>( | 5656 static_cast<ValueType*>( |
| 5657 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); | 5657 cmd)->Init(_target, _pname, _params_shm_id, _params_shm_offset); |
| 5658 return NextCmdAddress<ValueType>(cmd); | 5658 return NextCmdAddress<ValueType>(cmd); |
| 5659 } | 5659 } |
| 5660 | 5660 |
| 5661 command_buffer::CommandHeader header; | 5661 gpu::CommandHeader header; |
| 5662 uint32 target; | 5662 uint32 target; |
| 5663 uint32 pname; | 5663 uint32 pname; |
| 5664 uint32 params_shm_id; | 5664 uint32 params_shm_id; |
| 5665 uint32 params_shm_offset; | 5665 uint32 params_shm_offset; |
| 5666 }; | 5666 }; |
| 5667 | 5667 |
| 5668 COMPILE_ASSERT(sizeof(TexParameteriv) == 20, | 5668 COMPILE_ASSERT(sizeof(TexParameteriv) == 20, |
| 5669 Sizeof_TexParameteriv_is_not_20); | 5669 Sizeof_TexParameteriv_is_not_20); |
| 5670 COMPILE_ASSERT(offsetof(TexParameteriv, header) == 0, | 5670 COMPILE_ASSERT(offsetof(TexParameteriv, header) == 0, |
| 5671 OffsetOf_TexParameteriv_header_not_0); | 5671 OffsetOf_TexParameteriv_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5704 memcpy(ImmediateDataAddress(this), | 5704 memcpy(ImmediateDataAddress(this), |
| 5705 _params, ComputeDataSize()); | 5705 _params, ComputeDataSize()); |
| 5706 } | 5706 } |
| 5707 | 5707 |
| 5708 void* Set(void* cmd, GLenum _target, GLenum _pname, const GLint* _params) { | 5708 void* Set(void* cmd, GLenum _target, GLenum _pname, const GLint* _params) { |
| 5709 static_cast<ValueType*>(cmd)->Init(_target, _pname, _params); | 5709 static_cast<ValueType*>(cmd)->Init(_target, _pname, _params); |
| 5710 const uint32 size = ComputeSize(); | 5710 const uint32 size = ComputeSize(); |
| 5711 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 5711 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 5712 } | 5712 } |
| 5713 | 5713 |
| 5714 command_buffer::CommandHeader header; | 5714 gpu::CommandHeader header; |
| 5715 uint32 target; | 5715 uint32 target; |
| 5716 uint32 pname; | 5716 uint32 pname; |
| 5717 }; | 5717 }; |
| 5718 | 5718 |
| 5719 COMPILE_ASSERT(sizeof(TexParameterivImmediate) == 12, | 5719 COMPILE_ASSERT(sizeof(TexParameterivImmediate) == 12, |
| 5720 Sizeof_TexParameterivImmediate_is_not_12); | 5720 Sizeof_TexParameterivImmediate_is_not_12); |
| 5721 COMPILE_ASSERT(offsetof(TexParameterivImmediate, header) == 0, | 5721 COMPILE_ASSERT(offsetof(TexParameterivImmediate, header) == 0, |
| 5722 OffsetOf_TexParameterivImmediate_header_not_0); | 5722 OffsetOf_TexParameterivImmediate_header_not_0); |
| 5723 COMPILE_ASSERT(offsetof(TexParameterivImmediate, target) == 4, | 5723 COMPILE_ASSERT(offsetof(TexParameterivImmediate, target) == 4, |
| 5724 OffsetOf_TexParameterivImmediate_target_not_4); | 5724 OffsetOf_TexParameterivImmediate_target_not_4); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5759 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, | 5759 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, |
| 5760 GLsizei _width, GLsizei _height, GLenum _format, GLenum _type, | 5760 GLsizei _width, GLsizei _height, GLenum _format, GLenum _type, |
| 5761 uint32 _pixels_shm_id, uint32 _pixels_shm_offset) { | 5761 uint32 _pixels_shm_id, uint32 _pixels_shm_offset) { |
| 5762 static_cast<ValueType*>( | 5762 static_cast<ValueType*>( |
| 5763 cmd)->Init( | 5763 cmd)->Init( |
| 5764 _target, _level, _xoffset, _yoffset, _width, _height, _format, | 5764 _target, _level, _xoffset, _yoffset, _width, _height, _format, |
| 5765 _type, _pixels_shm_id, _pixels_shm_offset); | 5765 _type, _pixels_shm_id, _pixels_shm_offset); |
| 5766 return NextCmdAddress<ValueType>(cmd); | 5766 return NextCmdAddress<ValueType>(cmd); |
| 5767 } | 5767 } |
| 5768 | 5768 |
| 5769 command_buffer::CommandHeader header; | 5769 gpu::CommandHeader header; |
| 5770 uint32 target; | 5770 uint32 target; |
| 5771 uint32 level; | 5771 uint32 level; |
| 5772 uint32 xoffset; | 5772 uint32 xoffset; |
| 5773 uint32 yoffset; | 5773 uint32 yoffset; |
| 5774 uint32 width; | 5774 uint32 width; |
| 5775 uint32 height; | 5775 uint32 height; |
| 5776 uint32 format; | 5776 uint32 format; |
| 5777 uint32 type; | 5777 uint32 type; |
| 5778 uint32 pixels_shm_id; | 5778 uint32 pixels_shm_id; |
| 5779 uint32 pixels_shm_offset; | 5779 uint32 pixels_shm_offset; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5838 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, | 5838 void* cmd, GLenum _target, GLint _level, GLint _xoffset, GLint _yoffset, |
| 5839 GLsizei _width, GLsizei _height, GLenum _format, GLenum _type) { | 5839 GLsizei _width, GLsizei _height, GLenum _format, GLenum _type) { |
| 5840 uint32 total_size = 0; // TODO(gman): get correct size | 5840 uint32 total_size = 0; // TODO(gman): get correct size |
| 5841 static_cast<ValueType*>( | 5841 static_cast<ValueType*>( |
| 5842 cmd)->Init( | 5842 cmd)->Init( |
| 5843 _target, _level, _xoffset, _yoffset, _width, _height, _format, | 5843 _target, _level, _xoffset, _yoffset, _width, _height, _format, |
| 5844 _type); | 5844 _type); |
| 5845 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); | 5845 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, total_size); |
| 5846 } | 5846 } |
| 5847 | 5847 |
| 5848 command_buffer::CommandHeader header; | 5848 gpu::CommandHeader header; |
| 5849 uint32 target; | 5849 uint32 target; |
| 5850 uint32 level; | 5850 uint32 level; |
| 5851 uint32 xoffset; | 5851 uint32 xoffset; |
| 5852 uint32 yoffset; | 5852 uint32 yoffset; |
| 5853 uint32 width; | 5853 uint32 width; |
| 5854 uint32 height; | 5854 uint32 height; |
| 5855 uint32 format; | 5855 uint32 format; |
| 5856 uint32 type; | 5856 uint32 type; |
| 5857 }; | 5857 }; |
| 5858 | 5858 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5894 SetHeader(); | 5894 SetHeader(); |
| 5895 location = _location; | 5895 location = _location; |
| 5896 x = _x; | 5896 x = _x; |
| 5897 } | 5897 } |
| 5898 | 5898 |
| 5899 void* Set(void* cmd, GLint _location, GLfloat _x) { | 5899 void* Set(void* cmd, GLint _location, GLfloat _x) { |
| 5900 static_cast<ValueType*>(cmd)->Init(_location, _x); | 5900 static_cast<ValueType*>(cmd)->Init(_location, _x); |
| 5901 return NextCmdAddress<ValueType>(cmd); | 5901 return NextCmdAddress<ValueType>(cmd); |
| 5902 } | 5902 } |
| 5903 | 5903 |
| 5904 command_buffer::CommandHeader header; | 5904 gpu::CommandHeader header; |
| 5905 uint32 location; | 5905 uint32 location; |
| 5906 float x; | 5906 float x; |
| 5907 }; | 5907 }; |
| 5908 | 5908 |
| 5909 COMPILE_ASSERT(sizeof(Uniform1f) == 12, | 5909 COMPILE_ASSERT(sizeof(Uniform1f) == 12, |
| 5910 Sizeof_Uniform1f_is_not_12); | 5910 Sizeof_Uniform1f_is_not_12); |
| 5911 COMPILE_ASSERT(offsetof(Uniform1f, header) == 0, | 5911 COMPILE_ASSERT(offsetof(Uniform1f, header) == 0, |
| 5912 OffsetOf_Uniform1f_header_not_0); | 5912 OffsetOf_Uniform1f_header_not_0); |
| 5913 COMPILE_ASSERT(offsetof(Uniform1f, location) == 4, | 5913 COMPILE_ASSERT(offsetof(Uniform1f, location) == 4, |
| 5914 OffsetOf_Uniform1f_location_not_4); | 5914 OffsetOf_Uniform1f_location_not_4); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 5939 } | 5939 } |
| 5940 | 5940 |
| 5941 void* Set( | 5941 void* Set( |
| 5942 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, | 5942 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, |
| 5943 uint32 _v_shm_offset) { | 5943 uint32 _v_shm_offset) { |
| 5944 static_cast<ValueType*>( | 5944 static_cast<ValueType*>( |
| 5945 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); | 5945 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); |
| 5946 return NextCmdAddress<ValueType>(cmd); | 5946 return NextCmdAddress<ValueType>(cmd); |
| 5947 } | 5947 } |
| 5948 | 5948 |
| 5949 command_buffer::CommandHeader header; | 5949 gpu::CommandHeader header; |
| 5950 uint32 location; | 5950 uint32 location; |
| 5951 uint32 count; | 5951 uint32 count; |
| 5952 uint32 v_shm_id; | 5952 uint32 v_shm_id; |
| 5953 uint32 v_shm_offset; | 5953 uint32 v_shm_offset; |
| 5954 }; | 5954 }; |
| 5955 | 5955 |
| 5956 COMPILE_ASSERT(sizeof(Uniform1fv) == 20, | 5956 COMPILE_ASSERT(sizeof(Uniform1fv) == 20, |
| 5957 Sizeof_Uniform1fv_is_not_20); | 5957 Sizeof_Uniform1fv_is_not_20); |
| 5958 COMPILE_ASSERT(offsetof(Uniform1fv, header) == 0, | 5958 COMPILE_ASSERT(offsetof(Uniform1fv, header) == 0, |
| 5959 OffsetOf_Uniform1fv_header_not_0); | 5959 OffsetOf_Uniform1fv_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5992 memcpy(ImmediateDataAddress(this), | 5992 memcpy(ImmediateDataAddress(this), |
| 5993 _v, ComputeDataSize(_count)); | 5993 _v, ComputeDataSize(_count)); |
| 5994 } | 5994 } |
| 5995 | 5995 |
| 5996 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { | 5996 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { |
| 5997 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); | 5997 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); |
| 5998 const uint32 size = ComputeSize(_count); | 5998 const uint32 size = ComputeSize(_count); |
| 5999 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 5999 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 6000 } | 6000 } |
| 6001 | 6001 |
| 6002 command_buffer::CommandHeader header; | 6002 gpu::CommandHeader header; |
| 6003 uint32 location; | 6003 uint32 location; |
| 6004 uint32 count; | 6004 uint32 count; |
| 6005 }; | 6005 }; |
| 6006 | 6006 |
| 6007 COMPILE_ASSERT(sizeof(Uniform1fvImmediate) == 12, | 6007 COMPILE_ASSERT(sizeof(Uniform1fvImmediate) == 12, |
| 6008 Sizeof_Uniform1fvImmediate_is_not_12); | 6008 Sizeof_Uniform1fvImmediate_is_not_12); |
| 6009 COMPILE_ASSERT(offsetof(Uniform1fvImmediate, header) == 0, | 6009 COMPILE_ASSERT(offsetof(Uniform1fvImmediate, header) == 0, |
| 6010 OffsetOf_Uniform1fvImmediate_header_not_0); | 6010 OffsetOf_Uniform1fvImmediate_header_not_0); |
| 6011 COMPILE_ASSERT(offsetof(Uniform1fvImmediate, location) == 4, | 6011 COMPILE_ASSERT(offsetof(Uniform1fvImmediate, location) == 4, |
| 6012 OffsetOf_Uniform1fvImmediate_location_not_4); | 6012 OffsetOf_Uniform1fvImmediate_location_not_4); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 6030 SetHeader(); | 6030 SetHeader(); |
| 6031 location = _location; | 6031 location = _location; |
| 6032 x = _x; | 6032 x = _x; |
| 6033 } | 6033 } |
| 6034 | 6034 |
| 6035 void* Set(void* cmd, GLint _location, GLint _x) { | 6035 void* Set(void* cmd, GLint _location, GLint _x) { |
| 6036 static_cast<ValueType*>(cmd)->Init(_location, _x); | 6036 static_cast<ValueType*>(cmd)->Init(_location, _x); |
| 6037 return NextCmdAddress<ValueType>(cmd); | 6037 return NextCmdAddress<ValueType>(cmd); |
| 6038 } | 6038 } |
| 6039 | 6039 |
| 6040 command_buffer::CommandHeader header; | 6040 gpu::CommandHeader header; |
| 6041 uint32 location; | 6041 uint32 location; |
| 6042 uint32 x; | 6042 uint32 x; |
| 6043 }; | 6043 }; |
| 6044 | 6044 |
| 6045 COMPILE_ASSERT(sizeof(Uniform1i) == 12, | 6045 COMPILE_ASSERT(sizeof(Uniform1i) == 12, |
| 6046 Sizeof_Uniform1i_is_not_12); | 6046 Sizeof_Uniform1i_is_not_12); |
| 6047 COMPILE_ASSERT(offsetof(Uniform1i, header) == 0, | 6047 COMPILE_ASSERT(offsetof(Uniform1i, header) == 0, |
| 6048 OffsetOf_Uniform1i_header_not_0); | 6048 OffsetOf_Uniform1i_header_not_0); |
| 6049 COMPILE_ASSERT(offsetof(Uniform1i, location) == 4, | 6049 COMPILE_ASSERT(offsetof(Uniform1i, location) == 4, |
| 6050 OffsetOf_Uniform1i_location_not_4); | 6050 OffsetOf_Uniform1i_location_not_4); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 6075 } | 6075 } |
| 6076 | 6076 |
| 6077 void* Set( | 6077 void* Set( |
| 6078 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, | 6078 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, |
| 6079 uint32 _v_shm_offset) { | 6079 uint32 _v_shm_offset) { |
| 6080 static_cast<ValueType*>( | 6080 static_cast<ValueType*>( |
| 6081 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); | 6081 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); |
| 6082 return NextCmdAddress<ValueType>(cmd); | 6082 return NextCmdAddress<ValueType>(cmd); |
| 6083 } | 6083 } |
| 6084 | 6084 |
| 6085 command_buffer::CommandHeader header; | 6085 gpu::CommandHeader header; |
| 6086 uint32 location; | 6086 uint32 location; |
| 6087 uint32 count; | 6087 uint32 count; |
| 6088 uint32 v_shm_id; | 6088 uint32 v_shm_id; |
| 6089 uint32 v_shm_offset; | 6089 uint32 v_shm_offset; |
| 6090 }; | 6090 }; |
| 6091 | 6091 |
| 6092 COMPILE_ASSERT(sizeof(Uniform1iv) == 20, | 6092 COMPILE_ASSERT(sizeof(Uniform1iv) == 20, |
| 6093 Sizeof_Uniform1iv_is_not_20); | 6093 Sizeof_Uniform1iv_is_not_20); |
| 6094 COMPILE_ASSERT(offsetof(Uniform1iv, header) == 0, | 6094 COMPILE_ASSERT(offsetof(Uniform1iv, header) == 0, |
| 6095 OffsetOf_Uniform1iv_header_not_0); | 6095 OffsetOf_Uniform1iv_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6128 memcpy(ImmediateDataAddress(this), | 6128 memcpy(ImmediateDataAddress(this), |
| 6129 _v, ComputeDataSize(_count)); | 6129 _v, ComputeDataSize(_count)); |
| 6130 } | 6130 } |
| 6131 | 6131 |
| 6132 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { | 6132 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { |
| 6133 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); | 6133 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); |
| 6134 const uint32 size = ComputeSize(_count); | 6134 const uint32 size = ComputeSize(_count); |
| 6135 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 6135 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 6136 } | 6136 } |
| 6137 | 6137 |
| 6138 command_buffer::CommandHeader header; | 6138 gpu::CommandHeader header; |
| 6139 uint32 location; | 6139 uint32 location; |
| 6140 uint32 count; | 6140 uint32 count; |
| 6141 }; | 6141 }; |
| 6142 | 6142 |
| 6143 COMPILE_ASSERT(sizeof(Uniform1ivImmediate) == 12, | 6143 COMPILE_ASSERT(sizeof(Uniform1ivImmediate) == 12, |
| 6144 Sizeof_Uniform1ivImmediate_is_not_12); | 6144 Sizeof_Uniform1ivImmediate_is_not_12); |
| 6145 COMPILE_ASSERT(offsetof(Uniform1ivImmediate, header) == 0, | 6145 COMPILE_ASSERT(offsetof(Uniform1ivImmediate, header) == 0, |
| 6146 OffsetOf_Uniform1ivImmediate_header_not_0); | 6146 OffsetOf_Uniform1ivImmediate_header_not_0); |
| 6147 COMPILE_ASSERT(offsetof(Uniform1ivImmediate, location) == 4, | 6147 COMPILE_ASSERT(offsetof(Uniform1ivImmediate, location) == 4, |
| 6148 OffsetOf_Uniform1ivImmediate_location_not_4); | 6148 OffsetOf_Uniform1ivImmediate_location_not_4); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 6167 location = _location; | 6167 location = _location; |
| 6168 x = _x; | 6168 x = _x; |
| 6169 y = _y; | 6169 y = _y; |
| 6170 } | 6170 } |
| 6171 | 6171 |
| 6172 void* Set(void* cmd, GLint _location, GLfloat _x, GLfloat _y) { | 6172 void* Set(void* cmd, GLint _location, GLfloat _x, GLfloat _y) { |
| 6173 static_cast<ValueType*>(cmd)->Init(_location, _x, _y); | 6173 static_cast<ValueType*>(cmd)->Init(_location, _x, _y); |
| 6174 return NextCmdAddress<ValueType>(cmd); | 6174 return NextCmdAddress<ValueType>(cmd); |
| 6175 } | 6175 } |
| 6176 | 6176 |
| 6177 command_buffer::CommandHeader header; | 6177 gpu::CommandHeader header; |
| 6178 uint32 location; | 6178 uint32 location; |
| 6179 float x; | 6179 float x; |
| 6180 float y; | 6180 float y; |
| 6181 }; | 6181 }; |
| 6182 | 6182 |
| 6183 COMPILE_ASSERT(sizeof(Uniform2f) == 16, | 6183 COMPILE_ASSERT(sizeof(Uniform2f) == 16, |
| 6184 Sizeof_Uniform2f_is_not_16); | 6184 Sizeof_Uniform2f_is_not_16); |
| 6185 COMPILE_ASSERT(offsetof(Uniform2f, header) == 0, | 6185 COMPILE_ASSERT(offsetof(Uniform2f, header) == 0, |
| 6186 OffsetOf_Uniform2f_header_not_0); | 6186 OffsetOf_Uniform2f_header_not_0); |
| 6187 COMPILE_ASSERT(offsetof(Uniform2f, location) == 4, | 6187 COMPILE_ASSERT(offsetof(Uniform2f, location) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6215 } | 6215 } |
| 6216 | 6216 |
| 6217 void* Set( | 6217 void* Set( |
| 6218 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, | 6218 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, |
| 6219 uint32 _v_shm_offset) { | 6219 uint32 _v_shm_offset) { |
| 6220 static_cast<ValueType*>( | 6220 static_cast<ValueType*>( |
| 6221 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); | 6221 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); |
| 6222 return NextCmdAddress<ValueType>(cmd); | 6222 return NextCmdAddress<ValueType>(cmd); |
| 6223 } | 6223 } |
| 6224 | 6224 |
| 6225 command_buffer::CommandHeader header; | 6225 gpu::CommandHeader header; |
| 6226 uint32 location; | 6226 uint32 location; |
| 6227 uint32 count; | 6227 uint32 count; |
| 6228 uint32 v_shm_id; | 6228 uint32 v_shm_id; |
| 6229 uint32 v_shm_offset; | 6229 uint32 v_shm_offset; |
| 6230 }; | 6230 }; |
| 6231 | 6231 |
| 6232 COMPILE_ASSERT(sizeof(Uniform2fv) == 20, | 6232 COMPILE_ASSERT(sizeof(Uniform2fv) == 20, |
| 6233 Sizeof_Uniform2fv_is_not_20); | 6233 Sizeof_Uniform2fv_is_not_20); |
| 6234 COMPILE_ASSERT(offsetof(Uniform2fv, header) == 0, | 6234 COMPILE_ASSERT(offsetof(Uniform2fv, header) == 0, |
| 6235 OffsetOf_Uniform2fv_header_not_0); | 6235 OffsetOf_Uniform2fv_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6268 memcpy(ImmediateDataAddress(this), | 6268 memcpy(ImmediateDataAddress(this), |
| 6269 _v, ComputeDataSize(_count)); | 6269 _v, ComputeDataSize(_count)); |
| 6270 } | 6270 } |
| 6271 | 6271 |
| 6272 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { | 6272 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { |
| 6273 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); | 6273 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); |
| 6274 const uint32 size = ComputeSize(_count); | 6274 const uint32 size = ComputeSize(_count); |
| 6275 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 6275 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 6276 } | 6276 } |
| 6277 | 6277 |
| 6278 command_buffer::CommandHeader header; | 6278 gpu::CommandHeader header; |
| 6279 uint32 location; | 6279 uint32 location; |
| 6280 uint32 count; | 6280 uint32 count; |
| 6281 }; | 6281 }; |
| 6282 | 6282 |
| 6283 COMPILE_ASSERT(sizeof(Uniform2fvImmediate) == 12, | 6283 COMPILE_ASSERT(sizeof(Uniform2fvImmediate) == 12, |
| 6284 Sizeof_Uniform2fvImmediate_is_not_12); | 6284 Sizeof_Uniform2fvImmediate_is_not_12); |
| 6285 COMPILE_ASSERT(offsetof(Uniform2fvImmediate, header) == 0, | 6285 COMPILE_ASSERT(offsetof(Uniform2fvImmediate, header) == 0, |
| 6286 OffsetOf_Uniform2fvImmediate_header_not_0); | 6286 OffsetOf_Uniform2fvImmediate_header_not_0); |
| 6287 COMPILE_ASSERT(offsetof(Uniform2fvImmediate, location) == 4, | 6287 COMPILE_ASSERT(offsetof(Uniform2fvImmediate, location) == 4, |
| 6288 OffsetOf_Uniform2fvImmediate_location_not_4); | 6288 OffsetOf_Uniform2fvImmediate_location_not_4); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 6307 location = _location; | 6307 location = _location; |
| 6308 x = _x; | 6308 x = _x; |
| 6309 y = _y; | 6309 y = _y; |
| 6310 } | 6310 } |
| 6311 | 6311 |
| 6312 void* Set(void* cmd, GLint _location, GLint _x, GLint _y) { | 6312 void* Set(void* cmd, GLint _location, GLint _x, GLint _y) { |
| 6313 static_cast<ValueType*>(cmd)->Init(_location, _x, _y); | 6313 static_cast<ValueType*>(cmd)->Init(_location, _x, _y); |
| 6314 return NextCmdAddress<ValueType>(cmd); | 6314 return NextCmdAddress<ValueType>(cmd); |
| 6315 } | 6315 } |
| 6316 | 6316 |
| 6317 command_buffer::CommandHeader header; | 6317 gpu::CommandHeader header; |
| 6318 uint32 location; | 6318 uint32 location; |
| 6319 uint32 x; | 6319 uint32 x; |
| 6320 uint32 y; | 6320 uint32 y; |
| 6321 }; | 6321 }; |
| 6322 | 6322 |
| 6323 COMPILE_ASSERT(sizeof(Uniform2i) == 16, | 6323 COMPILE_ASSERT(sizeof(Uniform2i) == 16, |
| 6324 Sizeof_Uniform2i_is_not_16); | 6324 Sizeof_Uniform2i_is_not_16); |
| 6325 COMPILE_ASSERT(offsetof(Uniform2i, header) == 0, | 6325 COMPILE_ASSERT(offsetof(Uniform2i, header) == 0, |
| 6326 OffsetOf_Uniform2i_header_not_0); | 6326 OffsetOf_Uniform2i_header_not_0); |
| 6327 COMPILE_ASSERT(offsetof(Uniform2i, location) == 4, | 6327 COMPILE_ASSERT(offsetof(Uniform2i, location) == 4, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6355 } | 6355 } |
| 6356 | 6356 |
| 6357 void* Set( | 6357 void* Set( |
| 6358 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, | 6358 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, |
| 6359 uint32 _v_shm_offset) { | 6359 uint32 _v_shm_offset) { |
| 6360 static_cast<ValueType*>( | 6360 static_cast<ValueType*>( |
| 6361 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); | 6361 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); |
| 6362 return NextCmdAddress<ValueType>(cmd); | 6362 return NextCmdAddress<ValueType>(cmd); |
| 6363 } | 6363 } |
| 6364 | 6364 |
| 6365 command_buffer::CommandHeader header; | 6365 gpu::CommandHeader header; |
| 6366 uint32 location; | 6366 uint32 location; |
| 6367 uint32 count; | 6367 uint32 count; |
| 6368 uint32 v_shm_id; | 6368 uint32 v_shm_id; |
| 6369 uint32 v_shm_offset; | 6369 uint32 v_shm_offset; |
| 6370 }; | 6370 }; |
| 6371 | 6371 |
| 6372 COMPILE_ASSERT(sizeof(Uniform2iv) == 20, | 6372 COMPILE_ASSERT(sizeof(Uniform2iv) == 20, |
| 6373 Sizeof_Uniform2iv_is_not_20); | 6373 Sizeof_Uniform2iv_is_not_20); |
| 6374 COMPILE_ASSERT(offsetof(Uniform2iv, header) == 0, | 6374 COMPILE_ASSERT(offsetof(Uniform2iv, header) == 0, |
| 6375 OffsetOf_Uniform2iv_header_not_0); | 6375 OffsetOf_Uniform2iv_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6408 memcpy(ImmediateDataAddress(this), | 6408 memcpy(ImmediateDataAddress(this), |
| 6409 _v, ComputeDataSize(_count)); | 6409 _v, ComputeDataSize(_count)); |
| 6410 } | 6410 } |
| 6411 | 6411 |
| 6412 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { | 6412 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { |
| 6413 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); | 6413 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); |
| 6414 const uint32 size = ComputeSize(_count); | 6414 const uint32 size = ComputeSize(_count); |
| 6415 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 6415 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 6416 } | 6416 } |
| 6417 | 6417 |
| 6418 command_buffer::CommandHeader header; | 6418 gpu::CommandHeader header; |
| 6419 uint32 location; | 6419 uint32 location; |
| 6420 uint32 count; | 6420 uint32 count; |
| 6421 }; | 6421 }; |
| 6422 | 6422 |
| 6423 COMPILE_ASSERT(sizeof(Uniform2ivImmediate) == 12, | 6423 COMPILE_ASSERT(sizeof(Uniform2ivImmediate) == 12, |
| 6424 Sizeof_Uniform2ivImmediate_is_not_12); | 6424 Sizeof_Uniform2ivImmediate_is_not_12); |
| 6425 COMPILE_ASSERT(offsetof(Uniform2ivImmediate, header) == 0, | 6425 COMPILE_ASSERT(offsetof(Uniform2ivImmediate, header) == 0, |
| 6426 OffsetOf_Uniform2ivImmediate_header_not_0); | 6426 OffsetOf_Uniform2ivImmediate_header_not_0); |
| 6427 COMPILE_ASSERT(offsetof(Uniform2ivImmediate, location) == 4, | 6427 COMPILE_ASSERT(offsetof(Uniform2ivImmediate, location) == 4, |
| 6428 OffsetOf_Uniform2ivImmediate_location_not_4); | 6428 OffsetOf_Uniform2ivImmediate_location_not_4); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6448 x = _x; | 6448 x = _x; |
| 6449 y = _y; | 6449 y = _y; |
| 6450 z = _z; | 6450 z = _z; |
| 6451 } | 6451 } |
| 6452 | 6452 |
| 6453 void* Set(void* cmd, GLint _location, GLfloat _x, GLfloat _y, GLfloat _z) { | 6453 void* Set(void* cmd, GLint _location, GLfloat _x, GLfloat _y, GLfloat _z) { |
| 6454 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z); | 6454 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z); |
| 6455 return NextCmdAddress<ValueType>(cmd); | 6455 return NextCmdAddress<ValueType>(cmd); |
| 6456 } | 6456 } |
| 6457 | 6457 |
| 6458 command_buffer::CommandHeader header; | 6458 gpu::CommandHeader header; |
| 6459 uint32 location; | 6459 uint32 location; |
| 6460 float x; | 6460 float x; |
| 6461 float y; | 6461 float y; |
| 6462 float z; | 6462 float z; |
| 6463 }; | 6463 }; |
| 6464 | 6464 |
| 6465 COMPILE_ASSERT(sizeof(Uniform3f) == 20, | 6465 COMPILE_ASSERT(sizeof(Uniform3f) == 20, |
| 6466 Sizeof_Uniform3f_is_not_20); | 6466 Sizeof_Uniform3f_is_not_20); |
| 6467 COMPILE_ASSERT(offsetof(Uniform3f, header) == 0, | 6467 COMPILE_ASSERT(offsetof(Uniform3f, header) == 0, |
| 6468 OffsetOf_Uniform3f_header_not_0); | 6468 OffsetOf_Uniform3f_header_not_0); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 6499 } | 6499 } |
| 6500 | 6500 |
| 6501 void* Set( | 6501 void* Set( |
| 6502 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, | 6502 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, |
| 6503 uint32 _v_shm_offset) { | 6503 uint32 _v_shm_offset) { |
| 6504 static_cast<ValueType*>( | 6504 static_cast<ValueType*>( |
| 6505 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); | 6505 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); |
| 6506 return NextCmdAddress<ValueType>(cmd); | 6506 return NextCmdAddress<ValueType>(cmd); |
| 6507 } | 6507 } |
| 6508 | 6508 |
| 6509 command_buffer::CommandHeader header; | 6509 gpu::CommandHeader header; |
| 6510 uint32 location; | 6510 uint32 location; |
| 6511 uint32 count; | 6511 uint32 count; |
| 6512 uint32 v_shm_id; | 6512 uint32 v_shm_id; |
| 6513 uint32 v_shm_offset; | 6513 uint32 v_shm_offset; |
| 6514 }; | 6514 }; |
| 6515 | 6515 |
| 6516 COMPILE_ASSERT(sizeof(Uniform3fv) == 20, | 6516 COMPILE_ASSERT(sizeof(Uniform3fv) == 20, |
| 6517 Sizeof_Uniform3fv_is_not_20); | 6517 Sizeof_Uniform3fv_is_not_20); |
| 6518 COMPILE_ASSERT(offsetof(Uniform3fv, header) == 0, | 6518 COMPILE_ASSERT(offsetof(Uniform3fv, header) == 0, |
| 6519 OffsetOf_Uniform3fv_header_not_0); | 6519 OffsetOf_Uniform3fv_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6552 memcpy(ImmediateDataAddress(this), | 6552 memcpy(ImmediateDataAddress(this), |
| 6553 _v, ComputeDataSize(_count)); | 6553 _v, ComputeDataSize(_count)); |
| 6554 } | 6554 } |
| 6555 | 6555 |
| 6556 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { | 6556 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { |
| 6557 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); | 6557 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); |
| 6558 const uint32 size = ComputeSize(_count); | 6558 const uint32 size = ComputeSize(_count); |
| 6559 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 6559 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 6560 } | 6560 } |
| 6561 | 6561 |
| 6562 command_buffer::CommandHeader header; | 6562 gpu::CommandHeader header; |
| 6563 uint32 location; | 6563 uint32 location; |
| 6564 uint32 count; | 6564 uint32 count; |
| 6565 }; | 6565 }; |
| 6566 | 6566 |
| 6567 COMPILE_ASSERT(sizeof(Uniform3fvImmediate) == 12, | 6567 COMPILE_ASSERT(sizeof(Uniform3fvImmediate) == 12, |
| 6568 Sizeof_Uniform3fvImmediate_is_not_12); | 6568 Sizeof_Uniform3fvImmediate_is_not_12); |
| 6569 COMPILE_ASSERT(offsetof(Uniform3fvImmediate, header) == 0, | 6569 COMPILE_ASSERT(offsetof(Uniform3fvImmediate, header) == 0, |
| 6570 OffsetOf_Uniform3fvImmediate_header_not_0); | 6570 OffsetOf_Uniform3fvImmediate_header_not_0); |
| 6571 COMPILE_ASSERT(offsetof(Uniform3fvImmediate, location) == 4, | 6571 COMPILE_ASSERT(offsetof(Uniform3fvImmediate, location) == 4, |
| 6572 OffsetOf_Uniform3fvImmediate_location_not_4); | 6572 OffsetOf_Uniform3fvImmediate_location_not_4); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6592 x = _x; | 6592 x = _x; |
| 6593 y = _y; | 6593 y = _y; |
| 6594 z = _z; | 6594 z = _z; |
| 6595 } | 6595 } |
| 6596 | 6596 |
| 6597 void* Set(void* cmd, GLint _location, GLint _x, GLint _y, GLint _z) { | 6597 void* Set(void* cmd, GLint _location, GLint _x, GLint _y, GLint _z) { |
| 6598 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z); | 6598 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z); |
| 6599 return NextCmdAddress<ValueType>(cmd); | 6599 return NextCmdAddress<ValueType>(cmd); |
| 6600 } | 6600 } |
| 6601 | 6601 |
| 6602 command_buffer::CommandHeader header; | 6602 gpu::CommandHeader header; |
| 6603 uint32 location; | 6603 uint32 location; |
| 6604 uint32 x; | 6604 uint32 x; |
| 6605 uint32 y; | 6605 uint32 y; |
| 6606 uint32 z; | 6606 uint32 z; |
| 6607 }; | 6607 }; |
| 6608 | 6608 |
| 6609 COMPILE_ASSERT(sizeof(Uniform3i) == 20, | 6609 COMPILE_ASSERT(sizeof(Uniform3i) == 20, |
| 6610 Sizeof_Uniform3i_is_not_20); | 6610 Sizeof_Uniform3i_is_not_20); |
| 6611 COMPILE_ASSERT(offsetof(Uniform3i, header) == 0, | 6611 COMPILE_ASSERT(offsetof(Uniform3i, header) == 0, |
| 6612 OffsetOf_Uniform3i_header_not_0); | 6612 OffsetOf_Uniform3i_header_not_0); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 6643 } | 6643 } |
| 6644 | 6644 |
| 6645 void* Set( | 6645 void* Set( |
| 6646 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, | 6646 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, |
| 6647 uint32 _v_shm_offset) { | 6647 uint32 _v_shm_offset) { |
| 6648 static_cast<ValueType*>( | 6648 static_cast<ValueType*>( |
| 6649 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); | 6649 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); |
| 6650 return NextCmdAddress<ValueType>(cmd); | 6650 return NextCmdAddress<ValueType>(cmd); |
| 6651 } | 6651 } |
| 6652 | 6652 |
| 6653 command_buffer::CommandHeader header; | 6653 gpu::CommandHeader header; |
| 6654 uint32 location; | 6654 uint32 location; |
| 6655 uint32 count; | 6655 uint32 count; |
| 6656 uint32 v_shm_id; | 6656 uint32 v_shm_id; |
| 6657 uint32 v_shm_offset; | 6657 uint32 v_shm_offset; |
| 6658 }; | 6658 }; |
| 6659 | 6659 |
| 6660 COMPILE_ASSERT(sizeof(Uniform3iv) == 20, | 6660 COMPILE_ASSERT(sizeof(Uniform3iv) == 20, |
| 6661 Sizeof_Uniform3iv_is_not_20); | 6661 Sizeof_Uniform3iv_is_not_20); |
| 6662 COMPILE_ASSERT(offsetof(Uniform3iv, header) == 0, | 6662 COMPILE_ASSERT(offsetof(Uniform3iv, header) == 0, |
| 6663 OffsetOf_Uniform3iv_header_not_0); | 6663 OffsetOf_Uniform3iv_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6696 memcpy(ImmediateDataAddress(this), | 6696 memcpy(ImmediateDataAddress(this), |
| 6697 _v, ComputeDataSize(_count)); | 6697 _v, ComputeDataSize(_count)); |
| 6698 } | 6698 } |
| 6699 | 6699 |
| 6700 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { | 6700 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { |
| 6701 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); | 6701 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); |
| 6702 const uint32 size = ComputeSize(_count); | 6702 const uint32 size = ComputeSize(_count); |
| 6703 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 6703 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 6704 } | 6704 } |
| 6705 | 6705 |
| 6706 command_buffer::CommandHeader header; | 6706 gpu::CommandHeader header; |
| 6707 uint32 location; | 6707 uint32 location; |
| 6708 uint32 count; | 6708 uint32 count; |
| 6709 }; | 6709 }; |
| 6710 | 6710 |
| 6711 COMPILE_ASSERT(sizeof(Uniform3ivImmediate) == 12, | 6711 COMPILE_ASSERT(sizeof(Uniform3ivImmediate) == 12, |
| 6712 Sizeof_Uniform3ivImmediate_is_not_12); | 6712 Sizeof_Uniform3ivImmediate_is_not_12); |
| 6713 COMPILE_ASSERT(offsetof(Uniform3ivImmediate, header) == 0, | 6713 COMPILE_ASSERT(offsetof(Uniform3ivImmediate, header) == 0, |
| 6714 OffsetOf_Uniform3ivImmediate_header_not_0); | 6714 OffsetOf_Uniform3ivImmediate_header_not_0); |
| 6715 COMPILE_ASSERT(offsetof(Uniform3ivImmediate, location) == 4, | 6715 COMPILE_ASSERT(offsetof(Uniform3ivImmediate, location) == 4, |
| 6716 OffsetOf_Uniform3ivImmediate_location_not_4); | 6716 OffsetOf_Uniform3ivImmediate_location_not_4); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 6739 w = _w; | 6739 w = _w; |
| 6740 } | 6740 } |
| 6741 | 6741 |
| 6742 void* Set( | 6742 void* Set( |
| 6743 void* cmd, GLint _location, GLfloat _x, GLfloat _y, GLfloat _z, | 6743 void* cmd, GLint _location, GLfloat _x, GLfloat _y, GLfloat _z, |
| 6744 GLfloat _w) { | 6744 GLfloat _w) { |
| 6745 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z, _w); | 6745 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z, _w); |
| 6746 return NextCmdAddress<ValueType>(cmd); | 6746 return NextCmdAddress<ValueType>(cmd); |
| 6747 } | 6747 } |
| 6748 | 6748 |
| 6749 command_buffer::CommandHeader header; | 6749 gpu::CommandHeader header; |
| 6750 uint32 location; | 6750 uint32 location; |
| 6751 float x; | 6751 float x; |
| 6752 float y; | 6752 float y; |
| 6753 float z; | 6753 float z; |
| 6754 float w; | 6754 float w; |
| 6755 }; | 6755 }; |
| 6756 | 6756 |
| 6757 COMPILE_ASSERT(sizeof(Uniform4f) == 24, | 6757 COMPILE_ASSERT(sizeof(Uniform4f) == 24, |
| 6758 Sizeof_Uniform4f_is_not_24); | 6758 Sizeof_Uniform4f_is_not_24); |
| 6759 COMPILE_ASSERT(offsetof(Uniform4f, header) == 0, | 6759 COMPILE_ASSERT(offsetof(Uniform4f, header) == 0, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6793 } | 6793 } |
| 6794 | 6794 |
| 6795 void* Set( | 6795 void* Set( |
| 6796 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, | 6796 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, |
| 6797 uint32 _v_shm_offset) { | 6797 uint32 _v_shm_offset) { |
| 6798 static_cast<ValueType*>( | 6798 static_cast<ValueType*>( |
| 6799 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); | 6799 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); |
| 6800 return NextCmdAddress<ValueType>(cmd); | 6800 return NextCmdAddress<ValueType>(cmd); |
| 6801 } | 6801 } |
| 6802 | 6802 |
| 6803 command_buffer::CommandHeader header; | 6803 gpu::CommandHeader header; |
| 6804 uint32 location; | 6804 uint32 location; |
| 6805 uint32 count; | 6805 uint32 count; |
| 6806 uint32 v_shm_id; | 6806 uint32 v_shm_id; |
| 6807 uint32 v_shm_offset; | 6807 uint32 v_shm_offset; |
| 6808 }; | 6808 }; |
| 6809 | 6809 |
| 6810 COMPILE_ASSERT(sizeof(Uniform4fv) == 20, | 6810 COMPILE_ASSERT(sizeof(Uniform4fv) == 20, |
| 6811 Sizeof_Uniform4fv_is_not_20); | 6811 Sizeof_Uniform4fv_is_not_20); |
| 6812 COMPILE_ASSERT(offsetof(Uniform4fv, header) == 0, | 6812 COMPILE_ASSERT(offsetof(Uniform4fv, header) == 0, |
| 6813 OffsetOf_Uniform4fv_header_not_0); | 6813 OffsetOf_Uniform4fv_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6846 memcpy(ImmediateDataAddress(this), | 6846 memcpy(ImmediateDataAddress(this), |
| 6847 _v, ComputeDataSize(_count)); | 6847 _v, ComputeDataSize(_count)); |
| 6848 } | 6848 } |
| 6849 | 6849 |
| 6850 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { | 6850 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _v) { |
| 6851 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); | 6851 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); |
| 6852 const uint32 size = ComputeSize(_count); | 6852 const uint32 size = ComputeSize(_count); |
| 6853 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 6853 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 6854 } | 6854 } |
| 6855 | 6855 |
| 6856 command_buffer::CommandHeader header; | 6856 gpu::CommandHeader header; |
| 6857 uint32 location; | 6857 uint32 location; |
| 6858 uint32 count; | 6858 uint32 count; |
| 6859 }; | 6859 }; |
| 6860 | 6860 |
| 6861 COMPILE_ASSERT(sizeof(Uniform4fvImmediate) == 12, | 6861 COMPILE_ASSERT(sizeof(Uniform4fvImmediate) == 12, |
| 6862 Sizeof_Uniform4fvImmediate_is_not_12); | 6862 Sizeof_Uniform4fvImmediate_is_not_12); |
| 6863 COMPILE_ASSERT(offsetof(Uniform4fvImmediate, header) == 0, | 6863 COMPILE_ASSERT(offsetof(Uniform4fvImmediate, header) == 0, |
| 6864 OffsetOf_Uniform4fvImmediate_header_not_0); | 6864 OffsetOf_Uniform4fvImmediate_header_not_0); |
| 6865 COMPILE_ASSERT(offsetof(Uniform4fvImmediate, location) == 4, | 6865 COMPILE_ASSERT(offsetof(Uniform4fvImmediate, location) == 4, |
| 6866 OffsetOf_Uniform4fvImmediate_location_not_4); | 6866 OffsetOf_Uniform4fvImmediate_location_not_4); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 6888 z = _z; | 6888 z = _z; |
| 6889 w = _w; | 6889 w = _w; |
| 6890 } | 6890 } |
| 6891 | 6891 |
| 6892 void* Set( | 6892 void* Set( |
| 6893 void* cmd, GLint _location, GLint _x, GLint _y, GLint _z, GLint _w) { | 6893 void* cmd, GLint _location, GLint _x, GLint _y, GLint _z, GLint _w) { |
| 6894 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z, _w); | 6894 static_cast<ValueType*>(cmd)->Init(_location, _x, _y, _z, _w); |
| 6895 return NextCmdAddress<ValueType>(cmd); | 6895 return NextCmdAddress<ValueType>(cmd); |
| 6896 } | 6896 } |
| 6897 | 6897 |
| 6898 command_buffer::CommandHeader header; | 6898 gpu::CommandHeader header; |
| 6899 uint32 location; | 6899 uint32 location; |
| 6900 uint32 x; | 6900 uint32 x; |
| 6901 uint32 y; | 6901 uint32 y; |
| 6902 uint32 z; | 6902 uint32 z; |
| 6903 uint32 w; | 6903 uint32 w; |
| 6904 }; | 6904 }; |
| 6905 | 6905 |
| 6906 COMPILE_ASSERT(sizeof(Uniform4i) == 24, | 6906 COMPILE_ASSERT(sizeof(Uniform4i) == 24, |
| 6907 Sizeof_Uniform4i_is_not_24); | 6907 Sizeof_Uniform4i_is_not_24); |
| 6908 COMPILE_ASSERT(offsetof(Uniform4i, header) == 0, | 6908 COMPILE_ASSERT(offsetof(Uniform4i, header) == 0, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6942 } | 6942 } |
| 6943 | 6943 |
| 6944 void* Set( | 6944 void* Set( |
| 6945 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, | 6945 void* cmd, GLint _location, GLsizei _count, uint32 _v_shm_id, |
| 6946 uint32 _v_shm_offset) { | 6946 uint32 _v_shm_offset) { |
| 6947 static_cast<ValueType*>( | 6947 static_cast<ValueType*>( |
| 6948 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); | 6948 cmd)->Init(_location, _count, _v_shm_id, _v_shm_offset); |
| 6949 return NextCmdAddress<ValueType>(cmd); | 6949 return NextCmdAddress<ValueType>(cmd); |
| 6950 } | 6950 } |
| 6951 | 6951 |
| 6952 command_buffer::CommandHeader header; | 6952 gpu::CommandHeader header; |
| 6953 uint32 location; | 6953 uint32 location; |
| 6954 uint32 count; | 6954 uint32 count; |
| 6955 uint32 v_shm_id; | 6955 uint32 v_shm_id; |
| 6956 uint32 v_shm_offset; | 6956 uint32 v_shm_offset; |
| 6957 }; | 6957 }; |
| 6958 | 6958 |
| 6959 COMPILE_ASSERT(sizeof(Uniform4iv) == 20, | 6959 COMPILE_ASSERT(sizeof(Uniform4iv) == 20, |
| 6960 Sizeof_Uniform4iv_is_not_20); | 6960 Sizeof_Uniform4iv_is_not_20); |
| 6961 COMPILE_ASSERT(offsetof(Uniform4iv, header) == 0, | 6961 COMPILE_ASSERT(offsetof(Uniform4iv, header) == 0, |
| 6962 OffsetOf_Uniform4iv_header_not_0); | 6962 OffsetOf_Uniform4iv_header_not_0); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6995 memcpy(ImmediateDataAddress(this), | 6995 memcpy(ImmediateDataAddress(this), |
| 6996 _v, ComputeDataSize(_count)); | 6996 _v, ComputeDataSize(_count)); |
| 6997 } | 6997 } |
| 6998 | 6998 |
| 6999 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { | 6999 void* Set(void* cmd, GLint _location, GLsizei _count, const GLint* _v) { |
| 7000 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); | 7000 static_cast<ValueType*>(cmd)->Init(_location, _count, _v); |
| 7001 const uint32 size = ComputeSize(_count); | 7001 const uint32 size = ComputeSize(_count); |
| 7002 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 7002 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 7003 } | 7003 } |
| 7004 | 7004 |
| 7005 command_buffer::CommandHeader header; | 7005 gpu::CommandHeader header; |
| 7006 uint32 location; | 7006 uint32 location; |
| 7007 uint32 count; | 7007 uint32 count; |
| 7008 }; | 7008 }; |
| 7009 | 7009 |
| 7010 COMPILE_ASSERT(sizeof(Uniform4ivImmediate) == 12, | 7010 COMPILE_ASSERT(sizeof(Uniform4ivImmediate) == 12, |
| 7011 Sizeof_Uniform4ivImmediate_is_not_12); | 7011 Sizeof_Uniform4ivImmediate_is_not_12); |
| 7012 COMPILE_ASSERT(offsetof(Uniform4ivImmediate, header) == 0, | 7012 COMPILE_ASSERT(offsetof(Uniform4ivImmediate, header) == 0, |
| 7013 OffsetOf_Uniform4ivImmediate_header_not_0); | 7013 OffsetOf_Uniform4ivImmediate_header_not_0); |
| 7014 COMPILE_ASSERT(offsetof(Uniform4ivImmediate, location) == 4, | 7014 COMPILE_ASSERT(offsetof(Uniform4ivImmediate, location) == 4, |
| 7015 OffsetOf_Uniform4ivImmediate_location_not_4); | 7015 OffsetOf_Uniform4ivImmediate_location_not_4); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 7042 | 7042 |
| 7043 void* Set( | 7043 void* Set( |
| 7044 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, | 7044 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, |
| 7045 uint32 _value_shm_id, uint32 _value_shm_offset) { | 7045 uint32 _value_shm_id, uint32 _value_shm_offset) { |
| 7046 static_cast<ValueType*>( | 7046 static_cast<ValueType*>( |
| 7047 cmd)->Init( | 7047 cmd)->Init( |
| 7048 _location, _count, _transpose, _value_shm_id, _value_shm_offset); | 7048 _location, _count, _transpose, _value_shm_id, _value_shm_offset); |
| 7049 return NextCmdAddress<ValueType>(cmd); | 7049 return NextCmdAddress<ValueType>(cmd); |
| 7050 } | 7050 } |
| 7051 | 7051 |
| 7052 command_buffer::CommandHeader header; | 7052 gpu::CommandHeader header; |
| 7053 uint32 location; | 7053 uint32 location; |
| 7054 uint32 count; | 7054 uint32 count; |
| 7055 uint32 transpose; | 7055 uint32 transpose; |
| 7056 uint32 value_shm_id; | 7056 uint32 value_shm_id; |
| 7057 uint32 value_shm_offset; | 7057 uint32 value_shm_offset; |
| 7058 }; | 7058 }; |
| 7059 | 7059 |
| 7060 COMPILE_ASSERT(sizeof(UniformMatrix2fv) == 24, | 7060 COMPILE_ASSERT(sizeof(UniformMatrix2fv) == 24, |
| 7061 Sizeof_UniformMatrix2fv_is_not_24); | 7061 Sizeof_UniformMatrix2fv_is_not_24); |
| 7062 COMPILE_ASSERT(offsetof(UniformMatrix2fv, header) == 0, | 7062 COMPILE_ASSERT(offsetof(UniformMatrix2fv, header) == 0, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7103 } | 7103 } |
| 7104 | 7104 |
| 7105 void* Set( | 7105 void* Set( |
| 7106 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, | 7106 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, |
| 7107 const GLfloat* _value) { | 7107 const GLfloat* _value) { |
| 7108 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); | 7108 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 7109 const uint32 size = ComputeSize(_count); | 7109 const uint32 size = ComputeSize(_count); |
| 7110 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 7110 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 7111 } | 7111 } |
| 7112 | 7112 |
| 7113 command_buffer::CommandHeader header; | 7113 gpu::CommandHeader header; |
| 7114 uint32 location; | 7114 uint32 location; |
| 7115 uint32 count; | 7115 uint32 count; |
| 7116 uint32 transpose; | 7116 uint32 transpose; |
| 7117 }; | 7117 }; |
| 7118 | 7118 |
| 7119 COMPILE_ASSERT(sizeof(UniformMatrix2fvImmediate) == 16, | 7119 COMPILE_ASSERT(sizeof(UniformMatrix2fvImmediate) == 16, |
| 7120 Sizeof_UniformMatrix2fvImmediate_is_not_16); | 7120 Sizeof_UniformMatrix2fvImmediate_is_not_16); |
| 7121 COMPILE_ASSERT(offsetof(UniformMatrix2fvImmediate, header) == 0, | 7121 COMPILE_ASSERT(offsetof(UniformMatrix2fvImmediate, header) == 0, |
| 7122 OffsetOf_UniformMatrix2fvImmediate_header_not_0); | 7122 OffsetOf_UniformMatrix2fvImmediate_header_not_0); |
| 7123 COMPILE_ASSERT(offsetof(UniformMatrix2fvImmediate, location) == 4, | 7123 COMPILE_ASSERT(offsetof(UniformMatrix2fvImmediate, location) == 4, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 7153 | 7153 |
| 7154 void* Set( | 7154 void* Set( |
| 7155 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, | 7155 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, |
| 7156 uint32 _value_shm_id, uint32 _value_shm_offset) { | 7156 uint32 _value_shm_id, uint32 _value_shm_offset) { |
| 7157 static_cast<ValueType*>( | 7157 static_cast<ValueType*>( |
| 7158 cmd)->Init( | 7158 cmd)->Init( |
| 7159 _location, _count, _transpose, _value_shm_id, _value_shm_offset); | 7159 _location, _count, _transpose, _value_shm_id, _value_shm_offset); |
| 7160 return NextCmdAddress<ValueType>(cmd); | 7160 return NextCmdAddress<ValueType>(cmd); |
| 7161 } | 7161 } |
| 7162 | 7162 |
| 7163 command_buffer::CommandHeader header; | 7163 gpu::CommandHeader header; |
| 7164 uint32 location; | 7164 uint32 location; |
| 7165 uint32 count; | 7165 uint32 count; |
| 7166 uint32 transpose; | 7166 uint32 transpose; |
| 7167 uint32 value_shm_id; | 7167 uint32 value_shm_id; |
| 7168 uint32 value_shm_offset; | 7168 uint32 value_shm_offset; |
| 7169 }; | 7169 }; |
| 7170 | 7170 |
| 7171 COMPILE_ASSERT(sizeof(UniformMatrix3fv) == 24, | 7171 COMPILE_ASSERT(sizeof(UniformMatrix3fv) == 24, |
| 7172 Sizeof_UniformMatrix3fv_is_not_24); | 7172 Sizeof_UniformMatrix3fv_is_not_24); |
| 7173 COMPILE_ASSERT(offsetof(UniformMatrix3fv, header) == 0, | 7173 COMPILE_ASSERT(offsetof(UniformMatrix3fv, header) == 0, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7214 } | 7214 } |
| 7215 | 7215 |
| 7216 void* Set( | 7216 void* Set( |
| 7217 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, | 7217 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, |
| 7218 const GLfloat* _value) { | 7218 const GLfloat* _value) { |
| 7219 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); | 7219 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 7220 const uint32 size = ComputeSize(_count); | 7220 const uint32 size = ComputeSize(_count); |
| 7221 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 7221 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 7222 } | 7222 } |
| 7223 | 7223 |
| 7224 command_buffer::CommandHeader header; | 7224 gpu::CommandHeader header; |
| 7225 uint32 location; | 7225 uint32 location; |
| 7226 uint32 count; | 7226 uint32 count; |
| 7227 uint32 transpose; | 7227 uint32 transpose; |
| 7228 }; | 7228 }; |
| 7229 | 7229 |
| 7230 COMPILE_ASSERT(sizeof(UniformMatrix3fvImmediate) == 16, | 7230 COMPILE_ASSERT(sizeof(UniformMatrix3fvImmediate) == 16, |
| 7231 Sizeof_UniformMatrix3fvImmediate_is_not_16); | 7231 Sizeof_UniformMatrix3fvImmediate_is_not_16); |
| 7232 COMPILE_ASSERT(offsetof(UniformMatrix3fvImmediate, header) == 0, | 7232 COMPILE_ASSERT(offsetof(UniformMatrix3fvImmediate, header) == 0, |
| 7233 OffsetOf_UniformMatrix3fvImmediate_header_not_0); | 7233 OffsetOf_UniformMatrix3fvImmediate_header_not_0); |
| 7234 COMPILE_ASSERT(offsetof(UniformMatrix3fvImmediate, location) == 4, | 7234 COMPILE_ASSERT(offsetof(UniformMatrix3fvImmediate, location) == 4, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 7264 | 7264 |
| 7265 void* Set( | 7265 void* Set( |
| 7266 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, | 7266 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, |
| 7267 uint32 _value_shm_id, uint32 _value_shm_offset) { | 7267 uint32 _value_shm_id, uint32 _value_shm_offset) { |
| 7268 static_cast<ValueType*>( | 7268 static_cast<ValueType*>( |
| 7269 cmd)->Init( | 7269 cmd)->Init( |
| 7270 _location, _count, _transpose, _value_shm_id, _value_shm_offset); | 7270 _location, _count, _transpose, _value_shm_id, _value_shm_offset); |
| 7271 return NextCmdAddress<ValueType>(cmd); | 7271 return NextCmdAddress<ValueType>(cmd); |
| 7272 } | 7272 } |
| 7273 | 7273 |
| 7274 command_buffer::CommandHeader header; | 7274 gpu::CommandHeader header; |
| 7275 uint32 location; | 7275 uint32 location; |
| 7276 uint32 count; | 7276 uint32 count; |
| 7277 uint32 transpose; | 7277 uint32 transpose; |
| 7278 uint32 value_shm_id; | 7278 uint32 value_shm_id; |
| 7279 uint32 value_shm_offset; | 7279 uint32 value_shm_offset; |
| 7280 }; | 7280 }; |
| 7281 | 7281 |
| 7282 COMPILE_ASSERT(sizeof(UniformMatrix4fv) == 24, | 7282 COMPILE_ASSERT(sizeof(UniformMatrix4fv) == 24, |
| 7283 Sizeof_UniformMatrix4fv_is_not_24); | 7283 Sizeof_UniformMatrix4fv_is_not_24); |
| 7284 COMPILE_ASSERT(offsetof(UniformMatrix4fv, header) == 0, | 7284 COMPILE_ASSERT(offsetof(UniformMatrix4fv, header) == 0, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7325 } | 7325 } |
| 7326 | 7326 |
| 7327 void* Set( | 7327 void* Set( |
| 7328 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, | 7328 void* cmd, GLint _location, GLsizei _count, GLboolean _transpose, |
| 7329 const GLfloat* _value) { | 7329 const GLfloat* _value) { |
| 7330 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); | 7330 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 7331 const uint32 size = ComputeSize(_count); | 7331 const uint32 size = ComputeSize(_count); |
| 7332 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 7332 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 7333 } | 7333 } |
| 7334 | 7334 |
| 7335 command_buffer::CommandHeader header; | 7335 gpu::CommandHeader header; |
| 7336 uint32 location; | 7336 uint32 location; |
| 7337 uint32 count; | 7337 uint32 count; |
| 7338 uint32 transpose; | 7338 uint32 transpose; |
| 7339 }; | 7339 }; |
| 7340 | 7340 |
| 7341 COMPILE_ASSERT(sizeof(UniformMatrix4fvImmediate) == 16, | 7341 COMPILE_ASSERT(sizeof(UniformMatrix4fvImmediate) == 16, |
| 7342 Sizeof_UniformMatrix4fvImmediate_is_not_16); | 7342 Sizeof_UniformMatrix4fvImmediate_is_not_16); |
| 7343 COMPILE_ASSERT(offsetof(UniformMatrix4fvImmediate, header) == 0, | 7343 COMPILE_ASSERT(offsetof(UniformMatrix4fvImmediate, header) == 0, |
| 7344 OffsetOf_UniformMatrix4fvImmediate_header_not_0); | 7344 OffsetOf_UniformMatrix4fvImmediate_header_not_0); |
| 7345 COMPILE_ASSERT(offsetof(UniformMatrix4fvImmediate, location) == 4, | 7345 COMPILE_ASSERT(offsetof(UniformMatrix4fvImmediate, location) == 4, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 7365 void Init(GLuint _program) { | 7365 void Init(GLuint _program) { |
| 7366 SetHeader(); | 7366 SetHeader(); |
| 7367 program = _program; | 7367 program = _program; |
| 7368 } | 7368 } |
| 7369 | 7369 |
| 7370 void* Set(void* cmd, GLuint _program) { | 7370 void* Set(void* cmd, GLuint _program) { |
| 7371 static_cast<ValueType*>(cmd)->Init(_program); | 7371 static_cast<ValueType*>(cmd)->Init(_program); |
| 7372 return NextCmdAddress<ValueType>(cmd); | 7372 return NextCmdAddress<ValueType>(cmd); |
| 7373 } | 7373 } |
| 7374 | 7374 |
| 7375 command_buffer::CommandHeader header; | 7375 gpu::CommandHeader header; |
| 7376 uint32 program; | 7376 uint32 program; |
| 7377 }; | 7377 }; |
| 7378 | 7378 |
| 7379 COMPILE_ASSERT(sizeof(UseProgram) == 8, | 7379 COMPILE_ASSERT(sizeof(UseProgram) == 8, |
| 7380 Sizeof_UseProgram_is_not_8); | 7380 Sizeof_UseProgram_is_not_8); |
| 7381 COMPILE_ASSERT(offsetof(UseProgram, header) == 0, | 7381 COMPILE_ASSERT(offsetof(UseProgram, header) == 0, |
| 7382 OffsetOf_UseProgram_header_not_0); | 7382 OffsetOf_UseProgram_header_not_0); |
| 7383 COMPILE_ASSERT(offsetof(UseProgram, program) == 4, | 7383 COMPILE_ASSERT(offsetof(UseProgram, program) == 4, |
| 7384 OffsetOf_UseProgram_program_not_4); | 7384 OffsetOf_UseProgram_program_not_4); |
| 7385 | 7385 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7399 void Init(GLuint _program) { | 7399 void Init(GLuint _program) { |
| 7400 SetHeader(); | 7400 SetHeader(); |
| 7401 program = _program; | 7401 program = _program; |
| 7402 } | 7402 } |
| 7403 | 7403 |
| 7404 void* Set(void* cmd, GLuint _program) { | 7404 void* Set(void* cmd, GLuint _program) { |
| 7405 static_cast<ValueType*>(cmd)->Init(_program); | 7405 static_cast<ValueType*>(cmd)->Init(_program); |
| 7406 return NextCmdAddress<ValueType>(cmd); | 7406 return NextCmdAddress<ValueType>(cmd); |
| 7407 } | 7407 } |
| 7408 | 7408 |
| 7409 command_buffer::CommandHeader header; | 7409 gpu::CommandHeader header; |
| 7410 uint32 program; | 7410 uint32 program; |
| 7411 }; | 7411 }; |
| 7412 | 7412 |
| 7413 COMPILE_ASSERT(sizeof(ValidateProgram) == 8, | 7413 COMPILE_ASSERT(sizeof(ValidateProgram) == 8, |
| 7414 Sizeof_ValidateProgram_is_not_8); | 7414 Sizeof_ValidateProgram_is_not_8); |
| 7415 COMPILE_ASSERT(offsetof(ValidateProgram, header) == 0, | 7415 COMPILE_ASSERT(offsetof(ValidateProgram, header) == 0, |
| 7416 OffsetOf_ValidateProgram_header_not_0); | 7416 OffsetOf_ValidateProgram_header_not_0); |
| 7417 COMPILE_ASSERT(offsetof(ValidateProgram, program) == 4, | 7417 COMPILE_ASSERT(offsetof(ValidateProgram, program) == 4, |
| 7418 OffsetOf_ValidateProgram_program_not_4); | 7418 OffsetOf_ValidateProgram_program_not_4); |
| 7419 | 7419 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 7434 SetHeader(); | 7434 SetHeader(); |
| 7435 indx = _indx; | 7435 indx = _indx; |
| 7436 x = _x; | 7436 x = _x; |
| 7437 } | 7437 } |
| 7438 | 7438 |
| 7439 void* Set(void* cmd, GLuint _indx, GLfloat _x) { | 7439 void* Set(void* cmd, GLuint _indx, GLfloat _x) { |
| 7440 static_cast<ValueType*>(cmd)->Init(_indx, _x); | 7440 static_cast<ValueType*>(cmd)->Init(_indx, _x); |
| 7441 return NextCmdAddress<ValueType>(cmd); | 7441 return NextCmdAddress<ValueType>(cmd); |
| 7442 } | 7442 } |
| 7443 | 7443 |
| 7444 command_buffer::CommandHeader header; | 7444 gpu::CommandHeader header; |
| 7445 uint32 indx; | 7445 uint32 indx; |
| 7446 float x; | 7446 float x; |
| 7447 }; | 7447 }; |
| 7448 | 7448 |
| 7449 COMPILE_ASSERT(sizeof(VertexAttrib1f) == 12, | 7449 COMPILE_ASSERT(sizeof(VertexAttrib1f) == 12, |
| 7450 Sizeof_VertexAttrib1f_is_not_12); | 7450 Sizeof_VertexAttrib1f_is_not_12); |
| 7451 COMPILE_ASSERT(offsetof(VertexAttrib1f, header) == 0, | 7451 COMPILE_ASSERT(offsetof(VertexAttrib1f, header) == 0, |
| 7452 OffsetOf_VertexAttrib1f_header_not_0); | 7452 OffsetOf_VertexAttrib1f_header_not_0); |
| 7453 COMPILE_ASSERT(offsetof(VertexAttrib1f, indx) == 4, | 7453 COMPILE_ASSERT(offsetof(VertexAttrib1f, indx) == 4, |
| 7454 OffsetOf_VertexAttrib1f_indx_not_4); | 7454 OffsetOf_VertexAttrib1f_indx_not_4); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 7476 } | 7476 } |
| 7477 | 7477 |
| 7478 void* Set( | 7478 void* Set( |
| 7479 void* cmd, GLuint _indx, uint32 _values_shm_id, | 7479 void* cmd, GLuint _indx, uint32 _values_shm_id, |
| 7480 uint32 _values_shm_offset) { | 7480 uint32 _values_shm_offset) { |
| 7481 static_cast<ValueType*>( | 7481 static_cast<ValueType*>( |
| 7482 cmd)->Init(_indx, _values_shm_id, _values_shm_offset); | 7482 cmd)->Init(_indx, _values_shm_id, _values_shm_offset); |
| 7483 return NextCmdAddress<ValueType>(cmd); | 7483 return NextCmdAddress<ValueType>(cmd); |
| 7484 } | 7484 } |
| 7485 | 7485 |
| 7486 command_buffer::CommandHeader header; | 7486 gpu::CommandHeader header; |
| 7487 uint32 indx; | 7487 uint32 indx; |
| 7488 uint32 values_shm_id; | 7488 uint32 values_shm_id; |
| 7489 uint32 values_shm_offset; | 7489 uint32 values_shm_offset; |
| 7490 }; | 7490 }; |
| 7491 | 7491 |
| 7492 COMPILE_ASSERT(sizeof(VertexAttrib1fv) == 16, | 7492 COMPILE_ASSERT(sizeof(VertexAttrib1fv) == 16, |
| 7493 Sizeof_VertexAttrib1fv_is_not_16); | 7493 Sizeof_VertexAttrib1fv_is_not_16); |
| 7494 COMPILE_ASSERT(offsetof(VertexAttrib1fv, header) == 0, | 7494 COMPILE_ASSERT(offsetof(VertexAttrib1fv, header) == 0, |
| 7495 OffsetOf_VertexAttrib1fv_header_not_0); | 7495 OffsetOf_VertexAttrib1fv_header_not_0); |
| 7496 COMPILE_ASSERT(offsetof(VertexAttrib1fv, indx) == 4, | 7496 COMPILE_ASSERT(offsetof(VertexAttrib1fv, indx) == 4, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 7525 memcpy(ImmediateDataAddress(this), | 7525 memcpy(ImmediateDataAddress(this), |
| 7526 _values, ComputeDataSize()); | 7526 _values, ComputeDataSize()); |
| 7527 } | 7527 } |
| 7528 | 7528 |
| 7529 void* Set(void* cmd, GLuint _indx, const GLfloat* _values) { | 7529 void* Set(void* cmd, GLuint _indx, const GLfloat* _values) { |
| 7530 static_cast<ValueType*>(cmd)->Init(_indx, _values); | 7530 static_cast<ValueType*>(cmd)->Init(_indx, _values); |
| 7531 const uint32 size = ComputeSize(); | 7531 const uint32 size = ComputeSize(); |
| 7532 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 7532 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 7533 } | 7533 } |
| 7534 | 7534 |
| 7535 command_buffer::CommandHeader header; | 7535 gpu::CommandHeader header; |
| 7536 uint32 indx; | 7536 uint32 indx; |
| 7537 }; | 7537 }; |
| 7538 | 7538 |
| 7539 COMPILE_ASSERT(sizeof(VertexAttrib1fvImmediate) == 8, | 7539 COMPILE_ASSERT(sizeof(VertexAttrib1fvImmediate) == 8, |
| 7540 Sizeof_VertexAttrib1fvImmediate_is_not_8); | 7540 Sizeof_VertexAttrib1fvImmediate_is_not_8); |
| 7541 COMPILE_ASSERT(offsetof(VertexAttrib1fvImmediate, header) == 0, | 7541 COMPILE_ASSERT(offsetof(VertexAttrib1fvImmediate, header) == 0, |
| 7542 OffsetOf_VertexAttrib1fvImmediate_header_not_0); | 7542 OffsetOf_VertexAttrib1fvImmediate_header_not_0); |
| 7543 COMPILE_ASSERT(offsetof(VertexAttrib1fvImmediate, indx) == 4, | 7543 COMPILE_ASSERT(offsetof(VertexAttrib1fvImmediate, indx) == 4, |
| 7544 OffsetOf_VertexAttrib1fvImmediate_indx_not_4); | 7544 OffsetOf_VertexAttrib1fvImmediate_indx_not_4); |
| 7545 | 7545 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 7561 indx = _indx; | 7561 indx = _indx; |
| 7562 x = _x; | 7562 x = _x; |
| 7563 y = _y; | 7563 y = _y; |
| 7564 } | 7564 } |
| 7565 | 7565 |
| 7566 void* Set(void* cmd, GLuint _indx, GLfloat _x, GLfloat _y) { | 7566 void* Set(void* cmd, GLuint _indx, GLfloat _x, GLfloat _y) { |
| 7567 static_cast<ValueType*>(cmd)->Init(_indx, _x, _y); | 7567 static_cast<ValueType*>(cmd)->Init(_indx, _x, _y); |
| 7568 return NextCmdAddress<ValueType>(cmd); | 7568 return NextCmdAddress<ValueType>(cmd); |
| 7569 } | 7569 } |
| 7570 | 7570 |
| 7571 command_buffer::CommandHeader header; | 7571 gpu::CommandHeader header; |
| 7572 uint32 indx; | 7572 uint32 indx; |
| 7573 float x; | 7573 float x; |
| 7574 float y; | 7574 float y; |
| 7575 }; | 7575 }; |
| 7576 | 7576 |
| 7577 COMPILE_ASSERT(sizeof(VertexAttrib2f) == 16, | 7577 COMPILE_ASSERT(sizeof(VertexAttrib2f) == 16, |
| 7578 Sizeof_VertexAttrib2f_is_not_16); | 7578 Sizeof_VertexAttrib2f_is_not_16); |
| 7579 COMPILE_ASSERT(offsetof(VertexAttrib2f, header) == 0, | 7579 COMPILE_ASSERT(offsetof(VertexAttrib2f, header) == 0, |
| 7580 OffsetOf_VertexAttrib2f_header_not_0); | 7580 OffsetOf_VertexAttrib2f_header_not_0); |
| 7581 COMPILE_ASSERT(offsetof(VertexAttrib2f, indx) == 4, | 7581 COMPILE_ASSERT(offsetof(VertexAttrib2f, indx) == 4, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 7606 } | 7606 } |
| 7607 | 7607 |
| 7608 void* Set( | 7608 void* Set( |
| 7609 void* cmd, GLuint _indx, uint32 _values_shm_id, | 7609 void* cmd, GLuint _indx, uint32 _values_shm_id, |
| 7610 uint32 _values_shm_offset) { | 7610 uint32 _values_shm_offset) { |
| 7611 static_cast<ValueType*>( | 7611 static_cast<ValueType*>( |
| 7612 cmd)->Init(_indx, _values_shm_id, _values_shm_offset); | 7612 cmd)->Init(_indx, _values_shm_id, _values_shm_offset); |
| 7613 return NextCmdAddress<ValueType>(cmd); | 7613 return NextCmdAddress<ValueType>(cmd); |
| 7614 } | 7614 } |
| 7615 | 7615 |
| 7616 command_buffer::CommandHeader header; | 7616 gpu::CommandHeader header; |
| 7617 uint32 indx; | 7617 uint32 indx; |
| 7618 uint32 values_shm_id; | 7618 uint32 values_shm_id; |
| 7619 uint32 values_shm_offset; | 7619 uint32 values_shm_offset; |
| 7620 }; | 7620 }; |
| 7621 | 7621 |
| 7622 COMPILE_ASSERT(sizeof(VertexAttrib2fv) == 16, | 7622 COMPILE_ASSERT(sizeof(VertexAttrib2fv) == 16, |
| 7623 Sizeof_VertexAttrib2fv_is_not_16); | 7623 Sizeof_VertexAttrib2fv_is_not_16); |
| 7624 COMPILE_ASSERT(offsetof(VertexAttrib2fv, header) == 0, | 7624 COMPILE_ASSERT(offsetof(VertexAttrib2fv, header) == 0, |
| 7625 OffsetOf_VertexAttrib2fv_header_not_0); | 7625 OffsetOf_VertexAttrib2fv_header_not_0); |
| 7626 COMPILE_ASSERT(offsetof(VertexAttrib2fv, indx) == 4, | 7626 COMPILE_ASSERT(offsetof(VertexAttrib2fv, indx) == 4, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 7655 memcpy(ImmediateDataAddress(this), | 7655 memcpy(ImmediateDataAddress(this), |
| 7656 _values, ComputeDataSize()); | 7656 _values, ComputeDataSize()); |
| 7657 } | 7657 } |
| 7658 | 7658 |
| 7659 void* Set(void* cmd, GLuint _indx, const GLfloat* _values) { | 7659 void* Set(void* cmd, GLuint _indx, const GLfloat* _values) { |
| 7660 static_cast<ValueType*>(cmd)->Init(_indx, _values); | 7660 static_cast<ValueType*>(cmd)->Init(_indx, _values); |
| 7661 const uint32 size = ComputeSize(); | 7661 const uint32 size = ComputeSize(); |
| 7662 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 7662 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 7663 } | 7663 } |
| 7664 | 7664 |
| 7665 command_buffer::CommandHeader header; | 7665 gpu::CommandHeader header; |
| 7666 uint32 indx; | 7666 uint32 indx; |
| 7667 }; | 7667 }; |
| 7668 | 7668 |
| 7669 COMPILE_ASSERT(sizeof(VertexAttrib2fvImmediate) == 8, | 7669 COMPILE_ASSERT(sizeof(VertexAttrib2fvImmediate) == 8, |
| 7670 Sizeof_VertexAttrib2fvImmediate_is_not_8); | 7670 Sizeof_VertexAttrib2fvImmediate_is_not_8); |
| 7671 COMPILE_ASSERT(offsetof(VertexAttrib2fvImmediate, header) == 0, | 7671 COMPILE_ASSERT(offsetof(VertexAttrib2fvImmediate, header) == 0, |
| 7672 OffsetOf_VertexAttrib2fvImmediate_header_not_0); | 7672 OffsetOf_VertexAttrib2fvImmediate_header_not_0); |
| 7673 COMPILE_ASSERT(offsetof(VertexAttrib2fvImmediate, indx) == 4, | 7673 COMPILE_ASSERT(offsetof(VertexAttrib2fvImmediate, indx) == 4, |
| 7674 OffsetOf_VertexAttrib2fvImmediate_indx_not_4); | 7674 OffsetOf_VertexAttrib2fvImmediate_indx_not_4); |
| 7675 | 7675 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 7692 x = _x; | 7692 x = _x; |
| 7693 y = _y; | 7693 y = _y; |
| 7694 z = _z; | 7694 z = _z; |
| 7695 } | 7695 } |
| 7696 | 7696 |
| 7697 void* Set(void* cmd, GLuint _indx, GLfloat _x, GLfloat _y, GLfloat _z) { | 7697 void* Set(void* cmd, GLuint _indx, GLfloat _x, GLfloat _y, GLfloat _z) { |
| 7698 static_cast<ValueType*>(cmd)->Init(_indx, _x, _y, _z); | 7698 static_cast<ValueType*>(cmd)->Init(_indx, _x, _y, _z); |
| 7699 return NextCmdAddress<ValueType>(cmd); | 7699 return NextCmdAddress<ValueType>(cmd); |
| 7700 } | 7700 } |
| 7701 | 7701 |
| 7702 command_buffer::CommandHeader header; | 7702 gpu::CommandHeader header; |
| 7703 uint32 indx; | 7703 uint32 indx; |
| 7704 float x; | 7704 float x; |
| 7705 float y; | 7705 float y; |
| 7706 float z; | 7706 float z; |
| 7707 }; | 7707 }; |
| 7708 | 7708 |
| 7709 COMPILE_ASSERT(sizeof(VertexAttrib3f) == 20, | 7709 COMPILE_ASSERT(sizeof(VertexAttrib3f) == 20, |
| 7710 Sizeof_VertexAttrib3f_is_not_20); | 7710 Sizeof_VertexAttrib3f_is_not_20); |
| 7711 COMPILE_ASSERT(offsetof(VertexAttrib3f, header) == 0, | 7711 COMPILE_ASSERT(offsetof(VertexAttrib3f, header) == 0, |
| 7712 OffsetOf_VertexAttrib3f_header_not_0); | 7712 OffsetOf_VertexAttrib3f_header_not_0); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7740 } | 7740 } |
| 7741 | 7741 |
| 7742 void* Set( | 7742 void* Set( |
| 7743 void* cmd, GLuint _indx, uint32 _values_shm_id, | 7743 void* cmd, GLuint _indx, uint32 _values_shm_id, |
| 7744 uint32 _values_shm_offset) { | 7744 uint32 _values_shm_offset) { |
| 7745 static_cast<ValueType*>( | 7745 static_cast<ValueType*>( |
| 7746 cmd)->Init(_indx, _values_shm_id, _values_shm_offset); | 7746 cmd)->Init(_indx, _values_shm_id, _values_shm_offset); |
| 7747 return NextCmdAddress<ValueType>(cmd); | 7747 return NextCmdAddress<ValueType>(cmd); |
| 7748 } | 7748 } |
| 7749 | 7749 |
| 7750 command_buffer::CommandHeader header; | 7750 gpu::CommandHeader header; |
| 7751 uint32 indx; | 7751 uint32 indx; |
| 7752 uint32 values_shm_id; | 7752 uint32 values_shm_id; |
| 7753 uint32 values_shm_offset; | 7753 uint32 values_shm_offset; |
| 7754 }; | 7754 }; |
| 7755 | 7755 |
| 7756 COMPILE_ASSERT(sizeof(VertexAttrib3fv) == 16, | 7756 COMPILE_ASSERT(sizeof(VertexAttrib3fv) == 16, |
| 7757 Sizeof_VertexAttrib3fv_is_not_16); | 7757 Sizeof_VertexAttrib3fv_is_not_16); |
| 7758 COMPILE_ASSERT(offsetof(VertexAttrib3fv, header) == 0, | 7758 COMPILE_ASSERT(offsetof(VertexAttrib3fv, header) == 0, |
| 7759 OffsetOf_VertexAttrib3fv_header_not_0); | 7759 OffsetOf_VertexAttrib3fv_header_not_0); |
| 7760 COMPILE_ASSERT(offsetof(VertexAttrib3fv, indx) == 4, | 7760 COMPILE_ASSERT(offsetof(VertexAttrib3fv, indx) == 4, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 7789 memcpy(ImmediateDataAddress(this), | 7789 memcpy(ImmediateDataAddress(this), |
| 7790 _values, ComputeDataSize()); | 7790 _values, ComputeDataSize()); |
| 7791 } | 7791 } |
| 7792 | 7792 |
| 7793 void* Set(void* cmd, GLuint _indx, const GLfloat* _values) { | 7793 void* Set(void* cmd, GLuint _indx, const GLfloat* _values) { |
| 7794 static_cast<ValueType*>(cmd)->Init(_indx, _values); | 7794 static_cast<ValueType*>(cmd)->Init(_indx, _values); |
| 7795 const uint32 size = ComputeSize(); | 7795 const uint32 size = ComputeSize(); |
| 7796 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 7796 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 7797 } | 7797 } |
| 7798 | 7798 |
| 7799 command_buffer::CommandHeader header; | 7799 gpu::CommandHeader header; |
| 7800 uint32 indx; | 7800 uint32 indx; |
| 7801 }; | 7801 }; |
| 7802 | 7802 |
| 7803 COMPILE_ASSERT(sizeof(VertexAttrib3fvImmediate) == 8, | 7803 COMPILE_ASSERT(sizeof(VertexAttrib3fvImmediate) == 8, |
| 7804 Sizeof_VertexAttrib3fvImmediate_is_not_8); | 7804 Sizeof_VertexAttrib3fvImmediate_is_not_8); |
| 7805 COMPILE_ASSERT(offsetof(VertexAttrib3fvImmediate, header) == 0, | 7805 COMPILE_ASSERT(offsetof(VertexAttrib3fvImmediate, header) == 0, |
| 7806 OffsetOf_VertexAttrib3fvImmediate_header_not_0); | 7806 OffsetOf_VertexAttrib3fvImmediate_header_not_0); |
| 7807 COMPILE_ASSERT(offsetof(VertexAttrib3fvImmediate, indx) == 4, | 7807 COMPILE_ASSERT(offsetof(VertexAttrib3fvImmediate, indx) == 4, |
| 7808 OffsetOf_VertexAttrib3fvImmediate_indx_not_4); | 7808 OffsetOf_VertexAttrib3fvImmediate_indx_not_4); |
| 7809 | 7809 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 7829 w = _w; | 7829 w = _w; |
| 7830 } | 7830 } |
| 7831 | 7831 |
| 7832 void* Set( | 7832 void* Set( |
| 7833 void* cmd, GLuint _indx, GLfloat _x, GLfloat _y, GLfloat _z, | 7833 void* cmd, GLuint _indx, GLfloat _x, GLfloat _y, GLfloat _z, |
| 7834 GLfloat _w) { | 7834 GLfloat _w) { |
| 7835 static_cast<ValueType*>(cmd)->Init(_indx, _x, _y, _z, _w); | 7835 static_cast<ValueType*>(cmd)->Init(_indx, _x, _y, _z, _w); |
| 7836 return NextCmdAddress<ValueType>(cmd); | 7836 return NextCmdAddress<ValueType>(cmd); |
| 7837 } | 7837 } |
| 7838 | 7838 |
| 7839 command_buffer::CommandHeader header; | 7839 gpu::CommandHeader header; |
| 7840 uint32 indx; | 7840 uint32 indx; |
| 7841 float x; | 7841 float x; |
| 7842 float y; | 7842 float y; |
| 7843 float z; | 7843 float z; |
| 7844 float w; | 7844 float w; |
| 7845 }; | 7845 }; |
| 7846 | 7846 |
| 7847 COMPILE_ASSERT(sizeof(VertexAttrib4f) == 24, | 7847 COMPILE_ASSERT(sizeof(VertexAttrib4f) == 24, |
| 7848 Sizeof_VertexAttrib4f_is_not_24); | 7848 Sizeof_VertexAttrib4f_is_not_24); |
| 7849 COMPILE_ASSERT(offsetof(VertexAttrib4f, header) == 0, | 7849 COMPILE_ASSERT(offsetof(VertexAttrib4f, header) == 0, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 7880 } | 7880 } |
| 7881 | 7881 |
| 7882 void* Set( | 7882 void* Set( |
| 7883 void* cmd, GLuint _indx, uint32 _values_shm_id, | 7883 void* cmd, GLuint _indx, uint32 _values_shm_id, |
| 7884 uint32 _values_shm_offset) { | 7884 uint32 _values_shm_offset) { |
| 7885 static_cast<ValueType*>( | 7885 static_cast<ValueType*>( |
| 7886 cmd)->Init(_indx, _values_shm_id, _values_shm_offset); | 7886 cmd)->Init(_indx, _values_shm_id, _values_shm_offset); |
| 7887 return NextCmdAddress<ValueType>(cmd); | 7887 return NextCmdAddress<ValueType>(cmd); |
| 7888 } | 7888 } |
| 7889 | 7889 |
| 7890 command_buffer::CommandHeader header; | 7890 gpu::CommandHeader header; |
| 7891 uint32 indx; | 7891 uint32 indx; |
| 7892 uint32 values_shm_id; | 7892 uint32 values_shm_id; |
| 7893 uint32 values_shm_offset; | 7893 uint32 values_shm_offset; |
| 7894 }; | 7894 }; |
| 7895 | 7895 |
| 7896 COMPILE_ASSERT(sizeof(VertexAttrib4fv) == 16, | 7896 COMPILE_ASSERT(sizeof(VertexAttrib4fv) == 16, |
| 7897 Sizeof_VertexAttrib4fv_is_not_16); | 7897 Sizeof_VertexAttrib4fv_is_not_16); |
| 7898 COMPILE_ASSERT(offsetof(VertexAttrib4fv, header) == 0, | 7898 COMPILE_ASSERT(offsetof(VertexAttrib4fv, header) == 0, |
| 7899 OffsetOf_VertexAttrib4fv_header_not_0); | 7899 OffsetOf_VertexAttrib4fv_header_not_0); |
| 7900 COMPILE_ASSERT(offsetof(VertexAttrib4fv, indx) == 4, | 7900 COMPILE_ASSERT(offsetof(VertexAttrib4fv, indx) == 4, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 7929 memcpy(ImmediateDataAddress(this), | 7929 memcpy(ImmediateDataAddress(this), |
| 7930 _values, ComputeDataSize()); | 7930 _values, ComputeDataSize()); |
| 7931 } | 7931 } |
| 7932 | 7932 |
| 7933 void* Set(void* cmd, GLuint _indx, const GLfloat* _values) { | 7933 void* Set(void* cmd, GLuint _indx, const GLfloat* _values) { |
| 7934 static_cast<ValueType*>(cmd)->Init(_indx, _values); | 7934 static_cast<ValueType*>(cmd)->Init(_indx, _values); |
| 7935 const uint32 size = ComputeSize(); | 7935 const uint32 size = ComputeSize(); |
| 7936 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 7936 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 7937 } | 7937 } |
| 7938 | 7938 |
| 7939 command_buffer::CommandHeader header; | 7939 gpu::CommandHeader header; |
| 7940 uint32 indx; | 7940 uint32 indx; |
| 7941 }; | 7941 }; |
| 7942 | 7942 |
| 7943 COMPILE_ASSERT(sizeof(VertexAttrib4fvImmediate) == 8, | 7943 COMPILE_ASSERT(sizeof(VertexAttrib4fvImmediate) == 8, |
| 7944 Sizeof_VertexAttrib4fvImmediate_is_not_8); | 7944 Sizeof_VertexAttrib4fvImmediate_is_not_8); |
| 7945 COMPILE_ASSERT(offsetof(VertexAttrib4fvImmediate, header) == 0, | 7945 COMPILE_ASSERT(offsetof(VertexAttrib4fvImmediate, header) == 0, |
| 7946 OffsetOf_VertexAttrib4fvImmediate_header_not_0); | 7946 OffsetOf_VertexAttrib4fvImmediate_header_not_0); |
| 7947 COMPILE_ASSERT(offsetof(VertexAttrib4fvImmediate, indx) == 4, | 7947 COMPILE_ASSERT(offsetof(VertexAttrib4fvImmediate, indx) == 4, |
| 7948 OffsetOf_VertexAttrib4fvImmediate_indx_not_4); | 7948 OffsetOf_VertexAttrib4fvImmediate_indx_not_4); |
| 7949 | 7949 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 7973 } | 7973 } |
| 7974 | 7974 |
| 7975 void* Set( | 7975 void* Set( |
| 7976 void* cmd, GLuint _indx, GLint _size, GLenum _type, GLboolean _normalized, | 7976 void* cmd, GLuint _indx, GLint _size, GLenum _type, GLboolean _normalized, |
| 7977 GLsizei _stride, GLuint _offset) { | 7977 GLsizei _stride, GLuint _offset) { |
| 7978 static_cast<ValueType*>( | 7978 static_cast<ValueType*>( |
| 7979 cmd)->Init(_indx, _size, _type, _normalized, _stride, _offset); | 7979 cmd)->Init(_indx, _size, _type, _normalized, _stride, _offset); |
| 7980 return NextCmdAddress<ValueType>(cmd); | 7980 return NextCmdAddress<ValueType>(cmd); |
| 7981 } | 7981 } |
| 7982 | 7982 |
| 7983 command_buffer::CommandHeader header; | 7983 gpu::CommandHeader header; |
| 7984 uint32 indx; | 7984 uint32 indx; |
| 7985 uint32 size; | 7985 uint32 size; |
| 7986 uint32 type; | 7986 uint32 type; |
| 7987 uint32 normalized; | 7987 uint32 normalized; |
| 7988 uint32 stride; | 7988 uint32 stride; |
| 7989 uint32 offset; | 7989 uint32 offset; |
| 7990 }; | 7990 }; |
| 7991 | 7991 |
| 7992 COMPILE_ASSERT(sizeof(VertexAttribPointer) == 28, | 7992 COMPILE_ASSERT(sizeof(VertexAttribPointer) == 28, |
| 7993 Sizeof_VertexAttribPointer_is_not_28); | 7993 Sizeof_VertexAttribPointer_is_not_28); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8025 y = _y; | 8025 y = _y; |
| 8026 width = _width; | 8026 width = _width; |
| 8027 height = _height; | 8027 height = _height; |
| 8028 } | 8028 } |
| 8029 | 8029 |
| 8030 void* Set(void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height) { | 8030 void* Set(void* cmd, GLint _x, GLint _y, GLsizei _width, GLsizei _height) { |
| 8031 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height); | 8031 static_cast<ValueType*>(cmd)->Init(_x, _y, _width, _height); |
| 8032 return NextCmdAddress<ValueType>(cmd); | 8032 return NextCmdAddress<ValueType>(cmd); |
| 8033 } | 8033 } |
| 8034 | 8034 |
| 8035 command_buffer::CommandHeader header; | 8035 gpu::CommandHeader header; |
| 8036 uint32 x; | 8036 uint32 x; |
| 8037 uint32 y; | 8037 uint32 y; |
| 8038 uint32 width; | 8038 uint32 width; |
| 8039 uint32 height; | 8039 uint32 height; |
| 8040 }; | 8040 }; |
| 8041 | 8041 |
| 8042 COMPILE_ASSERT(sizeof(Viewport) == 20, | 8042 COMPILE_ASSERT(sizeof(Viewport) == 20, |
| 8043 Sizeof_Viewport_is_not_20); | 8043 Sizeof_Viewport_is_not_20); |
| 8044 COMPILE_ASSERT(offsetof(Viewport, header) == 0, | 8044 COMPILE_ASSERT(offsetof(Viewport, header) == 0, |
| 8045 OffsetOf_Viewport_header_not_0); | 8045 OffsetOf_Viewport_header_not_0); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 8067 | 8067 |
| 8068 void Init() { | 8068 void Init() { |
| 8069 SetHeader(); | 8069 SetHeader(); |
| 8070 } | 8070 } |
| 8071 | 8071 |
| 8072 void* Set(void* cmd) { | 8072 void* Set(void* cmd) { |
| 8073 static_cast<ValueType*>(cmd)->Init(); | 8073 static_cast<ValueType*>(cmd)->Init(); |
| 8074 return NextCmdAddress<ValueType>(cmd); | 8074 return NextCmdAddress<ValueType>(cmd); |
| 8075 } | 8075 } |
| 8076 | 8076 |
| 8077 command_buffer::CommandHeader header; | 8077 gpu::CommandHeader header; |
| 8078 }; | 8078 }; |
| 8079 | 8079 |
| 8080 COMPILE_ASSERT(sizeof(SwapBuffers) == 4, | 8080 COMPILE_ASSERT(sizeof(SwapBuffers) == 4, |
| 8081 Sizeof_SwapBuffers_is_not_4); | 8081 Sizeof_SwapBuffers_is_not_4); |
| 8082 COMPILE_ASSERT(offsetof(SwapBuffers, header) == 0, | 8082 COMPILE_ASSERT(offsetof(SwapBuffers, header) == 0, |
| 8083 OffsetOf_SwapBuffers_header_not_0); | 8083 OffsetOf_SwapBuffers_header_not_0); |
| 8084 | 8084 |
| 8085 #pragma pack(pop) | 8085 #pragma pack(pop) |
| 8086 | 8086 |
| OLD | NEW |