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

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

Issue 8536045: Make command buffer free transfer buffer when switching tabs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // This file is included by gles2_implementation.h to declare the 9 // This file is included by gles2_implementation.h to declare the
10 // GL api functions. 10 // GL api functions.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 void BufferSubData( 94 void BufferSubData(
95 GLenum target, GLintptr offset, GLsizeiptr size, const void* data); 95 GLenum target, GLintptr offset, GLsizeiptr size, const void* data);
96 96
97 GLenum CheckFramebufferStatus(GLenum target) { 97 GLenum CheckFramebufferStatus(GLenum target) {
98 GPU_CLIENT_LOG("[" << this << "] glCheckFramebufferStatus(" << GLES2Util::GetS tringFrameBufferTarget(target) << ")"); // NOLINT 98 GPU_CLIENT_LOG("[" << this << "] glCheckFramebufferStatus(" << GLES2Util::GetS tringFrameBufferTarget(target) << ")"); // NOLINT
99 typedef CheckFramebufferStatus::Result Result; 99 typedef CheckFramebufferStatus::Result Result;
100 Result* result = GetResultAs<Result*>(); 100 Result* result = GetResultAs<Result*>();
101 *result = 0; 101 *result = 0;
102 helper_->CheckFramebufferStatus( 102 helper_->CheckFramebufferStatus(
103 target, result_shm_id(), result_shm_offset()); 103 target, GetResultShmId(), GetResultShmOffset());
104 WaitForCmd(); 104 WaitForCmd();
105 GPU_CLIENT_LOG("returned " << *result); 105 GPU_CLIENT_LOG("returned " << *result);
106 return *result; 106 return *result;
107 } 107 }
108 108
109 void Clear(GLbitfield mask) { 109 void Clear(GLbitfield mask) {
110 GPU_CLIENT_LOG("[" << this << "] glClear(" << mask << ")"); 110 GPU_CLIENT_LOG("[" << this << "] glClear(" << mask << ")");
111 helper_->Clear(mask); 111 helper_->Clear(mask);
112 } 112 }
113 113
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 void GetBooleanv(GLenum pname, GLboolean* params) { 440 void GetBooleanv(GLenum pname, GLboolean* params) {
441 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLboolean, params); 441 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLboolean, params);
442 GPU_CLIENT_LOG("[" << this << "] glGetBooleanv(" << GLES2Util::GetStringGLStat e(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT 442 GPU_CLIENT_LOG("[" << this << "] glGetBooleanv(" << GLES2Util::GetStringGLStat e(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT
443 if (GetBooleanvHelper(pname, params)) { 443 if (GetBooleanvHelper(pname, params)) {
444 return; 444 return;
445 } 445 }
446 typedef GetBooleanv::Result Result; 446 typedef GetBooleanv::Result Result;
447 Result* result = GetResultAs<Result*>(); 447 Result* result = GetResultAs<Result*>();
448 result->SetNumResults(0); 448 result->SetNumResults(0);
449 helper_->GetBooleanv(pname, 449 helper_->GetBooleanv(pname,
450 result_shm_id(), result_shm_offset()); 450 GetResultShmId(), GetResultShmOffset());
451 WaitForCmd(); 451 WaitForCmd();
452 result->CopyResult(params); 452 result->CopyResult(params);
453 GPU_CLIENT_LOG_CODE_BLOCK({ 453 GPU_CLIENT_LOG_CODE_BLOCK({
454 for (int32 i = 0; i < result->GetNumResults(); ++i) { 454 for (int32 i = 0; i < result->GetNumResults(); ++i) {
455 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); 455 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
456 } 456 }
457 }); 457 });
458 } 458 }
459 void GetBufferParameteriv(GLenum target, GLenum pname, GLint* params) { 459 void GetBufferParameteriv(GLenum target, GLenum pname, GLint* params) {
460 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); 460 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params);
461 GPU_CLIENT_LOG("[" << this << "] glGetBufferParameteriv(" << GLES2Util::GetStr ingBufferTarget(target) << ", " << GLES2Util::GetStringBufferParameter(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT 461 GPU_CLIENT_LOG("[" << this << "] glGetBufferParameteriv(" << GLES2Util::GetStr ingBufferTarget(target) << ", " << GLES2Util::GetStringBufferParameter(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT
462 if (GetBufferParameterivHelper(target, pname, params)) { 462 if (GetBufferParameterivHelper(target, pname, params)) {
463 return; 463 return;
464 } 464 }
465 typedef GetBufferParameteriv::Result Result; 465 typedef GetBufferParameteriv::Result Result;
466 Result* result = GetResultAs<Result*>(); 466 Result* result = GetResultAs<Result*>();
467 result->SetNumResults(0); 467 result->SetNumResults(0);
468 helper_->GetBufferParameteriv(target, pname, 468 helper_->GetBufferParameteriv(target, pname,
469 result_shm_id(), result_shm_offset()); 469 GetResultShmId(), GetResultShmOffset());
470 WaitForCmd(); 470 WaitForCmd();
471 result->CopyResult(params); 471 result->CopyResult(params);
472 GPU_CLIENT_LOG_CODE_BLOCK({ 472 GPU_CLIENT_LOG_CODE_BLOCK({
473 for (int32 i = 0; i < result->GetNumResults(); ++i) { 473 for (int32 i = 0; i < result->GetNumResults(); ++i) {
474 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); 474 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
475 } 475 }
476 }); 476 });
477 } 477 }
478 GLenum GetError(); 478 GLenum GetError();
479 479
480 void GetFloatv(GLenum pname, GLfloat* params) { 480 void GetFloatv(GLenum pname, GLfloat* params) {
481 GPU_CLIENT_LOG("[" << this << "] glGetFloatv(" << GLES2Util::GetStringGLState( 481 GPU_CLIENT_LOG("[" << this << "] glGetFloatv(" << GLES2Util::GetStringGLState(
482 pname) << ", " << static_cast<const void*>(params) << ")"); 482 pname) << ", " << static_cast<const void*>(params) << ")");
483 if (GetFloatvHelper(pname, params)) { 483 if (GetFloatvHelper(pname, params)) {
484 return; 484 return;
485 } 485 }
486 typedef GetFloatv::Result Result; 486 typedef GetFloatv::Result Result;
487 Result* result = GetResultAs<Result*>(); 487 Result* result = GetResultAs<Result*>();
488 result->SetNumResults(0); 488 result->SetNumResults(0);
489 helper_->GetFloatv(pname, 489 helper_->GetFloatv(pname,
490 result_shm_id(), result_shm_offset()); 490 GetResultShmId(), GetResultShmOffset());
491 WaitForCmd(); 491 WaitForCmd();
492 result->CopyResult(params); 492 result->CopyResult(params);
493 GPU_CLIENT_LOG_CODE_BLOCK({ 493 GPU_CLIENT_LOG_CODE_BLOCK({
494 for (int32 i = 0; i < result->GetNumResults(); ++i) { 494 for (int32 i = 0; i < result->GetNumResults(); ++i) {
495 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); 495 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
496 } 496 }
497 }); 497 });
498 } 498 }
499 void GetFramebufferAttachmentParameteriv( 499 void GetFramebufferAttachmentParameteriv(
500 GLenum target, GLenum attachment, GLenum pname, GLint* params) { 500 GLenum target, GLenum attachment, GLenum pname, GLint* params) {
501 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); 501 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params);
502 GPU_CLIENT_LOG("[" << this << "] glGetFramebufferAttachmentParameteriv(" << GL ES2Util::GetStringFrameBufferTarget(target) << ", " << GLES2Util::GetStringAttac hment(attachment) << ", " << GLES2Util::GetStringFrameBufferParameter(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT 502 GPU_CLIENT_LOG("[" << this << "] glGetFramebufferAttachmentParameteriv(" << GL ES2Util::GetStringFrameBufferTarget(target) << ", " << GLES2Util::GetStringAttac hment(attachment) << ", " << GLES2Util::GetStringFrameBufferParameter(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT
503 if (GetFramebufferAttachmentParameterivHelper( 503 if (GetFramebufferAttachmentParameterivHelper(
504 target, attachment, pname, params)) { 504 target, attachment, pname, params)) {
505 return; 505 return;
506 } 506 }
507 typedef GetFramebufferAttachmentParameteriv::Result Result; 507 typedef GetFramebufferAttachmentParameteriv::Result Result;
508 Result* result = GetResultAs<Result*>(); 508 Result* result = GetResultAs<Result*>();
509 result->SetNumResults(0); 509 result->SetNumResults(0);
510 helper_->GetFramebufferAttachmentParameteriv(target, attachment, pname, 510 helper_->GetFramebufferAttachmentParameteriv(target, attachment, pname,
511 result_shm_id(), result_shm_offset()); 511 GetResultShmId(), GetResultShmOffset());
512 WaitForCmd(); 512 WaitForCmd();
513 result->CopyResult(params); 513 result->CopyResult(params);
514 GPU_CLIENT_LOG_CODE_BLOCK({ 514 GPU_CLIENT_LOG_CODE_BLOCK({
515 for (int32 i = 0; i < result->GetNumResults(); ++i) { 515 for (int32 i = 0; i < result->GetNumResults(); ++i) {
516 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); 516 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
517 } 517 }
518 }); 518 });
519 } 519 }
520 void GetIntegerv(GLenum pname, GLint* params) { 520 void GetIntegerv(GLenum pname, GLint* params) {
521 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); 521 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params);
522 GPU_CLIENT_LOG("[" << this << "] glGetIntegerv(" << GLES2Util::GetStringGLStat e(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT 522 GPU_CLIENT_LOG("[" << this << "] glGetIntegerv(" << GLES2Util::GetStringGLStat e(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT
523 if (GetIntegervHelper(pname, params)) { 523 if (GetIntegervHelper(pname, params)) {
524 return; 524 return;
525 } 525 }
526 typedef GetIntegerv::Result Result; 526 typedef GetIntegerv::Result Result;
527 Result* result = GetResultAs<Result*>(); 527 Result* result = GetResultAs<Result*>();
528 result->SetNumResults(0); 528 result->SetNumResults(0);
529 helper_->GetIntegerv(pname, 529 helper_->GetIntegerv(pname,
530 result_shm_id(), result_shm_offset()); 530 GetResultShmId(), GetResultShmOffset());
531 WaitForCmd(); 531 WaitForCmd();
532 result->CopyResult(params); 532 result->CopyResult(params);
533 GPU_CLIENT_LOG_CODE_BLOCK({ 533 GPU_CLIENT_LOG_CODE_BLOCK({
534 for (int32 i = 0; i < result->GetNumResults(); ++i) { 534 for (int32 i = 0; i < result->GetNumResults(); ++i) {
535 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); 535 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
536 } 536 }
537 }); 537 });
538 } 538 }
539 void GetProgramiv(GLuint program, GLenum pname, GLint* params) { 539 void GetProgramiv(GLuint program, GLenum pname, GLint* params) {
540 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); 540 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params);
541 GPU_CLIENT_LOG("[" << this << "] glGetProgramiv(" << program << ", " << GLES2U til::GetStringProgramParameter(pname) << ", " << static_cast<const void*>(params ) << ")"); // NOLINT 541 GPU_CLIENT_LOG("[" << this << "] glGetProgramiv(" << program << ", " << GLES2U til::GetStringProgramParameter(pname) << ", " << static_cast<const void*>(params ) << ")"); // NOLINT
542 if (GetProgramivHelper(program, pname, params)) { 542 if (GetProgramivHelper(program, pname, params)) {
543 return; 543 return;
544 } 544 }
545 typedef GetProgramiv::Result Result; 545 typedef GetProgramiv::Result Result;
546 Result* result = GetResultAs<Result*>(); 546 Result* result = GetResultAs<Result*>();
547 result->SetNumResults(0); 547 result->SetNumResults(0);
548 helper_->GetProgramiv(program, pname, 548 helper_->GetProgramiv(program, pname,
549 result_shm_id(), result_shm_offset()); 549 GetResultShmId(), GetResultShmOffset());
550 WaitForCmd(); 550 WaitForCmd();
551 result->CopyResult(params); 551 result->CopyResult(params);
552 GPU_CLIENT_LOG_CODE_BLOCK({ 552 GPU_CLIENT_LOG_CODE_BLOCK({
553 for (int32 i = 0; i < result->GetNumResults(); ++i) { 553 for (int32 i = 0; i < result->GetNumResults(); ++i) {
554 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); 554 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
555 } 555 }
556 }); 556 });
557 } 557 }
558 void GetProgramInfoLog( 558 void GetProgramInfoLog(
559 GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) { 559 GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) {
(...skipping 23 matching lines...) Expand all
583 void GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params) { 583 void GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params) {
584 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); 584 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params);
585 GPU_CLIENT_LOG("[" << this << "] glGetRenderbufferParameteriv(" << GLES2Util:: GetStringRenderBufferTarget(target) << ", " << GLES2Util::GetStringRenderBufferP arameter(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT 585 GPU_CLIENT_LOG("[" << this << "] glGetRenderbufferParameteriv(" << GLES2Util:: GetStringRenderBufferTarget(target) << ", " << GLES2Util::GetStringRenderBufferP arameter(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT
586 if (GetRenderbufferParameterivHelper(target, pname, params)) { 586 if (GetRenderbufferParameterivHelper(target, pname, params)) {
587 return; 587 return;
588 } 588 }
589 typedef GetRenderbufferParameteriv::Result Result; 589 typedef GetRenderbufferParameteriv::Result Result;
590 Result* result = GetResultAs<Result*>(); 590 Result* result = GetResultAs<Result*>();
591 result->SetNumResults(0); 591 result->SetNumResults(0);
592 helper_->GetRenderbufferParameteriv(target, pname, 592 helper_->GetRenderbufferParameteriv(target, pname,
593 result_shm_id(), result_shm_offset()); 593 GetResultShmId(), GetResultShmOffset());
594 WaitForCmd(); 594 WaitForCmd();
595 result->CopyResult(params); 595 result->CopyResult(params);
596 GPU_CLIENT_LOG_CODE_BLOCK({ 596 GPU_CLIENT_LOG_CODE_BLOCK({
597 for (int32 i = 0; i < result->GetNumResults(); ++i) { 597 for (int32 i = 0; i < result->GetNumResults(); ++i) {
598 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); 598 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
599 } 599 }
600 }); 600 });
601 } 601 }
602 void GetShaderiv(GLuint shader, GLenum pname, GLint* params) { 602 void GetShaderiv(GLuint shader, GLenum pname, GLint* params) {
603 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); 603 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params);
604 GPU_CLIENT_LOG("[" << this << "] glGetShaderiv(" << shader << ", " << GLES2Uti l::GetStringShaderParameter(pname) << ", " << static_cast<const void*>(params) < < ")"); // NOLINT 604 GPU_CLIENT_LOG("[" << this << "] glGetShaderiv(" << shader << ", " << GLES2Uti l::GetStringShaderParameter(pname) << ", " << static_cast<const void*>(params) < < ")"); // NOLINT
605 if (GetShaderivHelper(shader, pname, params)) { 605 if (GetShaderivHelper(shader, pname, params)) {
606 return; 606 return;
607 } 607 }
608 typedef GetShaderiv::Result Result; 608 typedef GetShaderiv::Result Result;
609 Result* result = GetResultAs<Result*>(); 609 Result* result = GetResultAs<Result*>();
610 result->SetNumResults(0); 610 result->SetNumResults(0);
611 helper_->GetShaderiv(shader, pname, 611 helper_->GetShaderiv(shader, pname,
612 result_shm_id(), result_shm_offset()); 612 GetResultShmId(), GetResultShmOffset());
613 WaitForCmd(); 613 WaitForCmd();
614 result->CopyResult(params); 614 result->CopyResult(params);
615 GPU_CLIENT_LOG_CODE_BLOCK({ 615 GPU_CLIENT_LOG_CODE_BLOCK({
616 for (int32 i = 0; i < result->GetNumResults(); ++i) { 616 for (int32 i = 0; i < result->GetNumResults(); ++i) {
617 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); 617 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
618 } 618 }
619 }); 619 });
620 } 620 }
621 void GetShaderInfoLog( 621 void GetShaderInfoLog(
622 GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) { 622 GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 675
676 void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) { 676 void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) {
677 GPU_CLIENT_LOG("[" << this << "] glGetTexParameterfv(" << GLES2Util::GetString GetTexParamTarget(target) << ", " << GLES2Util::GetStringTextureParameter(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT 677 GPU_CLIENT_LOG("[" << this << "] glGetTexParameterfv(" << GLES2Util::GetString GetTexParamTarget(target) << ", " << GLES2Util::GetStringTextureParameter(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT
678 if (GetTexParameterfvHelper(target, pname, params)) { 678 if (GetTexParameterfvHelper(target, pname, params)) {
679 return; 679 return;
680 } 680 }
681 typedef GetTexParameterfv::Result Result; 681 typedef GetTexParameterfv::Result Result;
682 Result* result = GetResultAs<Result*>(); 682 Result* result = GetResultAs<Result*>();
683 result->SetNumResults(0); 683 result->SetNumResults(0);
684 helper_->GetTexParameterfv(target, pname, 684 helper_->GetTexParameterfv(target, pname,
685 result_shm_id(), result_shm_offset()); 685 GetResultShmId(), GetResultShmOffset());
686 WaitForCmd(); 686 WaitForCmd();
687 result->CopyResult(params); 687 result->CopyResult(params);
688 GPU_CLIENT_LOG_CODE_BLOCK({ 688 GPU_CLIENT_LOG_CODE_BLOCK({
689 for (int32 i = 0; i < result->GetNumResults(); ++i) { 689 for (int32 i = 0; i < result->GetNumResults(); ++i) {
690 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); 690 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
691 } 691 }
692 }); 692 });
693 } 693 }
694 void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) { 694 void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) {
695 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); 695 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params);
696 GPU_CLIENT_LOG("[" << this << "] glGetTexParameteriv(" << GLES2Util::GetString GetTexParamTarget(target) << ", " << GLES2Util::GetStringTextureParameter(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT 696 GPU_CLIENT_LOG("[" << this << "] glGetTexParameteriv(" << GLES2Util::GetString GetTexParamTarget(target) << ", " << GLES2Util::GetStringTextureParameter(pname) << ", " << static_cast<const void*>(params) << ")"); // NOLINT
697 if (GetTexParameterivHelper(target, pname, params)) { 697 if (GetTexParameterivHelper(target, pname, params)) {
698 return; 698 return;
699 } 699 }
700 typedef GetTexParameteriv::Result Result; 700 typedef GetTexParameteriv::Result Result;
701 Result* result = GetResultAs<Result*>(); 701 Result* result = GetResultAs<Result*>();
702 result->SetNumResults(0); 702 result->SetNumResults(0);
703 helper_->GetTexParameteriv(target, pname, 703 helper_->GetTexParameteriv(target, pname,
704 result_shm_id(), result_shm_offset()); 704 GetResultShmId(), GetResultShmOffset());
705 WaitForCmd(); 705 WaitForCmd();
706 result->CopyResult(params); 706 result->CopyResult(params);
707 GPU_CLIENT_LOG_CODE_BLOCK({ 707 GPU_CLIENT_LOG_CODE_BLOCK({
708 for (int32 i = 0; i < result->GetNumResults(); ++i) { 708 for (int32 i = 0; i < result->GetNumResults(); ++i) {
709 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); 709 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
710 } 710 }
711 }); 711 });
712 } 712 }
713 void GetUniformfv(GLuint program, GLint location, GLfloat* params); 713 void GetUniformfv(GLuint program, GLint location, GLfloat* params);
714 714
715 void GetUniformiv(GLuint program, GLint location, GLint* params); 715 void GetUniformiv(GLuint program, GLint location, GLint* params);
716 716
717 GLint GetUniformLocation(GLuint program, const char* name); 717 GLint GetUniformLocation(GLuint program, const char* name);
718 718
719 void GetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer); 719 void GetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer);
720 720
721 void Hint(GLenum target, GLenum mode) { 721 void Hint(GLenum target, GLenum mode) {
722 GPU_CLIENT_LOG("[" << this << "] glHint(" << GLES2Util::GetStringHintTarget( 722 GPU_CLIENT_LOG("[" << this << "] glHint(" << GLES2Util::GetStringHintTarget(
723 target) << ", " << GLES2Util::GetStringHintMode(mode) << ")"); 723 target) << ", " << GLES2Util::GetStringHintMode(mode) << ")");
724 helper_->Hint(target, mode); 724 helper_->Hint(target, mode);
725 } 725 }
726 726
727 GLboolean IsBuffer(GLuint buffer) { 727 GLboolean IsBuffer(GLuint buffer) {
728 GPU_CLIENT_LOG("[" << this << "] glIsBuffer(" << buffer << ")"); 728 GPU_CLIENT_LOG("[" << this << "] glIsBuffer(" << buffer << ")");
729 typedef IsBuffer::Result Result; 729 typedef IsBuffer::Result Result;
730 Result* result = GetResultAs<Result*>(); 730 Result* result = GetResultAs<Result*>();
731 *result = 0; 731 *result = 0;
732 helper_->IsBuffer(buffer, result_shm_id(), result_shm_offset()); 732 helper_->IsBuffer(buffer, GetResultShmId(), GetResultShmOffset());
733 WaitForCmd(); 733 WaitForCmd();
734 GPU_CLIENT_LOG("returned " << *result); 734 GPU_CLIENT_LOG("returned " << *result);
735 return *result; 735 return *result;
736 } 736 }
737 737
738 GLboolean IsEnabled(GLenum cap) { 738 GLboolean IsEnabled(GLenum cap) {
739 GPU_CLIENT_LOG("[" << this << "] glIsEnabled(" << GLES2Util::GetStringCapabili ty(cap) << ")"); // NOLINT 739 GPU_CLIENT_LOG("[" << this << "] glIsEnabled(" << GLES2Util::GetStringCapabili ty(cap) << ")"); // NOLINT
740 typedef IsEnabled::Result Result; 740 typedef IsEnabled::Result Result;
741 Result* result = GetResultAs<Result*>(); 741 Result* result = GetResultAs<Result*>();
742 *result = 0; 742 *result = 0;
743 helper_->IsEnabled(cap, result_shm_id(), result_shm_offset()); 743 helper_->IsEnabled(cap, GetResultShmId(), GetResultShmOffset());
744 WaitForCmd(); 744 WaitForCmd();
745 GPU_CLIENT_LOG("returned " << *result); 745 GPU_CLIENT_LOG("returned " << *result);
746 return *result; 746 return *result;
747 } 747 }
748 748
749 GLboolean IsFramebuffer(GLuint framebuffer) { 749 GLboolean IsFramebuffer(GLuint framebuffer) {
750 GPU_CLIENT_LOG("[" << this << "] glIsFramebuffer(" << framebuffer << ")"); 750 GPU_CLIENT_LOG("[" << this << "] glIsFramebuffer(" << framebuffer << ")");
751 typedef IsFramebuffer::Result Result; 751 typedef IsFramebuffer::Result Result;
752 Result* result = GetResultAs<Result*>(); 752 Result* result = GetResultAs<Result*>();
753 *result = 0; 753 *result = 0;
754 helper_->IsFramebuffer(framebuffer, result_shm_id(), result_shm_offset()); 754 helper_->IsFramebuffer(framebuffer, GetResultShmId(), GetResultShmOffset());
755 WaitForCmd(); 755 WaitForCmd();
756 GPU_CLIENT_LOG("returned " << *result); 756 GPU_CLIENT_LOG("returned " << *result);
757 return *result; 757 return *result;
758 } 758 }
759 759
760 GLboolean IsProgram(GLuint program) { 760 GLboolean IsProgram(GLuint program) {
761 GPU_CLIENT_LOG("[" << this << "] glIsProgram(" << program << ")"); 761 GPU_CLIENT_LOG("[" << this << "] glIsProgram(" << program << ")");
762 typedef IsProgram::Result Result; 762 typedef IsProgram::Result Result;
763 Result* result = GetResultAs<Result*>(); 763 Result* result = GetResultAs<Result*>();
764 *result = 0; 764 *result = 0;
765 helper_->IsProgram(program, result_shm_id(), result_shm_offset()); 765 helper_->IsProgram(program, GetResultShmId(), GetResultShmOffset());
766 WaitForCmd(); 766 WaitForCmd();
767 GPU_CLIENT_LOG("returned " << *result); 767 GPU_CLIENT_LOG("returned " << *result);
768 return *result; 768 return *result;
769 } 769 }
770 770
771 GLboolean IsRenderbuffer(GLuint renderbuffer) { 771 GLboolean IsRenderbuffer(GLuint renderbuffer) {
772 GPU_CLIENT_LOG("[" << this << "] glIsRenderbuffer(" << renderbuffer << ")"); 772 GPU_CLIENT_LOG("[" << this << "] glIsRenderbuffer(" << renderbuffer << ")");
773 typedef IsRenderbuffer::Result Result; 773 typedef IsRenderbuffer::Result Result;
774 Result* result = GetResultAs<Result*>(); 774 Result* result = GetResultAs<Result*>();
775 *result = 0; 775 *result = 0;
776 helper_->IsRenderbuffer(renderbuffer, result_shm_id(), result_shm_offset()); 776 helper_->IsRenderbuffer(
777 renderbuffer, GetResultShmId(), GetResultShmOffset());
777 WaitForCmd(); 778 WaitForCmd();
778 GPU_CLIENT_LOG("returned " << *result); 779 GPU_CLIENT_LOG("returned " << *result);
779 return *result; 780 return *result;
780 } 781 }
781 782
782 GLboolean IsShader(GLuint shader) { 783 GLboolean IsShader(GLuint shader) {
783 GPU_CLIENT_LOG("[" << this << "] glIsShader(" << shader << ")"); 784 GPU_CLIENT_LOG("[" << this << "] glIsShader(" << shader << ")");
784 typedef IsShader::Result Result; 785 typedef IsShader::Result Result;
785 Result* result = GetResultAs<Result*>(); 786 Result* result = GetResultAs<Result*>();
786 *result = 0; 787 *result = 0;
787 helper_->IsShader(shader, result_shm_id(), result_shm_offset()); 788 helper_->IsShader(shader, GetResultShmId(), GetResultShmOffset());
788 WaitForCmd(); 789 WaitForCmd();
789 GPU_CLIENT_LOG("returned " << *result); 790 GPU_CLIENT_LOG("returned " << *result);
790 return *result; 791 return *result;
791 } 792 }
792 793
793 GLboolean IsTexture(GLuint texture) { 794 GLboolean IsTexture(GLuint texture) {
794 GPU_CLIENT_LOG("[" << this << "] glIsTexture(" << texture << ")"); 795 GPU_CLIENT_LOG("[" << this << "] glIsTexture(" << texture << ")");
795 typedef IsTexture::Result Result; 796 typedef IsTexture::Result Result;
796 Result* result = GetResultAs<Result*>(); 797 Result* result = GetResultAs<Result*>();
797 *result = 0; 798 *result = 0;
798 helper_->IsTexture(texture, result_shm_id(), result_shm_offset()); 799 helper_->IsTexture(texture, GetResultShmId(), GetResultShmOffset());
799 WaitForCmd(); 800 WaitForCmd();
800 GPU_CLIENT_LOG("returned " << *result); 801 GPU_CLIENT_LOG("returned " << *result);
801 return *result; 802 return *result;
802 } 803 }
803 804
804 void LineWidth(GLfloat width) { 805 void LineWidth(GLfloat width) {
805 GPU_CLIENT_LOG("[" << this << "] glLineWidth(" << width << ")"); 806 GPU_CLIENT_LOG("[" << this << "] glLineWidth(" << width << ")");
806 helper_->LineWidth(width); 807 helper_->LineWidth(width);
807 } 808 }
808 809
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 1226
1226 void SwapBuffers(); 1227 void SwapBuffers();
1227 1228
1228 GLuint GetMaxValueInBufferCHROMIUM( 1229 GLuint GetMaxValueInBufferCHROMIUM(
1229 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) { 1230 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) {
1230 GPU_CLIENT_LOG("[" << this << "] glGetMaxValueInBufferCHROMIUM(" << buffer_id << ", " << count << ", " << GLES2Util::GetStringGetMaxIndexType(type) << ", " << offset << ")"); // NOLINT 1231 GPU_CLIENT_LOG("[" << this << "] glGetMaxValueInBufferCHROMIUM(" << buffer_id << ", " << count << ", " << GLES2Util::GetStringGetMaxIndexType(type) << ", " << offset << ")"); // NOLINT
1231 typedef GetMaxValueInBufferCHROMIUM::Result Result; 1232 typedef GetMaxValueInBufferCHROMIUM::Result Result;
1232 Result* result = GetResultAs<Result*>(); 1233 Result* result = GetResultAs<Result*>();
1233 *result = 0; 1234 *result = 0;
1234 helper_->GetMaxValueInBufferCHROMIUM( 1235 helper_->GetMaxValueInBufferCHROMIUM(
1235 buffer_id, count, type, offset, result_shm_id(), result_shm_offset()); 1236 buffer_id, count, type, offset, GetResultShmId(), GetResultShmOffset());
1236 WaitForCmd(); 1237 WaitForCmd();
1237 GPU_CLIENT_LOG("returned " << *result); 1238 GPU_CLIENT_LOG("returned " << *result);
1238 return *result; 1239 return *result;
1239 } 1240 }
1240 1241
1241 void GenSharedIdsCHROMIUM( 1242 void GenSharedIdsCHROMIUM(
1242 GLuint namespace_id, GLuint id_offset, GLsizei n, GLuint* ids); 1243 GLuint namespace_id, GLuint id_offset, GLsizei n, GLuint* ids);
1243 1244
1244 void DeleteSharedIdsCHROMIUM( 1245 void DeleteSharedIdsCHROMIUM(
1245 GLuint namespace_id, GLsizei n, const GLuint* ids); 1246 GLuint namespace_id, GLsizei n, const GLuint* ids);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 if (height < 0) { 1317 if (height < 0) {
1317 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM: height < 0"); 1318 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM: height < 0");
1318 return; 1319 return;
1319 } 1320 }
1320 helper_->TexImageIOSurface2DCHROMIUM( 1321 helper_->TexImageIOSurface2DCHROMIUM(
1321 target, width, height, ioSurfaceId, plane); 1322 target, width, height, ioSurfaceId, plane);
1322 } 1323 }
1323 1324
1324 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_ 1325 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_
1325 1326
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698