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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 ext->GetQueryivEXT(glGetCurrentContextPPAPI(), target, pname, params); | 960 ext->GetQueryivEXT(glGetCurrentContextPPAPI(), target, pname, params); |
961 } | 961 } |
962 | 962 |
963 void GL_APIENTRY | 963 void GL_APIENTRY |
964 glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) { | 964 glGetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) { |
965 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); | 965 const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); |
966 if (ext) | 966 if (ext) |
967 ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params); | 967 ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params); |
968 } | 968 } |
969 | 969 |
| 970 void GL_APIENTRY glGenVertexArraysOES(GLsizei n, GLuint* arrays) { |
| 971 const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI(); |
| 972 if (ext) |
| 973 ext->GenVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays); |
| 974 } |
| 975 |
| 976 void GL_APIENTRY glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays) { |
| 977 const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI(); |
| 978 if (ext) |
| 979 ext->DeleteVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays); |
| 980 } |
| 981 |
| 982 GLboolean GL_APIENTRY glIsVertexArrayOES(GLuint array) { |
| 983 const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI(); |
| 984 if (ext) |
| 985 return ext->IsVertexArrayOES(glGetCurrentContextPPAPI(), array); |
| 986 return 0; |
| 987 } |
| 988 |
| 989 void GL_APIENTRY glBindVertexArrayOES(GLuint array) { |
| 990 const struct PPB_OpenGLES2VertexArray* ext = glGetVertexArrayInterfacePPAPI(); |
| 991 if (ext) |
| 992 ext->BindVertexArrayOES(glGetCurrentContextPPAPI(), array); |
| 993 } |
| 994 |
970 GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { | 995 GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { |
971 const struct PPB_OpenGLES2ChromiumEnableFeature* ext = | 996 const struct PPB_OpenGLES2ChromiumEnableFeature* ext = |
972 glGetChromiumEnableFeatureInterfacePPAPI(); | 997 glGetChromiumEnableFeatureInterfacePPAPI(); |
973 if (ext) | 998 if (ext) |
974 return ext->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature); | 999 return ext->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature); |
975 return 0; | 1000 return 0; |
976 } | 1001 } |
977 | 1002 |
978 void* GL_APIENTRY glMapBufferSubDataCHROMIUM(GLuint target, | 1003 void* GL_APIENTRY glMapBufferSubDataCHROMIUM(GLuint target, |
979 GLintptr offset, | 1004 GLintptr offset, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 if (ext) | 1080 if (ext) |
1056 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); | 1081 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); |
1057 } | 1082 } |
1058 | 1083 |
1059 void GL_APIENTRY glDrawBuffersEXT(GLsizei count, const GLenum* bufs) { | 1084 void GL_APIENTRY glDrawBuffersEXT(GLsizei count, const GLenum* bufs) { |
1060 const struct PPB_OpenGLES2DrawBuffers_Dev* ext = | 1085 const struct PPB_OpenGLES2DrawBuffers_Dev* ext = |
1061 glGetDrawBuffersInterfacePPAPI(); | 1086 glGetDrawBuffersInterfacePPAPI(); |
1062 if (ext) | 1087 if (ext) |
1063 ext->DrawBuffersEXT(glGetCurrentContextPPAPI(), count, bufs); | 1088 ext->DrawBuffersEXT(glGetCurrentContextPPAPI(), count, bufs); |
1064 } | 1089 } |
OLD | NEW |