OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 | 8 |
9 #include "gl/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
10 #include "gl/GrGLExtensions.h" | 10 #include "gl/GrGLExtensions.h" |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 nullptr == fFunctions.fGetVertexArrayPointerv || | 706 nullptr == fFunctions.fGetVertexArrayPointerv || |
707 nullptr == fFunctions.fGetVertexArrayIntegeri_v || | 707 nullptr == fFunctions.fGetVertexArrayIntegeri_v || |
708 nullptr == fFunctions.fGetVertexArrayPointeri_v || | 708 nullptr == fFunctions.fGetVertexArrayPointeri_v || |
709 nullptr == fFunctions.fMapNamedBufferRange || | 709 nullptr == fFunctions.fMapNamedBufferRange || |
710 nullptr == fFunctions.fFlushMappedNamedBufferRange) { | 710 nullptr == fFunctions.fFlushMappedNamedBufferRange) { |
711 RETURN_FALSE_INTERFACE | 711 RETURN_FALSE_INTERFACE |
712 } | 712 } |
713 } | 713 } |
714 } | 714 } |
715 | 715 |
716 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || | |
717 (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,1))) { | |
718 if (nullptr == fFunctions.fFramebufferParameteri) { | |
719 RETURN_FALSE_INTERFACE | |
720 } | |
721 } | |
722 | |
723 if (kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,5)) { | 716 if (kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,5)) { |
724 if (nullptr == fFunctions.fNamedFramebufferParameteri) { | 717 if (nullptr == fFunctions.fNamedFramebufferParameteri) { |
725 RETURN_FALSE_INTERFACE | 718 RETURN_FALSE_INTERFACE |
726 } | 719 } |
727 } | 720 } |
728 | 721 |
729 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || | 722 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || |
730 fExtensions.has("GL_KHR_debug")) { | 723 fExtensions.has("GL_KHR_debug")) { |
731 if (nullptr == fFunctions.fDebugMessageControl || | 724 if (nullptr == fFunctions.fDebugMessageControl || |
732 nullptr == fFunctions.fDebugMessageInsert || | 725 nullptr == fFunctions.fDebugMessageInsert || |
733 nullptr == fFunctions.fDebugMessageCallback || | 726 nullptr == fFunctions.fDebugMessageCallback || |
734 nullptr == fFunctions.fGetDebugMessageLog || | 727 nullptr == fFunctions.fGetDebugMessageLog || |
735 nullptr == fFunctions.fPushDebugGroup || | 728 nullptr == fFunctions.fPushDebugGroup || |
736 nullptr == fFunctions.fPopDebugGroup || | 729 nullptr == fFunctions.fPopDebugGroup || |
737 nullptr == fFunctions.fObjectLabel) { | 730 nullptr == fFunctions.fObjectLabel) { |
738 RETURN_FALSE_INTERFACE | 731 RETURN_FALSE_INTERFACE |
739 } | 732 } |
740 } | 733 } |
741 | 734 |
742 return true; | 735 return true; |
743 } | 736 } |
OLD | NEW |