| 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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 nullptr == fFunctions.fDebugMessageInsert || | 774 nullptr == fFunctions.fDebugMessageInsert || |
| 775 nullptr == fFunctions.fDebugMessageCallback || | 775 nullptr == fFunctions.fDebugMessageCallback || |
| 776 nullptr == fFunctions.fGetDebugMessageLog || | 776 nullptr == fFunctions.fGetDebugMessageLog || |
| 777 nullptr == fFunctions.fPushDebugGroup || | 777 nullptr == fFunctions.fPushDebugGroup || |
| 778 nullptr == fFunctions.fPopDebugGroup || | 778 nullptr == fFunctions.fPopDebugGroup || |
| 779 nullptr == fFunctions.fObjectLabel) { | 779 nullptr == fFunctions.fObjectLabel) { |
| 780 RETURN_FALSE_INTERFACE | 780 RETURN_FALSE_INTERFACE |
| 781 } | 781 } |
| 782 } | 782 } |
| 783 | 783 |
| 784 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,0)) || |
| 785 fExtensions.has("GL_ARB_sample_shading")) { |
| 786 if (nullptr == fFunctions.fMinSampleShading) { |
| 787 RETURN_FALSE_INTERFACE |
| 788 } |
| 789 } else if (kGL_GrGLStandard == fStandard && fExtensions.has("GL_OES_sample_s
hading")) { |
| 790 if (nullptr == fFunctions.fMinSampleShading) { |
| 791 RETURN_FALSE_INTERFACE |
| 792 } |
| 793 } |
| 794 |
| 784 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { | 795 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { |
| 785 if (nullptr == fFunctions.fEGLCreateImage || | 796 if (nullptr == fFunctions.fEGLCreateImage || |
| 786 nullptr == fFunctions.fEGLDestroyImage) { | 797 nullptr == fFunctions.fEGLDestroyImage) { |
| 787 RETURN_FALSE_INTERFACE | 798 RETURN_FALSE_INTERFACE |
| 788 } | 799 } |
| 789 } | 800 } |
| 790 | 801 |
| 791 return true; | 802 return true; |
| 792 } | 803 } |
| OLD | NEW |