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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 GET_PROC_SUFFIX(DisableVertexArrayAttrib, EXT); | 444 GET_PROC_SUFFIX(DisableVertexArrayAttrib, EXT); |
445 GET_PROC_SUFFIX(GetVertexArrayIntegerv, EXT); | 445 GET_PROC_SUFFIX(GetVertexArrayIntegerv, EXT); |
446 GET_PROC_SUFFIX(GetVertexArrayPointerv, EXT); | 446 GET_PROC_SUFFIX(GetVertexArrayPointerv, EXT); |
447 GET_PROC_SUFFIX(GetVertexArrayIntegeri_v, EXT); | 447 GET_PROC_SUFFIX(GetVertexArrayIntegeri_v, EXT); |
448 GET_PROC_SUFFIX(GetVertexArrayPointeri_v, EXT); | 448 GET_PROC_SUFFIX(GetVertexArrayPointeri_v, EXT); |
449 GET_PROC_SUFFIX(MapNamedBufferRange, EXT); | 449 GET_PROC_SUFFIX(MapNamedBufferRange, EXT); |
450 GET_PROC_SUFFIX(FlushMappedNamedBufferRange, EXT); | 450 GET_PROC_SUFFIX(FlushMappedNamedBufferRange, EXT); |
451 } | 451 } |
452 } | 452 } |
453 | 453 |
454 if (glVer >= GR_GL_VER(4,5)) { | |
455 GET_PROC(NamedFramebufferParameteri); | |
456 } | |
457 | |
458 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_KHR_debug")) { | 454 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_KHR_debug")) { |
459 // KHR_debug defines these methods to have no suffix in an OpenGL (not E
S) context. | 455 // KHR_debug defines these methods to have no suffix in an OpenGL (not E
S) context. |
460 GET_PROC(DebugMessageControl); | 456 GET_PROC(DebugMessageControl); |
461 GET_PROC(DebugMessageInsert); | 457 GET_PROC(DebugMessageInsert); |
462 GET_PROC(DebugMessageCallback); | 458 GET_PROC(DebugMessageCallback); |
463 GET_PROC(GetDebugMessageLog); | 459 GET_PROC(GetDebugMessageLog); |
464 GET_PROC(PushDebugGroup); | 460 GET_PROC(PushDebugGroup); |
465 GET_PROC(PopDebugGroup); | 461 GET_PROC(PopDebugGroup); |
466 GET_PROC(ObjectLabel); | 462 GET_PROC(ObjectLabel); |
467 } | 463 } |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 | 764 |
769 if (extensions.has("GL_CHROMIUM_bind_uniform_location")) { | 765 if (extensions.has("GL_CHROMIUM_bind_uniform_location")) { |
770 GET_PROC_SUFFIX(BindUniformLocation, CHROMIUM); | 766 GET_PROC_SUFFIX(BindUniformLocation, CHROMIUM); |
771 } | 767 } |
772 | 768 |
773 interface->fStandard = kGLES_GrGLStandard; | 769 interface->fStandard = kGLES_GrGLStandard; |
774 interface->fExtensions.swap(&extensions); | 770 interface->fExtensions.swap(&extensions); |
775 | 771 |
776 return interface; | 772 return interface; |
777 } | 773 } |
OLD | NEW |