| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 GET_PROC(Viewport); | 166 GET_PROC(Viewport); |
| 167 GET_PROC(BindFragDataLocationIndexed); | 167 GET_PROC(BindFragDataLocationIndexed); |
| 168 | 168 |
| 169 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_object"))
{ | 169 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_vertex_array_object"))
{ |
| 170 // no ARB suffix for GL_ARB_vertex_array_object | 170 // no ARB suffix for GL_ARB_vertex_array_object |
| 171 GET_PROC(BindVertexArray); | 171 GET_PROC(BindVertexArray); |
| 172 GET_PROC(GenVertexArrays); | 172 GET_PROC(GenVertexArrays); |
| 173 GET_PROC(DeleteVertexArrays); | 173 GET_PROC(DeleteVertexArrays); |
| 174 } | 174 } |
| 175 | 175 |
| 176 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_map_buffer_range")) { |
| 177 GET_PROC(MapBufferRange); |
| 178 GET_PROC(FlushMappedBufferRange); |
| 179 } |
| 180 |
| 176 // First look for GL3.0 FBO or GL_ARB_framebuffer_object (same since | 181 // First look for GL3.0 FBO or GL_ARB_framebuffer_object (same since |
| 177 // GL_ARB_framebuffer_object doesn't use ARB suffix.) | 182 // GL_ARB_framebuffer_object doesn't use ARB suffix.) |
| 178 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_framebuffer_object"))
{ | 183 if (glVer >= GR_GL_VER(3,0) || extensions.has("GL_ARB_framebuffer_object"))
{ |
| 179 GET_PROC(GenFramebuffers); | 184 GET_PROC(GenFramebuffers); |
| 180 GET_PROC(GetFramebufferAttachmentParameteriv); | 185 GET_PROC(GetFramebufferAttachmentParameteriv); |
| 181 GET_PROC(GetRenderbufferParameteriv); | 186 GET_PROC(GetRenderbufferParameteriv); |
| 182 GET_PROC(BindFramebuffer); | 187 GET_PROC(BindFramebuffer); |
| 183 GET_PROC(FramebufferTexture2D); | 188 GET_PROC(FramebufferTexture2D); |
| 184 GET_PROC(CheckFramebufferStatus); | 189 GET_PROC(CheckFramebufferStatus); |
| 185 GET_PROC(DeleteFramebuffers); | 190 GET_PROC(DeleteFramebuffers); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 GET_PROC(InvalidateSubFramebuffer); | 285 GET_PROC(InvalidateSubFramebuffer); |
| 281 GET_PROC(InvalidateTexImage); | 286 GET_PROC(InvalidateTexImage); |
| 282 GET_PROC(InvalidateTexSubImage); | 287 GET_PROC(InvalidateTexSubImage); |
| 283 } | 288 } |
| 284 | 289 |
| 285 interface->fStandard = kGL_GrGLStandard; | 290 interface->fStandard = kGL_GrGLStandard; |
| 286 interface->fExtensions.swap(&extensions); | 291 interface->fExtensions.swap(&extensions); |
| 287 | 292 |
| 288 return interface; | 293 return interface; |
| 289 } | 294 } |
| OLD | NEW |