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 "ppapi/lib/gl/gles2/gl2ext_ppapi.h" | 10 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, | 768 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, |
769 GLsizei height) { | 769 GLsizei height) { |
770 const struct PPB_OpenGLES2FramebufferMultisample_Dev* ext = | 770 const struct PPB_OpenGLES2FramebufferMultisample_Dev* ext = |
771 glGetFramebufferMultisampleInterfacePPAPI(); | 771 glGetFramebufferMultisampleInterfacePPAPI(); |
772 if (ext) | 772 if (ext) |
773 ext->RenderbufferStorageMultisampleEXT( | 773 ext->RenderbufferStorageMultisampleEXT( |
774 glGetCurrentContextPPAPI(), target, samples, internalformat, width, | 774 glGetCurrentContextPPAPI(), target, samples, internalformat, width, |
775 height); | 775 height); |
776 } | 776 } |
777 | 777 |
| 778 void GL_APIENTRY glGenQueriesEXT(GLsizei n, GLuint* queries) { |
| 779 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); |
| 780 if (ext) |
| 781 ext->GenQueriesEXT(glGetCurrentContextPPAPI(), n, queries); |
| 782 } |
| 783 |
| 784 void GL_APIENTRY glDeleteQueriesEXT(GLsizei n, const GLuint* queries) { |
| 785 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); |
| 786 if (ext) |
| 787 ext->DeleteQueriesEXT(glGetCurrentContextPPAPI(), n, queries); |
| 788 } |
| 789 |
| 790 GLboolean GL_APIENTRY glIsQueryEXT(GLuint id) { |
| 791 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); |
| 792 if (ext) |
| 793 return ext->IsQueryEXT(glGetCurrentContextPPAPI(), id); |
| 794 return 0; |
| 795 } |
| 796 |
| 797 void GL_APIENTRY glBeginQueryEXT(GLenum target, GLuint id) { |
| 798 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); |
| 799 if (ext) |
| 800 ext->BeginQueryEXT(glGetCurrentContextPPAPI(), target, id); |
| 801 } |
| 802 |
| 803 void GL_APIENTRY glEndQueryEXT(GLenum target) { |
| 804 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); |
| 805 if (ext) |
| 806 ext->EndQueryEXT(glGetCurrentContextPPAPI(), target); |
| 807 } |
| 808 |
| 809 void GL_APIENTRY glGetQueryivEXT(GLenum target, GLenum pname, GLint* params) { |
| 810 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); |
| 811 if (ext) |
| 812 ext->GetQueryivEXT(glGetCurrentContextPPAPI(), target, pname, params); |
| 813 } |
| 814 |
| 815 void GL_APIENTRY glGetQueryObjectuivEXT( |
| 816 GLuint id, GLenum pname, GLuint* params) { |
| 817 const struct PPB_OpenGLES2Query_Dev* ext = glGetQueryInterfacePPAPI(); |
| 818 if (ext) |
| 819 ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params); |
| 820 } |
| 821 |
778 GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { | 822 GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { |
779 const struct PPB_OpenGLES2ChromiumEnableFeature_Dev* ext = | 823 const struct PPB_OpenGLES2ChromiumEnableFeature_Dev* ext = |
780 glGetChromiumEnableFeatureInterfacePPAPI(); | 824 glGetChromiumEnableFeatureInterfacePPAPI(); |
781 if (ext) | 825 if (ext) |
782 return ext->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature); | 826 return ext->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature); |
783 return 0; | 827 return 0; |
784 } | 828 } |
785 | 829 |
786 void* GL_APIENTRY glMapBufferSubDataCHROMIUM( | 830 void* GL_APIENTRY glMapBufferSubDataCHROMIUM( |
787 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) { | 831 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 glGetCurrentContextPPAPI(), mode, count, type, indices, primcount); | 882 glGetCurrentContextPPAPI(), mode, count, type, indices, primcount); |
839 } | 883 } |
840 | 884 |
841 void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) { | 885 void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) { |
842 const struct PPB_OpenGLES2InstancedArrays_Dev* ext = | 886 const struct PPB_OpenGLES2InstancedArrays_Dev* ext = |
843 glGetInstancedArraysInterfacePPAPI(); | 887 glGetInstancedArraysInterfacePPAPI(); |
844 if (ext) | 888 if (ext) |
845 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); | 889 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); |
846 } | 890 } |
847 | 891 |
OLD | NEW |