| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file is auto-generated from | 5 // This file is auto-generated from |
| 6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
| 7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 typedef cmds::GetBooleanv::Result Result; | 580 typedef cmds::GetBooleanv::Result Result; |
| 581 Result* result = GetResultAs<Result*>(); | 581 Result* result = GetResultAs<Result*>(); |
| 582 if (!result) { | 582 if (!result) { |
| 583 return; | 583 return; |
| 584 } | 584 } |
| 585 result->SetNumResults(0); | 585 result->SetNumResults(0); |
| 586 helper_->GetBooleanv(pname, GetResultShmId(), GetResultShmOffset()); | 586 helper_->GetBooleanv(pname, GetResultShmId(), GetResultShmOffset()); |
| 587 WaitForCmd(); | 587 WaitForCmd(); |
| 588 result->CopyResult(params); | 588 result->CopyResult(params); |
| 589 GPU_CLIENT_LOG_CODE_BLOCK({ | 589 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 590 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 590 for (int32_t i = 0; i < result->GetNumResults(); ++i) { |
| 591 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 591 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
| 592 } | 592 } |
| 593 }); | 593 }); |
| 594 CheckGLError(); | 594 CheckGLError(); |
| 595 } | 595 } |
| 596 void GLES2Implementation::GetBufferParameteriv(GLenum target, | 596 void GLES2Implementation::GetBufferParameteriv(GLenum target, |
| 597 GLenum pname, | 597 GLenum pname, |
| 598 GLint* params) { | 598 GLint* params) { |
| 599 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 599 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 600 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); | 600 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); |
| 601 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetBufferParameteriv(" | 601 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetBufferParameteriv(" |
| 602 << GLES2Util::GetStringBufferTarget(target) << ", " | 602 << GLES2Util::GetStringBufferTarget(target) << ", " |
| 603 << GLES2Util::GetStringBufferParameter(pname) << ", " | 603 << GLES2Util::GetStringBufferParameter(pname) << ", " |
| 604 << static_cast<const void*>(params) << ")"); | 604 << static_cast<const void*>(params) << ")"); |
| 605 TRACE_EVENT0("gpu", "GLES2Implementation::GetBufferParameteriv"); | 605 TRACE_EVENT0("gpu", "GLES2Implementation::GetBufferParameteriv"); |
| 606 if (GetBufferParameterivHelper(target, pname, params)) { | 606 if (GetBufferParameterivHelper(target, pname, params)) { |
| 607 return; | 607 return; |
| 608 } | 608 } |
| 609 typedef cmds::GetBufferParameteriv::Result Result; | 609 typedef cmds::GetBufferParameteriv::Result Result; |
| 610 Result* result = GetResultAs<Result*>(); | 610 Result* result = GetResultAs<Result*>(); |
| 611 if (!result) { | 611 if (!result) { |
| 612 return; | 612 return; |
| 613 } | 613 } |
| 614 result->SetNumResults(0); | 614 result->SetNumResults(0); |
| 615 helper_->GetBufferParameteriv( | 615 helper_->GetBufferParameteriv( |
| 616 target, pname, GetResultShmId(), GetResultShmOffset()); | 616 target, pname, GetResultShmId(), GetResultShmOffset()); |
| 617 WaitForCmd(); | 617 WaitForCmd(); |
| 618 result->CopyResult(params); | 618 result->CopyResult(params); |
| 619 GPU_CLIENT_LOG_CODE_BLOCK({ | 619 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 620 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 620 for (int32_t i = 0; i < result->GetNumResults(); ++i) { |
| 621 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 621 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
| 622 } | 622 } |
| 623 }); | 623 }); |
| 624 CheckGLError(); | 624 CheckGLError(); |
| 625 } | 625 } |
| 626 void GLES2Implementation::GetFloatv(GLenum pname, GLfloat* params) { | 626 void GLES2Implementation::GetFloatv(GLenum pname, GLfloat* params) { |
| 627 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 627 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 628 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetFloatv(" | 628 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetFloatv(" |
| 629 << GLES2Util::GetStringGLState(pname) << ", " | 629 << GLES2Util::GetStringGLState(pname) << ", " |
| 630 << static_cast<const void*>(params) << ")"); | 630 << static_cast<const void*>(params) << ")"); |
| 631 TRACE_EVENT0("gpu", "GLES2Implementation::GetFloatv"); | 631 TRACE_EVENT0("gpu", "GLES2Implementation::GetFloatv"); |
| 632 if (GetFloatvHelper(pname, params)) { | 632 if (GetFloatvHelper(pname, params)) { |
| 633 return; | 633 return; |
| 634 } | 634 } |
| 635 typedef cmds::GetFloatv::Result Result; | 635 typedef cmds::GetFloatv::Result Result; |
| 636 Result* result = GetResultAs<Result*>(); | 636 Result* result = GetResultAs<Result*>(); |
| 637 if (!result) { | 637 if (!result) { |
| 638 return; | 638 return; |
| 639 } | 639 } |
| 640 result->SetNumResults(0); | 640 result->SetNumResults(0); |
| 641 helper_->GetFloatv(pname, GetResultShmId(), GetResultShmOffset()); | 641 helper_->GetFloatv(pname, GetResultShmId(), GetResultShmOffset()); |
| 642 WaitForCmd(); | 642 WaitForCmd(); |
| 643 result->CopyResult(params); | 643 result->CopyResult(params); |
| 644 GPU_CLIENT_LOG_CODE_BLOCK({ | 644 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 645 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 645 for (int32_t i = 0; i < result->GetNumResults(); ++i) { |
| 646 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 646 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
| 647 } | 647 } |
| 648 }); | 648 }); |
| 649 CheckGLError(); | 649 CheckGLError(); |
| 650 } | 650 } |
| 651 void GLES2Implementation::GetFramebufferAttachmentParameteriv(GLenum target, | 651 void GLES2Implementation::GetFramebufferAttachmentParameteriv(GLenum target, |
| 652 GLenum attachment, | 652 GLenum attachment, |
| 653 GLenum pname, | 653 GLenum pname, |
| 654 GLint* params) { | 654 GLint* params) { |
| 655 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 655 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 670 Result* result = GetResultAs<Result*>(); | 670 Result* result = GetResultAs<Result*>(); |
| 671 if (!result) { | 671 if (!result) { |
| 672 return; | 672 return; |
| 673 } | 673 } |
| 674 result->SetNumResults(0); | 674 result->SetNumResults(0); |
| 675 helper_->GetFramebufferAttachmentParameteriv( | 675 helper_->GetFramebufferAttachmentParameteriv( |
| 676 target, attachment, pname, GetResultShmId(), GetResultShmOffset()); | 676 target, attachment, pname, GetResultShmId(), GetResultShmOffset()); |
| 677 WaitForCmd(); | 677 WaitForCmd(); |
| 678 result->CopyResult(params); | 678 result->CopyResult(params); |
| 679 GPU_CLIENT_LOG_CODE_BLOCK({ | 679 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 680 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 680 for (int32_t i = 0; i < result->GetNumResults(); ++i) { |
| 681 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 681 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
| 682 } | 682 } |
| 683 }); | 683 }); |
| 684 CheckGLError(); | 684 CheckGLError(); |
| 685 } | 685 } |
| 686 void GLES2Implementation::GetIntegerv(GLenum pname, GLint* params) { | 686 void GLES2Implementation::GetIntegerv(GLenum pname, GLint* params) { |
| 687 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 687 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 688 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); | 688 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); |
| 689 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetIntegerv(" | 689 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetIntegerv(" |
| 690 << GLES2Util::GetStringGLState(pname) << ", " | 690 << GLES2Util::GetStringGLState(pname) << ", " |
| 691 << static_cast<const void*>(params) << ")"); | 691 << static_cast<const void*>(params) << ")"); |
| 692 TRACE_EVENT0("gpu", "GLES2Implementation::GetIntegerv"); | 692 TRACE_EVENT0("gpu", "GLES2Implementation::GetIntegerv"); |
| 693 if (GetIntegervHelper(pname, params)) { | 693 if (GetIntegervHelper(pname, params)) { |
| 694 return; | 694 return; |
| 695 } | 695 } |
| 696 typedef cmds::GetIntegerv::Result Result; | 696 typedef cmds::GetIntegerv::Result Result; |
| 697 Result* result = GetResultAs<Result*>(); | 697 Result* result = GetResultAs<Result*>(); |
| 698 if (!result) { | 698 if (!result) { |
| 699 return; | 699 return; |
| 700 } | 700 } |
| 701 result->SetNumResults(0); | 701 result->SetNumResults(0); |
| 702 helper_->GetIntegerv(pname, GetResultShmId(), GetResultShmOffset()); | 702 helper_->GetIntegerv(pname, GetResultShmId(), GetResultShmOffset()); |
| 703 WaitForCmd(); | 703 WaitForCmd(); |
| 704 result->CopyResult(params); | 704 result->CopyResult(params); |
| 705 GPU_CLIENT_LOG_CODE_BLOCK({ | 705 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 706 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 706 for (int32_t i = 0; i < result->GetNumResults(); ++i) { |
| 707 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 707 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
| 708 } | 708 } |
| 709 }); | 709 }); |
| 710 CheckGLError(); | 710 CheckGLError(); |
| 711 } | 711 } |
| 712 void GLES2Implementation::GetProgramiv(GLuint program, | 712 void GLES2Implementation::GetProgramiv(GLuint program, |
| 713 GLenum pname, | 713 GLenum pname, |
| 714 GLint* params) { | 714 GLint* params) { |
| 715 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 715 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 716 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); | 716 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); |
| 717 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetProgramiv(" << program << ", " | 717 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetProgramiv(" << program << ", " |
| 718 << GLES2Util::GetStringProgramParameter(pname) << ", " | 718 << GLES2Util::GetStringProgramParameter(pname) << ", " |
| 719 << static_cast<const void*>(params) << ")"); | 719 << static_cast<const void*>(params) << ")"); |
| 720 TRACE_EVENT0("gpu", "GLES2Implementation::GetProgramiv"); | 720 TRACE_EVENT0("gpu", "GLES2Implementation::GetProgramiv"); |
| 721 if (GetProgramivHelper(program, pname, params)) { | 721 if (GetProgramivHelper(program, pname, params)) { |
| 722 return; | 722 return; |
| 723 } | 723 } |
| 724 typedef cmds::GetProgramiv::Result Result; | 724 typedef cmds::GetProgramiv::Result Result; |
| 725 Result* result = GetResultAs<Result*>(); | 725 Result* result = GetResultAs<Result*>(); |
| 726 if (!result) { | 726 if (!result) { |
| 727 return; | 727 return; |
| 728 } | 728 } |
| 729 result->SetNumResults(0); | 729 result->SetNumResults(0); |
| 730 helper_->GetProgramiv(program, pname, GetResultShmId(), GetResultShmOffset()); | 730 helper_->GetProgramiv(program, pname, GetResultShmId(), GetResultShmOffset()); |
| 731 WaitForCmd(); | 731 WaitForCmd(); |
| 732 result->CopyResult(params); | 732 result->CopyResult(params); |
| 733 GPU_CLIENT_LOG_CODE_BLOCK({ | 733 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 734 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 734 for (int32_t i = 0; i < result->GetNumResults(); ++i) { |
| 735 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 735 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
| 736 } | 736 } |
| 737 }); | 737 }); |
| 738 CheckGLError(); | 738 CheckGLError(); |
| 739 } | 739 } |
| 740 void GLES2Implementation::GetProgramInfoLog(GLuint program, | 740 void GLES2Implementation::GetProgramInfoLog(GLuint program, |
| 741 GLsizei bufsize, | 741 GLsizei bufsize, |
| 742 GLsizei* length, | 742 GLsizei* length, |
| 743 char* infolog) { | 743 char* infolog) { |
| 744 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 744 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 Result* result = GetResultAs<Result*>(); | 781 Result* result = GetResultAs<Result*>(); |
| 782 if (!result) { | 782 if (!result) { |
| 783 return; | 783 return; |
| 784 } | 784 } |
| 785 result->SetNumResults(0); | 785 result->SetNumResults(0); |
| 786 helper_->GetRenderbufferParameteriv( | 786 helper_->GetRenderbufferParameteriv( |
| 787 target, pname, GetResultShmId(), GetResultShmOffset()); | 787 target, pname, GetResultShmId(), GetResultShmOffset()); |
| 788 WaitForCmd(); | 788 WaitForCmd(); |
| 789 result->CopyResult(params); | 789 result->CopyResult(params); |
| 790 GPU_CLIENT_LOG_CODE_BLOCK({ | 790 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 791 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 791 for (int32_t i = 0; i < result->GetNumResults(); ++i) { |
| 792 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 792 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
| 793 } | 793 } |
| 794 }); | 794 }); |
| 795 CheckGLError(); | 795 CheckGLError(); |
| 796 } | 796 } |
| 797 void GLES2Implementation::GetShaderiv(GLuint shader, | 797 void GLES2Implementation::GetShaderiv(GLuint shader, |
| 798 GLenum pname, | 798 GLenum pname, |
| 799 GLint* params) { | 799 GLint* params) { |
| 800 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 800 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 801 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); | 801 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); |
| 802 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetShaderiv(" << shader << ", " | 802 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetShaderiv(" << shader << ", " |
| 803 << GLES2Util::GetStringShaderParameter(pname) << ", " | 803 << GLES2Util::GetStringShaderParameter(pname) << ", " |
| 804 << static_cast<const void*>(params) << ")"); | 804 << static_cast<const void*>(params) << ")"); |
| 805 TRACE_EVENT0("gpu", "GLES2Implementation::GetShaderiv"); | 805 TRACE_EVENT0("gpu", "GLES2Implementation::GetShaderiv"); |
| 806 if (GetShaderivHelper(shader, pname, params)) { | 806 if (GetShaderivHelper(shader, pname, params)) { |
| 807 return; | 807 return; |
| 808 } | 808 } |
| 809 typedef cmds::GetShaderiv::Result Result; | 809 typedef cmds::GetShaderiv::Result Result; |
| 810 Result* result = GetResultAs<Result*>(); | 810 Result* result = GetResultAs<Result*>(); |
| 811 if (!result) { | 811 if (!result) { |
| 812 return; | 812 return; |
| 813 } | 813 } |
| 814 result->SetNumResults(0); | 814 result->SetNumResults(0); |
| 815 helper_->GetShaderiv(shader, pname, GetResultShmId(), GetResultShmOffset()); | 815 helper_->GetShaderiv(shader, pname, GetResultShmId(), GetResultShmOffset()); |
| 816 WaitForCmd(); | 816 WaitForCmd(); |
| 817 result->CopyResult(params); | 817 result->CopyResult(params); |
| 818 GPU_CLIENT_LOG_CODE_BLOCK({ | 818 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 819 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 819 for (int32_t i = 0; i < result->GetNumResults(); ++i) { |
| 820 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 820 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
| 821 } | 821 } |
| 822 }); | 822 }); |
| 823 CheckGLError(); | 823 CheckGLError(); |
| 824 } | 824 } |
| 825 void GLES2Implementation::GetShaderInfoLog(GLuint shader, | 825 void GLES2Implementation::GetShaderInfoLog(GLuint shader, |
| 826 GLsizei bufsize, | 826 GLsizei bufsize, |
| 827 GLsizei* length, | 827 GLsizei* length, |
| 828 char* infolog) { | 828 char* infolog) { |
| 829 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 829 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 Result* result = GetResultAs<Result*>(); | 892 Result* result = GetResultAs<Result*>(); |
| 893 if (!result) { | 893 if (!result) { |
| 894 return; | 894 return; |
| 895 } | 895 } |
| 896 result->SetNumResults(0); | 896 result->SetNumResults(0); |
| 897 helper_->GetTexParameterfv( | 897 helper_->GetTexParameterfv( |
| 898 target, pname, GetResultShmId(), GetResultShmOffset()); | 898 target, pname, GetResultShmId(), GetResultShmOffset()); |
| 899 WaitForCmd(); | 899 WaitForCmd(); |
| 900 result->CopyResult(params); | 900 result->CopyResult(params); |
| 901 GPU_CLIENT_LOG_CODE_BLOCK({ | 901 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 902 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 902 for (int32_t i = 0; i < result->GetNumResults(); ++i) { |
| 903 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 903 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
| 904 } | 904 } |
| 905 }); | 905 }); |
| 906 CheckGLError(); | 906 CheckGLError(); |
| 907 } | 907 } |
| 908 void GLES2Implementation::GetTexParameteriv(GLenum target, | 908 void GLES2Implementation::GetTexParameteriv(GLenum target, |
| 909 GLenum pname, | 909 GLenum pname, |
| 910 GLint* params) { | 910 GLint* params) { |
| 911 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 911 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 912 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); | 912 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); |
| 913 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetTexParameteriv(" | 913 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetTexParameteriv(" |
| 914 << GLES2Util::GetStringGetTexParamTarget(target) << ", " | 914 << GLES2Util::GetStringGetTexParamTarget(target) << ", " |
| 915 << GLES2Util::GetStringTextureParameter(pname) << ", " | 915 << GLES2Util::GetStringTextureParameter(pname) << ", " |
| 916 << static_cast<const void*>(params) << ")"); | 916 << static_cast<const void*>(params) << ")"); |
| 917 TRACE_EVENT0("gpu", "GLES2Implementation::GetTexParameteriv"); | 917 TRACE_EVENT0("gpu", "GLES2Implementation::GetTexParameteriv"); |
| 918 if (GetTexParameterivHelper(target, pname, params)) { | 918 if (GetTexParameterivHelper(target, pname, params)) { |
| 919 return; | 919 return; |
| 920 } | 920 } |
| 921 typedef cmds::GetTexParameteriv::Result Result; | 921 typedef cmds::GetTexParameteriv::Result Result; |
| 922 Result* result = GetResultAs<Result*>(); | 922 Result* result = GetResultAs<Result*>(); |
| 923 if (!result) { | 923 if (!result) { |
| 924 return; | 924 return; |
| 925 } | 925 } |
| 926 result->SetNumResults(0); | 926 result->SetNumResults(0); |
| 927 helper_->GetTexParameteriv( | 927 helper_->GetTexParameteriv( |
| 928 target, pname, GetResultShmId(), GetResultShmOffset()); | 928 target, pname, GetResultShmId(), GetResultShmOffset()); |
| 929 WaitForCmd(); | 929 WaitForCmd(); |
| 930 result->CopyResult(params); | 930 result->CopyResult(params); |
| 931 GPU_CLIENT_LOG_CODE_BLOCK({ | 931 GPU_CLIENT_LOG_CODE_BLOCK({ |
| 932 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 932 for (int32_t i = 0; i < result->GetNumResults(); ++i) { |
| 933 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 933 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
| 934 } | 934 } |
| 935 }); | 935 }); |
| 936 CheckGLError(); | 936 CheckGLError(); |
| 937 } | 937 } |
| 938 void GLES2Implementation::Hint(GLenum target, GLenum mode) { | 938 void GLES2Implementation::Hint(GLenum target, GLenum mode) { |
| 939 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 939 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 940 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glHint(" | 940 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glHint(" |
| 941 << GLES2Util::GetStringHintTarget(target) << ", " | 941 << GLES2Util::GetStringHintTarget(target) << ", " |
| 942 << GLES2Util::GetStringHintMode(mode) << ")"); | 942 << GLES2Util::GetStringHintMode(mode) << ")"); |
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2101 bounds_width, | 2101 bounds_width, |
| 2102 bounds_height, | 2102 bounds_height, |
| 2103 uv_x, | 2103 uv_x, |
| 2104 uv_y, | 2104 uv_y, |
| 2105 uv_width, | 2105 uv_width, |
| 2106 uv_height); | 2106 uv_height); |
| 2107 CheckGLError(); | 2107 CheckGLError(); |
| 2108 } | 2108 } |
| 2109 | 2109 |
| 2110 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 2110 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
| OLD | NEW |