OLD | NEW |
1 // Copyright (c) 2012 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 <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
10 #include <GLES2/gl2ext.h> | 10 #include <GLES2/gl2ext.h> |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 } | 750 } |
751 | 751 |
752 void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height) { | 752 void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height) { |
753 glGetInterfacePPAPI()->Viewport( | 753 glGetInterfacePPAPI()->Viewport( |
754 glGetCurrentContextPPAPI(), x, y, width, height); | 754 glGetCurrentContextPPAPI(), x, y, width, height); |
755 } | 755 } |
756 | 756 |
757 void GL_APIENTRY glBlitFramebufferEXT( | 757 void GL_APIENTRY glBlitFramebufferEXT( |
758 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, | 758 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, |
759 GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { | 759 GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { |
760 const struct PPB_OpenGLES2FramebufferBlit_Dev* ext = | 760 const struct PPB_OpenGLES2FramebufferBlit* ext = |
761 glGetFramebufferBlitInterfacePPAPI(); | 761 glGetFramebufferBlitInterfacePPAPI(); |
762 if (ext) | 762 if (ext) |
763 ext->BlitFramebufferEXT( | 763 ext->BlitFramebufferEXT( |
764 glGetCurrentContextPPAPI(), srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, | 764 glGetCurrentContextPPAPI(), srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, |
765 dstX1, dstY1, mask, filter); | 765 dstX1, dstY1, mask, filter); |
766 } | 766 } |
767 | 767 |
768 void GL_APIENTRY glRenderbufferStorageMultisampleEXT( | 768 void GL_APIENTRY glRenderbufferStorageMultisampleEXT( |
769 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, | 769 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, |
770 GLsizei height) { | 770 GLsizei height) { |
771 const struct PPB_OpenGLES2FramebufferMultisample_Dev* ext = | 771 const struct PPB_OpenGLES2FramebufferMultisample* ext = |
772 glGetFramebufferMultisampleInterfacePPAPI(); | 772 glGetFramebufferMultisampleInterfacePPAPI(); |
773 if (ext) | 773 if (ext) |
774 ext->RenderbufferStorageMultisampleEXT( | 774 ext->RenderbufferStorageMultisampleEXT( |
775 glGetCurrentContextPPAPI(), target, samples, internalformat, width, | 775 glGetCurrentContextPPAPI(), target, samples, internalformat, width, |
776 height); | 776 height); |
777 } | 777 } |
778 | 778 |
779 void GL_APIENTRY glGenQueriesEXT(GLsizei n, GLuint* queries) { | 779 void GL_APIENTRY glGenQueriesEXT(GLsizei n, GLuint* queries) { |
780 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); | 780 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); |
781 if (ext) | 781 if (ext) |
782 ext->GenQueriesEXT(glGetCurrentContextPPAPI(), n, queries); | 782 ext->GenQueriesEXT(glGetCurrentContextPPAPI(), n, queries); |
783 } | 783 } |
784 | 784 |
785 void GL_APIENTRY glDeleteQueriesEXT(GLsizei n, const GLuint* queries) { | 785 void GL_APIENTRY glDeleteQueriesEXT(GLsizei n, const GLuint* queries) { |
786 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); | 786 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); |
787 if (ext) | 787 if (ext) |
788 ext->DeleteQueriesEXT(glGetCurrentContextPPAPI(), n, queries); | 788 ext->DeleteQueriesEXT(glGetCurrentContextPPAPI(), n, queries); |
789 } | 789 } |
790 | 790 |
791 GLboolean GL_APIENTRY glIsQueryEXT(GLuint id) { | 791 GLboolean GL_APIENTRY glIsQueryEXT(GLuint id) { |
792 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); | 792 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); |
793 if (ext) | 793 if (ext) |
794 return ext->IsQueryEXT(glGetCurrentContextPPAPI(), id); | 794 return ext->IsQueryEXT(glGetCurrentContextPPAPI(), id); |
795 return 0; | 795 return 0; |
796 } | 796 } |
797 | 797 |
798 void GL_APIENTRY glBeginQueryEXT(GLenum target, GLuint id) { | 798 void GL_APIENTRY glBeginQueryEXT(GLenum target, GLuint id) { |
799 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); | 799 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); |
800 if (ext) | 800 if (ext) |
801 ext->BeginQueryEXT(glGetCurrentContextPPAPI(), target, id); | 801 ext->BeginQueryEXT(glGetCurrentContextPPAPI(), target, id); |
802 } | 802 } |
803 | 803 |
804 void GL_APIENTRY glEndQueryEXT(GLenum target) { | 804 void GL_APIENTRY glEndQueryEXT(GLenum target) { |
805 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); | 805 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); |
806 if (ext) | 806 if (ext) |
807 ext->EndQueryEXT(glGetCurrentContextPPAPI(), target); | 807 ext->EndQueryEXT(glGetCurrentContextPPAPI(), target); |
808 } | 808 } |
809 | 809 |
810 void GL_APIENTRY glGetQueryivEXT(GLenum target, GLenum pname, GLint* params) { | 810 void GL_APIENTRY glGetQueryivEXT(GLenum target, GLenum pname, GLint* params) { |
811 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); | 811 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); |
812 if (ext) | 812 if (ext) |
813 ext->GetQueryivEXT(glGetCurrentContextPPAPI(), target, pname, params); | 813 ext->GetQueryivEXT(glGetCurrentContextPPAPI(), target, pname, params); |
814 } | 814 } |
815 | 815 |
816 void GL_APIENTRY glGetQueryObjectuivEXT( | 816 void GL_APIENTRY glGetQueryObjectuivEXT( |
817 GLuint id, GLenum pname, GLuint* params) { | 817 GLuint id, GLenum pname, GLuint* params) { |
818 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); | 818 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); |
819 if (ext) | 819 if (ext) |
820 ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params); | 820 ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params); |
821 } | 821 } |
822 | 822 |
823 GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { | 823 GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { |
824 const struct PPB_OpenGLES2ChromiumEnableFeature_Dev* ext = | 824 const struct PPB_OpenGLES2ChromiumEnableFeature* ext = |
825 glGetChromiumEnableFeatureInterfacePPAPI(); | 825 glGetChromiumEnableFeatureInterfacePPAPI(); |
826 if (ext) | 826 if (ext) |
827 return ext->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature); | 827 return ext->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature); |
828 return 0; | 828 return 0; |
829 } | 829 } |
830 | 830 |
831 void* GL_APIENTRY glMapBufferSubDataCHROMIUM( | 831 void* GL_APIENTRY glMapBufferSubDataCHROMIUM( |
832 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) { | 832 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) { |
833 const struct PPB_OpenGLES2ChromiumMapSub_Dev* ext = | 833 const struct PPB_OpenGLES2ChromiumMapSub* ext = |
834 glGetChromiumMapSubInterfacePPAPI(); | 834 glGetChromiumMapSubInterfacePPAPI(); |
835 if (ext) | 835 if (ext) |
836 return ext->MapBufferSubDataCHROMIUM( | 836 return ext->MapBufferSubDataCHROMIUM( |
837 glGetCurrentContextPPAPI(), target, offset, size, access); | 837 glGetCurrentContextPPAPI(), target, offset, size, access); |
838 return 0; | 838 return 0; |
839 } | 839 } |
840 | 840 |
841 void GL_APIENTRY glUnmapBufferSubDataCHROMIUM(const void* mem) { | 841 void GL_APIENTRY glUnmapBufferSubDataCHROMIUM(const void* mem) { |
842 const struct PPB_OpenGLES2ChromiumMapSub_Dev* ext = | 842 const struct PPB_OpenGLES2ChromiumMapSub* ext = |
843 glGetChromiumMapSubInterfacePPAPI(); | 843 glGetChromiumMapSubInterfacePPAPI(); |
844 if (ext) | 844 if (ext) |
845 ext->UnmapBufferSubDataCHROMIUM(glGetCurrentContextPPAPI(), mem); | 845 ext->UnmapBufferSubDataCHROMIUM(glGetCurrentContextPPAPI(), mem); |
846 } | 846 } |
847 | 847 |
848 void* GL_APIENTRY glMapTexSubImage2DCHROMIUM( | 848 void* GL_APIENTRY glMapTexSubImage2DCHROMIUM( |
849 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, | 849 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, |
850 GLsizei height, GLenum format, GLenum type, GLenum access) { | 850 GLsizei height, GLenum format, GLenum type, GLenum access) { |
851 const struct PPB_OpenGLES2ChromiumMapSub_Dev* ext = | 851 const struct PPB_OpenGLES2ChromiumMapSub* ext = |
852 glGetChromiumMapSubInterfacePPAPI(); | 852 glGetChromiumMapSubInterfacePPAPI(); |
853 if (ext) | 853 if (ext) |
854 return ext->MapTexSubImage2DCHROMIUM( | 854 return ext->MapTexSubImage2DCHROMIUM( |
855 glGetCurrentContextPPAPI(), target, level, xoffset, yoffset, width, | 855 glGetCurrentContextPPAPI(), target, level, xoffset, yoffset, width, |
856 height, format, type, access); | 856 height, format, type, access); |
857 return 0; | 857 return 0; |
858 } | 858 } |
859 | 859 |
860 void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM(const void* mem) { | 860 void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM(const void* mem) { |
861 const struct PPB_OpenGLES2ChromiumMapSub_Dev* ext = | 861 const struct PPB_OpenGLES2ChromiumMapSub* ext = |
862 glGetChromiumMapSubInterfacePPAPI(); | 862 glGetChromiumMapSubInterfacePPAPI(); |
863 if (ext) | 863 if (ext) |
864 ext->UnmapTexSubImage2DCHROMIUM(glGetCurrentContextPPAPI(), mem); | 864 ext->UnmapTexSubImage2DCHROMIUM(glGetCurrentContextPPAPI(), mem); |
865 } | 865 } |
866 | 866 |
867 void GL_APIENTRY glDrawArraysInstancedANGLE( | 867 void GL_APIENTRY glDrawArraysInstancedANGLE( |
868 GLenum mode, GLint first, GLsizei count, GLsizei primcount) { | 868 GLenum mode, GLint first, GLsizei count, GLsizei primcount) { |
869 const struct PPB_OpenGLES2InstancedArrays_Dev* ext = | 869 const struct PPB_OpenGLES2InstancedArrays* ext = |
870 glGetInstancedArraysInterfacePPAPI(); | 870 glGetInstancedArraysInterfacePPAPI(); |
871 if (ext) | 871 if (ext) |
872 ext->DrawArraysInstancedANGLE( | 872 ext->DrawArraysInstancedANGLE( |
873 glGetCurrentContextPPAPI(), mode, first, count, primcount); | 873 glGetCurrentContextPPAPI(), mode, first, count, primcount); |
874 } | 874 } |
875 | 875 |
876 void GL_APIENTRY glDrawElementsInstancedANGLE( | 876 void GL_APIENTRY glDrawElementsInstancedANGLE( |
877 GLenum mode, GLsizei count, GLenum type, const void* indices, | 877 GLenum mode, GLsizei count, GLenum type, const void* indices, |
878 GLsizei primcount) { | 878 GLsizei primcount) { |
879 const struct PPB_OpenGLES2InstancedArrays_Dev* ext = | 879 const struct PPB_OpenGLES2InstancedArrays* ext = |
880 glGetInstancedArraysInterfacePPAPI(); | 880 glGetInstancedArraysInterfacePPAPI(); |
881 if (ext) | 881 if (ext) |
882 ext->DrawElementsInstancedANGLE( | 882 ext->DrawElementsInstancedANGLE( |
883 glGetCurrentContextPPAPI(), mode, count, type, indices, primcount); | 883 glGetCurrentContextPPAPI(), mode, count, type, indices, primcount); |
884 } | 884 } |
885 | 885 |
886 void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) { | 886 void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) { |
887 const struct PPB_OpenGLES2InstancedArrays_Dev* ext = | 887 const struct PPB_OpenGLES2InstancedArrays* ext = |
888 glGetInstancedArraysInterfacePPAPI(); | 888 glGetInstancedArraysInterfacePPAPI(); |
889 if (ext) | 889 if (ext) |
890 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); | 890 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); |
891 } | 891 } |
892 | 892 |
OLD | NEW |