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