OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "gl/GrGLInterface.h" | 10 #include "gl/GrGLInterface.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 interface->fDrawArrays = glDrawArrays; | 47 interface->fDrawArrays = glDrawArrays; |
48 interface->fDrawBuffer = NULL; | 48 interface->fDrawBuffer = NULL; |
49 interface->fDrawBuffers = NULL; | 49 interface->fDrawBuffers = NULL; |
50 interface->fDrawElements = glDrawElements; | 50 interface->fDrawElements = glDrawElements; |
51 interface->fEnable = glEnable; | 51 interface->fEnable = glEnable; |
52 interface->fEnableVertexAttribArray = glEnableVertexAttribArray; | 52 interface->fEnableVertexAttribArray = glEnableVertexAttribArray; |
53 interface->fFinish = glFinish; | 53 interface->fFinish = glFinish; |
54 interface->fFlush = glFlush; | 54 interface->fFlush = glFlush; |
55 interface->fFrontFace = glFrontFace; | 55 interface->fFrontFace = glFrontFace; |
56 interface->fGenBuffers = glGenBuffers; | 56 interface->fGenBuffers = glGenBuffers; |
| 57 interface->fGenerateMipmap = glGenerateMipmap; |
57 interface->fGetBufferParameteriv = glGetBufferParameteriv; | 58 interface->fGetBufferParameteriv = glGetBufferParameteriv; |
58 interface->fGetError = glGetError; | 59 interface->fGetError = glGetError; |
59 interface->fGetIntegerv = glGetIntegerv; | 60 interface->fGetIntegerv = glGetIntegerv; |
60 interface->fGetProgramInfoLog = glGetProgramInfoLog; | 61 interface->fGetProgramInfoLog = glGetProgramInfoLog; |
61 interface->fGetProgramiv = glGetProgramiv; | 62 interface->fGetProgramiv = glGetProgramiv; |
62 interface->fGetShaderInfoLog = glGetShaderInfoLog; | 63 interface->fGetShaderInfoLog = glGetShaderInfoLog; |
63 interface->fGetShaderiv = glGetShaderiv; | 64 interface->fGetShaderiv = glGetShaderiv; |
64 interface->fGetString = glGetString; | 65 interface->fGetString = glGetString; |
65 interface->fGenTextures = glGenTextures; | 66 interface->fGenTextures = glGenTextures; |
66 interface->fGetUniformLocation = glGetUniformLocation; | 67 interface->fGetUniformLocation = glGetUniformLocation; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 interface->fBindVertexArray = glBindVertexArrayOES; | 143 interface->fBindVertexArray = glBindVertexArrayOES; |
143 interface->fDeleteVertexArrays = glDeleteVertexArraysOES; | 144 interface->fDeleteVertexArrays = glDeleteVertexArraysOES; |
144 interface->fGenVertexArrays = glGenVertexArraysOES; | 145 interface->fGenVertexArrays = glGenVertexArraysOES; |
145 #endif | 146 #endif |
146 | 147 |
147 interface->fBindingsExported = kES2_GrGLBinding; | 148 interface->fBindingsExported = kES2_GrGLBinding; |
148 } | 149 } |
149 glInterface.get()->ref(); | 150 glInterface.get()->ref(); |
150 return glInterface.get(); | 151 return glInterface.get(); |
151 } | 152 } |
OLD | NEW |