| 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); |
| 199 } | 203 } |
| 200 | 204 |
| 201 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_map_buffer_range")) { | 205 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_map_buffer_range")) { |
| 202 GET_PROC(MapBufferRange); | 206 GET_PROC(MapBufferRange); |
| 203 GET_PROC(FlushMappedBufferRange); | 207 GET_PROC(FlushMappedBufferRange); |
| 204 } | 208 } |
| 205 | 209 |
| 206 // First look for GL3.0 FBO or GL_ARB_framebuffer_object (same since | 210 // First look for GL3.0 FBO or GL_ARB_framebuffer_object (same since |
| 207 // GL_ARB_framebuffer_object doesn't use ARB suffix.) | 211 // GL_ARB_framebuffer_object doesn't use ARB suffix.) |
| 208 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_framebuffer_object"))
{ | 212 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... |
| 511 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); | 515 GET_PROC_SUFFIX(StencilThenCoverStrokePathInstanced, NV); |
| 512 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); | 516 GET_PROC_SUFFIX(ProgramPathFragmentInputGen, NV); |
| 513 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); | 517 GET_PROC_SUFFIX(PathMemoryGlyphIndexArray, NV); |
| 514 } | 518 } |
| 515 | 519 |
| 516 interface->fStandard = kGLES_GrGLStandard; | 520 interface->fStandard = kGLES_GrGLStandard; |
| 517 interface->fExtensions.swap(&extensions); | 521 interface->fExtensions.swap(&extensions); |
| 518 | 522 |
| 519 return interface; | 523 return interface; |
| 520 } | 524 } |
| OLD | NEW |