| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ppapi/shared_impl/ppb_opengles2_shared.h" | 9 #include "ppapi/shared_impl/ppb_opengles2_shared.h" |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 GetGLES( | 736 GetGLES( |
| 737 context_id)->VertexAttribPointer( | 737 context_id)->VertexAttribPointer( |
| 738 indx, size, type, normalized, stride, ptr); | 738 indx, size, type, normalized, stride, ptr); |
| 739 } | 739 } |
| 740 | 740 |
| 741 void Viewport( | 741 void Viewport( |
| 742 PP_Resource context_id, GLint x, GLint y, GLsizei width, GLsizei height) { | 742 PP_Resource context_id, GLint x, GLint y, GLsizei width, GLsizei height) { |
| 743 GetGLES(context_id)->Viewport(x, y, width, height); | 743 GetGLES(context_id)->Viewport(x, y, width, height); |
| 744 } | 744 } |
| 745 | 745 |
| 746 | 746 void BlitFramebufferEXT( |
| 747 const struct PPB_OpenGLES2 ppb_opengles2 = { | 747 PP_Resource context_id, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, |
| 748 &ActiveTexture, | 748 GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, |
| 749 &AttachShader, | 749 GLenum filter) { |
| 750 &BindAttribLocation, | 750 GetGLES( |
| 751 &BindBuffer, | 751 context_id)->BlitFramebufferEXT( |
| 752 &BindFramebuffer, | 752 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, |
| 753 &BindRenderbuffer, | 753 filter); |
| 754 &BindTexture, | 754 } |
| 755 &BlendColor, | 755 |
| 756 &BlendEquation, | 756 void RenderbufferStorageMultisampleEXT( |
| 757 &BlendEquationSeparate, | 757 PP_Resource context_id, GLenum target, GLsizei samples, |
| 758 &BlendFunc, | 758 GLenum internalformat, GLsizei width, GLsizei height) { |
| 759 &BlendFuncSeparate, | 759 GetGLES( |
| 760 &BufferData, | 760 context_id)->RenderbufferStorageMultisampleEXT( |
| 761 &BufferSubData, | 761 target, samples, internalformat, width, height); |
| 762 &CheckFramebufferStatus, | 762 } |
| 763 &Clear, | 763 |
| 764 &ClearColor, | 764 GLboolean EnableFeatureCHROMIUM(PP_Resource context_id, const char* feature) { |
| 765 &ClearDepthf, | 765 return GetGLES(context_id)->EnableFeatureCHROMIUM(feature); |
| 766 &ClearStencil, | 766 } |
| 767 &ColorMask, | 767 |
| 768 &CompileShader, | 768 void* MapBufferSubDataCHROMIUM( |
| 769 &CompressedTexImage2D, | 769 PP_Resource context_id, GLuint target, GLintptr offset, GLsizeiptr size, |
| 770 &CompressedTexSubImage2D, | 770 GLenum access) { |
| 771 &CopyTexImage2D, | 771 return GetGLES( |
| 772 &CopyTexSubImage2D, | 772 context_id)->MapBufferSubDataCHROMIUM(target, offset, size, access); |
| 773 &CreateProgram, | 773 } |
| 774 &CreateShader, | 774 |
| 775 &CullFace, | 775 void UnmapBufferSubDataCHROMIUM(PP_Resource context_id, const void* mem) { |
| 776 &DeleteBuffers, | 776 GetGLES(context_id)->UnmapBufferSubDataCHROMIUM(mem); |
| 777 &DeleteFramebuffers, | 777 } |
| 778 &DeleteProgram, | 778 |
| 779 &DeleteRenderbuffers, | 779 void* MapTexSubImage2DCHROMIUM( |
| 780 &DeleteShader, | 780 PP_Resource context_id, GLenum target, GLint level, GLint xoffset, |
| 781 &DeleteTextures, | 781 GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, |
| 782 &DepthFunc, | 782 GLenum access) { |
| 783 &DepthMask, | 783 return GetGLES( |
| 784 &DepthRangef, | 784 context_id)->MapTexSubImage2DCHROMIUM( |
| 785 &DetachShader, | 785 target, level, xoffset, yoffset, width, height, format, type, |
| 786 &Disable, | 786 access); |
| 787 &DisableVertexAttribArray, | 787 } |
| 788 &DrawArrays, | 788 |
| 789 &DrawElements, | 789 void UnmapTexSubImage2DCHROMIUM(PP_Resource context_id, const void* mem) { |
| 790 &Enable, | 790 GetGLES(context_id)->UnmapTexSubImage2DCHROMIUM(mem); |
| 791 &EnableVertexAttribArray, | 791 } |
| 792 &Finish, | 792 |
| 793 &Flush, | 793 void DrawArraysInstancedANGLE( |
| 794 &FramebufferRenderbuffer, | 794 PP_Resource context_id, GLenum mode, GLint first, GLsizei count, |
| 795 &FramebufferTexture2D, | 795 GLsizei primcount) { |
| 796 &FrontFace, | 796 GetGLES(context_id)->DrawArraysInstancedANGLE(mode, first, count, primcount); |
| 797 &GenBuffers, | 797 } |
| 798 &GenerateMipmap, | 798 |
| 799 &GenFramebuffers, | 799 void DrawElementsInstancedANGLE( |
| 800 &GenRenderbuffers, | 800 PP_Resource context_id, GLenum mode, GLsizei count, GLenum type, |
| 801 &GenTextures, | 801 const void* indices, GLsizei primcount) { |
| 802 &GetActiveAttrib, | 802 GetGLES( |
| 803 &GetActiveUniform, | 803 context_id)->DrawElementsInstancedANGLE( |
| 804 &GetAttachedShaders, | 804 mode, count, type, indices, primcount); |
| 805 &GetAttribLocation, | 805 } |
| 806 &GetBooleanv, | 806 |
| 807 &GetBufferParameteriv, | 807 void VertexAttribDivisorANGLE( |
| 808 &GetError, | 808 PP_Resource context_id, GLuint index, GLuint divisor) { |
| 809 &GetFloatv, | 809 GetGLES(context_id)->VertexAttribDivisorANGLE(index, divisor); |
| 810 &GetFramebufferAttachmentParameteriv, | 810 } |
| 811 &GetIntegerv, | |
| 812 &GetProgramiv, | |
| 813 &GetProgramInfoLog, | |
| 814 &GetRenderbufferParameteriv, | |
| 815 &GetShaderiv, | |
| 816 &GetShaderInfoLog, | |
| 817 &GetShaderPrecisionFormat, | |
| 818 &GetShaderSource, | |
| 819 &GetString, | |
| 820 &GetTexParameterfv, | |
| 821 &GetTexParameteriv, | |
| 822 &GetUniformfv, | |
| 823 &GetUniformiv, | |
| 824 &GetUniformLocation, | |
| 825 &GetVertexAttribfv, | |
| 826 &GetVertexAttribiv, | |
| 827 &GetVertexAttribPointerv, | |
| 828 &Hint, | |
| 829 &IsBuffer, | |
| 830 &IsEnabled, | |
| 831 &IsFramebuffer, | |
| 832 &IsProgram, | |
| 833 &IsRenderbuffer, | |
| 834 &IsShader, | |
| 835 &IsTexture, | |
| 836 &LineWidth, | |
| 837 &LinkProgram, | |
| 838 &PixelStorei, | |
| 839 &PolygonOffset, | |
| 840 &ReadPixels, | |
| 841 &ReleaseShaderCompiler, | |
| 842 &RenderbufferStorage, | |
| 843 &SampleCoverage, | |
| 844 &Scissor, | |
| 845 &ShaderBinary, | |
| 846 &ShaderSource, | |
| 847 &StencilFunc, | |
| 848 &StencilFuncSeparate, | |
| 849 &StencilMask, | |
| 850 &StencilMaskSeparate, | |
| 851 &StencilOp, | |
| 852 &StencilOpSeparate, | |
| 853 &TexImage2D, | |
| 854 &TexParameterf, | |
| 855 &TexParameterfv, | |
| 856 &TexParameteri, | |
| 857 &TexParameteriv, | |
| 858 &TexSubImage2D, | |
| 859 &Uniform1f, | |
| 860 &Uniform1fv, | |
| 861 &Uniform1i, | |
| 862 &Uniform1iv, | |
| 863 &Uniform2f, | |
| 864 &Uniform2fv, | |
| 865 &Uniform2i, | |
| 866 &Uniform2iv, | |
| 867 &Uniform3f, | |
| 868 &Uniform3fv, | |
| 869 &Uniform3i, | |
| 870 &Uniform3iv, | |
| 871 &Uniform4f, | |
| 872 &Uniform4fv, | |
| 873 &Uniform4i, | |
| 874 &Uniform4iv, | |
| 875 &UniformMatrix2fv, | |
| 876 &UniformMatrix3fv, | |
| 877 &UniformMatrix4fv, | |
| 878 &UseProgram, | |
| 879 &ValidateProgram, | |
| 880 &VertexAttrib1f, | |
| 881 &VertexAttrib1fv, | |
| 882 &VertexAttrib2f, | |
| 883 &VertexAttrib2fv, | |
| 884 &VertexAttrib3f, | |
| 885 &VertexAttrib3fv, | |
| 886 &VertexAttrib4f, | |
| 887 &VertexAttrib4fv, | |
| 888 &VertexAttribPointer, | |
| 889 &Viewport | |
| 890 }; | |
| 891 | 811 |
| 892 } // namespace | 812 } // namespace |
| 893 | |
| 894 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { | 813 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { |
| 895 return &ppb_opengles2; | 814 static const struct PPB_OpenGLES2 ppb_opengles2 = { |
| 896 } | 815 &ActiveTexture, |
| 897 | 816 &AttachShader, |
| 817 &BindAttribLocation, |
| 818 &BindBuffer, |
| 819 &BindFramebuffer, |
| 820 &BindRenderbuffer, |
| 821 &BindTexture, |
| 822 &BlendColor, |
| 823 &BlendEquation, |
| 824 &BlendEquationSeparate, |
| 825 &BlendFunc, |
| 826 &BlendFuncSeparate, |
| 827 &BufferData, |
| 828 &BufferSubData, |
| 829 &CheckFramebufferStatus, |
| 830 &Clear, |
| 831 &ClearColor, |
| 832 &ClearDepthf, |
| 833 &ClearStencil, |
| 834 &ColorMask, |
| 835 &CompileShader, |
| 836 &CompressedTexImage2D, |
| 837 &CompressedTexSubImage2D, |
| 838 &CopyTexImage2D, |
| 839 &CopyTexSubImage2D, |
| 840 &CreateProgram, |
| 841 &CreateShader, |
| 842 &CullFace, |
| 843 &DeleteBuffers, |
| 844 &DeleteFramebuffers, |
| 845 &DeleteProgram, |
| 846 &DeleteRenderbuffers, |
| 847 &DeleteShader, |
| 848 &DeleteTextures, |
| 849 &DepthFunc, |
| 850 &DepthMask, |
| 851 &DepthRangef, |
| 852 &DetachShader, |
| 853 &Disable, |
| 854 &DisableVertexAttribArray, |
| 855 &DrawArrays, |
| 856 &DrawElements, |
| 857 &Enable, |
| 858 &EnableVertexAttribArray, |
| 859 &Finish, |
| 860 &Flush, |
| 861 &FramebufferRenderbuffer, |
| 862 &FramebufferTexture2D, |
| 863 &FrontFace, |
| 864 &GenBuffers, |
| 865 &GenerateMipmap, |
| 866 &GenFramebuffers, |
| 867 &GenRenderbuffers, |
| 868 &GenTextures, |
| 869 &GetActiveAttrib, |
| 870 &GetActiveUniform, |
| 871 &GetAttachedShaders, |
| 872 &GetAttribLocation, |
| 873 &GetBooleanv, |
| 874 &GetBufferParameteriv, |
| 875 &GetError, |
| 876 &GetFloatv, |
| 877 &GetFramebufferAttachmentParameteriv, |
| 878 &GetIntegerv, |
| 879 &GetProgramiv, |
| 880 &GetProgramInfoLog, |
| 881 &GetRenderbufferParameteriv, |
| 882 &GetShaderiv, |
| 883 &GetShaderInfoLog, |
| 884 &GetShaderPrecisionFormat, |
| 885 &GetShaderSource, |
| 886 &GetString, |
| 887 &GetTexParameterfv, |
| 888 &GetTexParameteriv, |
| 889 &GetUniformfv, |
| 890 &GetUniformiv, |
| 891 &GetUniformLocation, |
| 892 &GetVertexAttribfv, |
| 893 &GetVertexAttribiv, |
| 894 &GetVertexAttribPointerv, |
| 895 &Hint, |
| 896 &IsBuffer, |
| 897 &IsEnabled, |
| 898 &IsFramebuffer, |
| 899 &IsProgram, |
| 900 &IsRenderbuffer, |
| 901 &IsShader, |
| 902 &IsTexture, |
| 903 &LineWidth, |
| 904 &LinkProgram, |
| 905 &PixelStorei, |
| 906 &PolygonOffset, |
| 907 &ReadPixels, |
| 908 &ReleaseShaderCompiler, |
| 909 &RenderbufferStorage, |
| 910 &SampleCoverage, |
| 911 &Scissor, |
| 912 &ShaderBinary, |
| 913 &ShaderSource, |
| 914 &StencilFunc, |
| 915 &StencilFuncSeparate, |
| 916 &StencilMask, |
| 917 &StencilMaskSeparate, |
| 918 &StencilOp, |
| 919 &StencilOpSeparate, |
| 920 &TexImage2D, |
| 921 &TexParameterf, |
| 922 &TexParameterfv, |
| 923 &TexParameteri, |
| 924 &TexParameteriv, |
| 925 &TexSubImage2D, |
| 926 &Uniform1f, |
| 927 &Uniform1fv, |
| 928 &Uniform1i, |
| 929 &Uniform1iv, |
| 930 &Uniform2f, |
| 931 &Uniform2fv, |
| 932 &Uniform2i, |
| 933 &Uniform2iv, |
| 934 &Uniform3f, |
| 935 &Uniform3fv, |
| 936 &Uniform3i, |
| 937 &Uniform3iv, |
| 938 &Uniform4f, |
| 939 &Uniform4fv, |
| 940 &Uniform4i, |
| 941 &Uniform4iv, |
| 942 &UniformMatrix2fv, |
| 943 &UniformMatrix3fv, |
| 944 &UniformMatrix4fv, |
| 945 &UseProgram, |
| 946 &ValidateProgram, |
| 947 &VertexAttrib1f, |
| 948 &VertexAttrib1fv, |
| 949 &VertexAttrib2f, |
| 950 &VertexAttrib2fv, |
| 951 &VertexAttrib3f, |
| 952 &VertexAttrib3fv, |
| 953 &VertexAttrib4f, |
| 954 &VertexAttrib4fv, |
| 955 &VertexAttribPointer, |
| 956 &Viewport |
| 957 }; |
| 958 return &ppb_opengles2; |
| 959 } |
| 960 const PPB_OpenGLES2InstancedArrays_Dev* |
| 961 PPB_OpenGLES2_Shared::GetInstancedArraysInterface() { |
| 962 static const struct PPB_OpenGLES2InstancedArrays_Dev ppb_opengles2 = { |
| 963 &DrawArraysInstancedANGLE, |
| 964 &DrawElementsInstancedANGLE, |
| 965 &VertexAttribDivisorANGLE |
| 966 }; |
| 967 return &ppb_opengles2; |
| 968 } |
| 969 const PPB_OpenGLES2FramebufferBlit_Dev* |
| 970 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface() { |
| 971 static const struct PPB_OpenGLES2FramebufferBlit_Dev ppb_opengles2 = { |
| 972 &BlitFramebufferEXT |
| 973 }; |
| 974 return &ppb_opengles2; |
| 975 } |
| 976 const PPB_OpenGLES2FramebufferMultisample_Dev* |
| 977 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface() { |
| 978 static const struct PPB_OpenGLES2FramebufferMultisample_Dev ppb_opengles2 = { |
| 979 &RenderbufferStorageMultisampleEXT |
| 980 }; |
| 981 return &ppb_opengles2; |
| 982 } |
| 983 const PPB_OpenGLES2ChromiumEnableFeature_Dev* |
| 984 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface() { |
| 985 static const struct PPB_OpenGLES2ChromiumEnableFeature_Dev ppb_opengles2 = { |
| 986 &EnableFeatureCHROMIUM |
| 987 }; |
| 988 return &ppb_opengles2; |
| 989 } |
| 990 const PPB_OpenGLES2ChromiumMapSub_Dev* |
| 991 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface() { |
| 992 static const struct PPB_OpenGLES2ChromiumMapSub_Dev ppb_opengles2 = { |
| 993 &MapBufferSubDataCHROMIUM, |
| 994 &UnmapBufferSubDataCHROMIUM, |
| 995 &MapTexSubImage2DCHROMIUM, |
| 996 &UnmapTexSubImage2DCHROMIUM |
| 997 }; |
| 998 return &ppb_opengles2; |
| 999 } |
| 898 } // namespace ppapi | 1000 } // namespace ppapi |
| OLD | NEW |