Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: gpu/command_buffer/client/gles2_cmd_helper_autogen.h

Issue 434063: Merged in recent changes to command buffer code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper.h ('k') | gpu/command_buffer/client/gles2_demo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 void ActiveTexture(GLenum texture) { 1 void ActiveTexture(GLenum texture) {
2 gles2::ActiveTexture& c = GetCmdSpace<gles2::ActiveTexture>(); 2 gles2::ActiveTexture& c = GetCmdSpace<gles2::ActiveTexture>();
3 c.Init(texture); 3 c.Init(texture);
4 } 4 }
5 5
6 void AttachShader(GLuint program, GLuint shader) { 6 void AttachShader(GLuint program, GLuint shader) {
7 gles2::AttachShader& c = GetCmdSpace<gles2::AttachShader>(); 7 gles2::AttachShader& c = GetCmdSpace<gles2::AttachShader>();
8 c.Init(program, shader); 8 c.Init(program, shader);
9 } 9 }
10 10
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 void GetAttachedShaders( 443 void GetAttachedShaders(
444 GLuint program, GLsizei maxcount, uint32 count_shm_id, 444 GLuint program, GLsizei maxcount, uint32 count_shm_id,
445 uint32 count_shm_offset, uint32 shaders_shm_id, 445 uint32 count_shm_offset, uint32 shaders_shm_id,
446 uint32 shaders_shm_offset) { 446 uint32 shaders_shm_offset) {
447 gles2::GetAttachedShaders& c = GetCmdSpace<gles2::GetAttachedShaders>(); 447 gles2::GetAttachedShaders& c = GetCmdSpace<gles2::GetAttachedShaders>();
448 c.Init( 448 c.Init(
449 program, maxcount, count_shm_id, count_shm_offset, shaders_shm_id, 449 program, maxcount, count_shm_id, count_shm_offset, shaders_shm_id,
450 shaders_shm_offset); 450 shaders_shm_offset);
451 } 451 }
452 452
453 void GetAttribLocation(
454 GLuint program, uint32 name_shm_id, uint32 name_shm_offset,
455 uint32 data_size) {
456 gles2::GetAttribLocation& c = GetCmdSpace<gles2::GetAttribLocation>();
457 c.Init(program, name_shm_id, name_shm_offset, data_size);
458 }
459
460 void GetAttribLocationImmediate(GLuint program, const char* name) {
461 const uint32 size = gles2::GetAttribLocationImmediate::ComputeSize(name);
462 gles2::GetAttribLocationImmediate& c =
463 GetImmediateCmdSpaceTotalSize<gles2::GetAttribLocationImmediate>(size);
464 c.Init(program, name);
465 }
466
467 void GetBooleanv( 453 void GetBooleanv(
468 GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) { 454 GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) {
469 gles2::GetBooleanv& c = GetCmdSpace<gles2::GetBooleanv>(); 455 gles2::GetBooleanv& c = GetCmdSpace<gles2::GetBooleanv>();
470 c.Init(pname, params_shm_id, params_shm_offset); 456 c.Init(pname, params_shm_id, params_shm_offset);
471 } 457 }
472 458
473 void GetBufferParameteriv( 459 void GetBufferParameteriv(
474 GLenum target, GLenum pname, uint32 params_shm_id, 460 GLenum target, GLenum pname, uint32 params_shm_id,
475 uint32 params_shm_offset) { 461 uint32 params_shm_offset) {
476 gles2::GetBufferParameteriv& c = 462 gles2::GetBufferParameteriv& c =
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 c.Init(program, location, params_shm_id, params_shm_offset); 578 c.Init(program, location, params_shm_id, params_shm_offset);
593 } 579 }
594 580
595 void GetUniformiv( 581 void GetUniformiv(
596 GLuint program, GLint location, uint32 params_shm_id, 582 GLuint program, GLint location, uint32 params_shm_id,
597 uint32 params_shm_offset) { 583 uint32 params_shm_offset) {
598 gles2::GetUniformiv& c = GetCmdSpace<gles2::GetUniformiv>(); 584 gles2::GetUniformiv& c = GetCmdSpace<gles2::GetUniformiv>();
599 c.Init(program, location, params_shm_id, params_shm_offset); 585 c.Init(program, location, params_shm_id, params_shm_offset);
600 } 586 }
601 587
602 void GetUniformLocation(
603 GLuint program, uint32 name_shm_id, uint32 name_shm_offset,
604 uint32 data_size) {
605 gles2::GetUniformLocation& c = GetCmdSpace<gles2::GetUniformLocation>();
606 c.Init(program, name_shm_id, name_shm_offset, data_size);
607 }
608
609 void GetUniformLocationImmediate(GLuint program, const char* name) {
610 const uint32 size = gles2::GetUniformLocationImmediate::ComputeSize(name);
611 gles2::GetUniformLocationImmediate& c =
612 GetImmediateCmdSpaceTotalSize<gles2::GetUniformLocationImmediate>(
613 size);
614 c.Init(program, name);
615 }
616
617 void GetVertexAttribfv( 588 void GetVertexAttribfv(
618 GLuint index, GLenum pname, uint32 params_shm_id, 589 GLuint index, GLenum pname, uint32 params_shm_id,
619 uint32 params_shm_offset) { 590 uint32 params_shm_offset) {
620 gles2::GetVertexAttribfv& c = GetCmdSpace<gles2::GetVertexAttribfv>(); 591 gles2::GetVertexAttribfv& c = GetCmdSpace<gles2::GetVertexAttribfv>();
621 c.Init(index, pname, params_shm_id, params_shm_offset); 592 c.Init(index, pname, params_shm_id, params_shm_offset);
622 } 593 }
623 594
624 void GetVertexAttribiv( 595 void GetVertexAttribiv(
625 GLuint index, GLenum pname, uint32 params_shm_id, 596 GLuint index, GLenum pname, uint32 params_shm_id,
626 uint32 params_shm_offset) { 597 uint32 params_shm_offset) {
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { 1105 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
1135 gles2::Viewport& c = GetCmdSpace<gles2::Viewport>(); 1106 gles2::Viewport& c = GetCmdSpace<gles2::Viewport>();
1136 c.Init(x, y, width, height); 1107 c.Init(x, y, width, height);
1137 } 1108 }
1138 1109
1139 void SwapBuffers() { 1110 void SwapBuffers() {
1140 gles2::SwapBuffers& c = GetCmdSpace<gles2::SwapBuffers>(); 1111 gles2::SwapBuffers& c = GetCmdSpace<gles2::SwapBuffers>();
1141 c.Init(); 1112 c.Init();
1142 } 1113 }
1143 1114
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper.h ('k') | gpu/command_buffer/client/gles2_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698