| 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 #define GL_GLEXT_PROTOTYPES |
| 9 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
| 10 #include <GLES2/gl2ext.h> | 11 #include <GLES2/gl2ext.h> |
| 11 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" | 12 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" |
| 12 | 13 |
| 13 void GL_APIENTRY glActiveTexture(GLenum texture) { | 14 void GL_APIENTRY glActiveTexture(GLenum texture) { |
| 14 glGetInterfacePPAPI()->ActiveTexture(glGetCurrentContextPPAPI(), texture); | 15 glGetInterfacePPAPI()->ActiveTexture(glGetCurrentContextPPAPI(), texture); |
| 15 } | 16 } |
| 16 | 17 |
| 17 void GL_APIENTRY glAttachShader(GLuint program, GLuint shader) { | 18 void GL_APIENTRY glAttachShader(GLuint program, GLuint shader) { |
| 18 glGetInterfacePPAPI()->AttachShader( | 19 glGetInterfacePPAPI()->AttachShader( |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 glGetCurrentContextPPAPI(), mode, count, type, indices, primcount); | 884 glGetCurrentContextPPAPI(), mode, count, type, indices, primcount); |
| 884 } | 885 } |
| 885 | 886 |
| 886 void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) { | 887 void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) { |
| 887 const struct PPB_OpenGLES2InstancedArrays* ext = | 888 const struct PPB_OpenGLES2InstancedArrays* ext = |
| 888 glGetInstancedArraysInterfacePPAPI(); | 889 glGetInstancedArraysInterfacePPAPI(); |
| 889 if (ext) | 890 if (ext) |
| 890 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); | 891 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); |
| 891 } | 892 } |
| 892 | 893 |
| OLD | NEW |