OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 GET_PROC(Disable); | 70 GET_PROC(Disable); |
71 GET_PROC(DisableVertexAttribArray); | 71 GET_PROC(DisableVertexAttribArray); |
72 GET_PROC(DrawArrays); | 72 GET_PROC(DrawArrays); |
73 GET_PROC(DrawElements); | 73 GET_PROC(DrawElements); |
74 GET_PROC(Enable); | 74 GET_PROC(Enable); |
75 GET_PROC(EnableVertexAttribArray); | 75 GET_PROC(EnableVertexAttribArray); |
76 GET_PROC(Finish); | 76 GET_PROC(Finish); |
77 GET_PROC(Flush); | 77 GET_PROC(Flush); |
78 GET_PROC(FrontFace); | 78 GET_PROC(FrontFace); |
79 GET_PROC(GenBuffers); | 79 GET_PROC(GenBuffers); |
| 80 GET_PROC(GenerateMipmap); |
80 GET_PROC(GenTextures); | 81 GET_PROC(GenTextures); |
81 interface->fGenVertexArrays = | 82 interface->fGenVertexArrays = |
82 (GrGLGenVertexArraysProc) eglGetProcAddress("glGenVertexArraysOES"); | 83 (GrGLGenVertexArraysProc) eglGetProcAddress("glGenVertexArraysOES"); |
83 GET_PROC(GetBufferParameteriv); | 84 GET_PROC(GetBufferParameteriv); |
84 GET_PROC(GetError); | 85 GET_PROC(GetError); |
85 GET_PROC(GetIntegerv); | 86 GET_PROC(GetIntegerv); |
86 GET_PROC(GetProgramInfoLog); | 87 GET_PROC(GetProgramInfoLog); |
87 GET_PROC(GetProgramiv); | 88 GET_PROC(GetProgramiv); |
88 GET_PROC(GetShaderInfoLog); | 89 GET_PROC(GetShaderInfoLog); |
89 GET_PROC(GetShaderiv); | 90 GET_PROC(GetShaderiv); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 GET_PROC(GetFramebufferAttachmentParameteriv); | 150 GET_PROC(GetFramebufferAttachmentParameteriv); |
150 GET_PROC(GetRenderbufferParameteriv); | 151 GET_PROC(GetRenderbufferParameteriv); |
151 GET_PROC(RenderbufferStorage); | 152 GET_PROC(RenderbufferStorage); |
152 | 153 |
153 interface->fMapBuffer = (GrGLMapBufferProc) eglGetProcAddress("glMapBuff
erOES"); | 154 interface->fMapBuffer = (GrGLMapBufferProc) eglGetProcAddress("glMapBuff
erOES"); |
154 interface->fUnmapBuffer = (GrGLUnmapBufferProc) eglGetProcAddress("glUnm
apBufferOES"); | 155 interface->fUnmapBuffer = (GrGLUnmapBufferProc) eglGetProcAddress("glUnm
apBufferOES"); |
155 } | 156 } |
156 glInterface.get()->ref(); | 157 glInterface.get()->ref(); |
157 return glInterface.get(); | 158 return glInterface.get(); |
158 } | 159 } |
OLD | NEW |