Chromium Code Reviews| 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 694 nullptr == fFunctions.fGetVertexArrayPointerv || | 694 nullptr == fFunctions.fGetVertexArrayPointerv || |
| 695 nullptr == fFunctions.fGetVertexArrayIntegeri_v || | 695 nullptr == fFunctions.fGetVertexArrayIntegeri_v || |
| 696 nullptr == fFunctions.fGetVertexArrayPointeri_v || | 696 nullptr == fFunctions.fGetVertexArrayPointeri_v || |
| 697 nullptr == fFunctions.fMapNamedBufferRange || | 697 nullptr == fFunctions.fMapNamedBufferRange || |
| 698 nullptr == fFunctions.fFlushMappedNamedBufferRange) { | 698 nullptr == fFunctions.fFlushMappedNamedBufferRange) { |
| 699 RETURN_FALSE_INTERFACE | 699 RETURN_FALSE_INTERFACE |
| 700 } | 700 } |
| 701 } | 701 } |
| 702 } | 702 } |
| 703 | 703 |
| 704 if (glVer >= GR_GL_VER(4,3)) { | |
|
Chris Dalton
2015/09/22 08:35:24
I think we also need to check the GL standard and
| |
| 705 if (NULL == fFunctions.fFramebufferParameteri) { | |
| 706 RETURN_FALSE_INTERFACE | |
| 707 } | |
| 708 if (NULL == fFunctions.fNamedFramebufferSampleLocationsfv) { | |
|
Chris Dalton
2015/09/22 08:35:24
We should validate for this method when GL_NV_samp
| |
| 709 RETURN_FALSE_INTERFACE | |
| 710 } | |
| 711 if (NULL == fFunctions.fGetMultisamplefv) { | |
|
Chris Dalton
2015/09/22 08:35:24
We can validate for this method on GL 3.2 and GLES
| |
| 712 RETURN_FALSE_INTERFACE | |
| 713 } | |
| 714 } | |
| 715 | |
| 704 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || | 716 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,3)) || |
| 705 fExtensions.has("GL_KHR_debug")) { | 717 fExtensions.has("GL_KHR_debug")) { |
| 706 if (nullptr == fFunctions.fDebugMessageControl || | 718 if (nullptr == fFunctions.fDebugMessageControl || |
| 707 nullptr == fFunctions.fDebugMessageInsert || | 719 nullptr == fFunctions.fDebugMessageInsert || |
| 708 nullptr == fFunctions.fDebugMessageCallback || | 720 nullptr == fFunctions.fDebugMessageCallback || |
| 709 nullptr == fFunctions.fGetDebugMessageLog || | 721 nullptr == fFunctions.fGetDebugMessageLog || |
| 710 nullptr == fFunctions.fPushDebugGroup || | 722 nullptr == fFunctions.fPushDebugGroup || |
| 711 nullptr == fFunctions.fPopDebugGroup || | 723 nullptr == fFunctions.fPopDebugGroup || |
| 712 nullptr == fFunctions.fObjectLabel) { | 724 nullptr == fFunctions.fObjectLabel) { |
| 713 RETURN_FALSE_INTERFACE | 725 RETURN_FALSE_INTERFACE |
| 714 } | 726 } |
| 715 } | 727 } |
| 716 | 728 |
| 717 return true; | 729 return true; |
| 718 } | 730 } |
| OLD | NEW |