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