OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 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 "GrGLAssembleInterface.h" | 10 #include "GrGLAssembleInterface.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 GET_PROC(VertexAttrib4fv); | 189 GET_PROC(VertexAttrib4fv); |
190 GET_PROC(VertexAttribPointer); | 190 GET_PROC(VertexAttribPointer); |
191 GET_PROC(Viewport); | 191 GET_PROC(Viewport); |
192 GET_PROC(BindFragDataLocationIndexed); | 192 GET_PROC(BindFragDataLocationIndexed); |
193 | 193 |
194 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_object"))
{ | 194 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_object"))
{ |
195 // no ARB suffix for GL_ARB_vertex_array_object | 195 // no ARB suffix for GL_ARB_vertex_array_object |
196 GET_PROC(BindVertexArray); | 196 GET_PROC(BindVertexArray); |
197 GET_PROC(GenVertexArrays); | 197 GET_PROC(GenVertexArrays); |
198 GET_PROC(DeleteVertexArrays); | 198 GET_PROC(DeleteVertexArrays); |
199 } else if (extensions.has("GL_APPLE_vertex_array_object")) { | |
200 GET_PROC_SUFFIX(BindVertexArray, APPLE); | |
201 GET_PROC_SUFFIX(GenVertexArrays, APPLE); | |
202 GET_PROC_SUFFIX(DeleteVertexArrays, APPLE); | |
203 } | 199 } |
204 | 200 |
205 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_map_buffer_range")) { | 201 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_map_buffer_range")) { |
206 GET_PROC(MapBufferRange); | 202 GET_PROC(MapBufferRange); |
207 GET_PROC(FlushMappedBufferRange); | 203 GET_PROC(FlushMappedBufferRange); |
208 } | 204 } |
209 | 205 |
210 // First look for GL3.0 FBO or GL_ARB_framebuffer_object (same since | 206 // First look for GL3.0 FBO or GL_ARB_framebuffer_object (same since |
211 // GL_ARB_framebuffer_object doesn't use ARB suffix.) | 207 // GL_ARB_framebuffer_object doesn't use ARB suffix.) |
212 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_framebuffer_object"))
{ | 208 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_framebuffer_object"))
{ |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); | 511 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); |
516 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); | 512 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); |
517 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); | 513 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); |
518 } | 514 } |
519 | 515 |
520 interface->fStandard = kGLES_GrGLStandard; | 516 interface->fStandard = kGLES_GrGLStandard; |
521 interface->fExtensions.swap(&extensions); | 517 interface->fExtensions.swap(&extensions); |
522 | 518 |
523 return interface; | 519 return interface; |
524 } | 520 } |
OLD | NEW |