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_OpenGLES2VertexArrayObject* ext = |
| 972 glGetVertexArrayObjectInterfacePPAPI(); |
| 973 if (ext) |
| 974 ext->GenVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays); |
| 975 } |
| 976 |
| 977 void GL_APIENTRY glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays) { |
| 978 const struct PPB_OpenGLES2VertexArrayObject* ext = |
| 979 glGetVertexArrayObjectInterfacePPAPI(); |
| 980 if (ext) |
| 981 ext->DeleteVertexArraysOES(glGetCurrentContextPPAPI(), n, arrays); |
| 982 } |
| 983 |
| 984 GLboolean GL_APIENTRY glIsVertexArrayOES(GLuint array) { |
| 985 const struct PPB_OpenGLES2VertexArrayObject* ext = |
| 986 glGetVertexArrayObjectInterfacePPAPI(); |
| 987 if (ext) |
| 988 return ext->IsVertexArrayOES(glGetCurrentContextPPAPI(), array); |
| 989 return 0; |
| 990 } |
| 991 |
| 992 void GL_APIENTRY glBindVertexArrayOES(GLuint array) { |
| 993 const struct PPB_OpenGLES2VertexArrayObject* ext = |
| 994 glGetVertexArrayObjectInterfacePPAPI(); |
| 995 if (ext) |
| 996 ext->BindVertexArrayOES(glGetCurrentContextPPAPI(), array); |
| 997 } |
| 998 |
970 GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { | 999 GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { |
971 const struct PPB_OpenGLES2ChromiumEnableFeature* ext = | 1000 const struct PPB_OpenGLES2ChromiumEnableFeature* ext = |
972 glGetChromiumEnableFeatureInterfacePPAPI(); | 1001 glGetChromiumEnableFeatureInterfacePPAPI(); |
973 if (ext) | 1002 if (ext) |
974 return ext->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature); | 1003 return ext->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature); |
975 return 0; | 1004 return 0; |
976 } | 1005 } |
977 | 1006 |
978 void* GL_APIENTRY glMapBufferSubDataCHROMIUM(GLuint target, | 1007 void* GL_APIENTRY glMapBufferSubDataCHROMIUM(GLuint target, |
979 GLintptr offset, | 1008 GLintptr offset, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 if (ext) | 1084 if (ext) |
1056 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); | 1085 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); |
1057 } | 1086 } |
1058 | 1087 |
1059 void GL_APIENTRY glDrawBuffersEXT(GLsizei count, const GLenum* bufs) { | 1088 void GL_APIENTRY glDrawBuffersEXT(GLsizei count, const GLenum* bufs) { |
1060 const struct PPB_OpenGLES2DrawBuffers_Dev* ext = | 1089 const struct PPB_OpenGLES2DrawBuffers_Dev* ext = |
1061 glGetDrawBuffersInterfacePPAPI(); | 1090 glGetDrawBuffersInterfacePPAPI(); |
1062 if (ext) | 1091 if (ext) |
1063 ext->DrawBuffersEXT(glGetCurrentContextPPAPI(), count, bufs); | 1092 ext->DrawBuffersEXT(glGetCurrentContextPPAPI(), count, bufs); |
1064 } | 1093 } |
OLD | NEW |