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