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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 GET_PROC_SUFFIX(DisableVertexArrayAttrib, EXT); | 443 GET_PROC_SUFFIX(DisableVertexArrayAttrib, EXT); |
444 GET_PROC_SUFFIX(GetVertexArrayIntegerv, EXT); | 444 GET_PROC_SUFFIX(GetVertexArrayIntegerv, EXT); |
445 GET_PROC_SUFFIX(GetVertexArrayPointerv, EXT); | 445 GET_PROC_SUFFIX(GetVertexArrayPointerv, EXT); |
446 GET_PROC_SUFFIX(GetVertexArrayIntegeri_v, EXT); | 446 GET_PROC_SUFFIX(GetVertexArrayIntegeri_v, EXT); |
447 GET_PROC_SUFFIX(GetVertexArrayPointeri_v, EXT); | 447 GET_PROC_SUFFIX(GetVertexArrayPointeri_v, EXT); |
448 GET_PROC_SUFFIX(MapNamedBufferRange, EXT); | 448 GET_PROC_SUFFIX(MapNamedBufferRange, EXT); |
449 GET_PROC_SUFFIX(FlushMappedNamedBufferRange, EXT); | 449 GET_PROC_SUFFIX(FlushMappedNamedBufferRange, EXT); |
450 } | 450 } |
451 } | 451 } |
452 | 452 |
| 453 if (glVer >= GR_GL_VER(4,5)) { |
| 454 GET_PROC(NamedFramebufferParameteri); |
| 455 } |
| 456 |
453 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_KHR_debug")) { | 457 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_KHR_debug")) { |
454 // KHR_debug defines these methods to have no suffix in an OpenGL (not E
S) context. | 458 // KHR_debug defines these methods to have no suffix in an OpenGL (not E
S) context. |
455 GET_PROC(DebugMessageControl); | 459 GET_PROC(DebugMessageControl); |
456 GET_PROC(DebugMessageInsert); | 460 GET_PROC(DebugMessageInsert); |
457 GET_PROC(DebugMessageCallback); | 461 GET_PROC(DebugMessageCallback); |
458 GET_PROC(GetDebugMessageLog); | 462 GET_PROC(GetDebugMessageLog); |
459 GET_PROC(PushDebugGroup); | 463 GET_PROC(PushDebugGroup); |
460 GET_PROC(PopDebugGroup); | 464 GET_PROC(PopDebugGroup); |
461 GET_PROC(ObjectLabel); | 465 GET_PROC(ObjectLabel); |
462 } | 466 } |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 GET_PROC_SUFFIX(PushDebugGroup, KHR); | 755 GET_PROC_SUFFIX(PushDebugGroup, KHR); |
752 GET_PROC_SUFFIX(PopDebugGroup, KHR); | 756 GET_PROC_SUFFIX(PopDebugGroup, KHR); |
753 GET_PROC_SUFFIX(ObjectLabel, KHR); | 757 GET_PROC_SUFFIX(ObjectLabel, KHR); |
754 } | 758 } |
755 | 759 |
756 interface->fStandard = kGLES_GrGLStandard; | 760 interface->fStandard = kGLES_GrGLStandard; |
757 interface->fExtensions.swap(&extensions); | 761 interface->fExtensions.swap(&extensions); |
758 | 762 |
759 return interface; | 763 return interface; |
760 } | 764 } |
OLD | NEW |