| 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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 nullptr == fFunctions.fObjectLabel) { | 772 nullptr == fFunctions.fObjectLabel) { |
| 773 RETURN_FALSE_INTERFACE | 773 RETURN_FALSE_INTERFACE |
| 774 } | 774 } |
| 775 } | 775 } |
| 776 | 776 |
| 777 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,0)) || | 777 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,0)) || |
| 778 fExtensions.has("GL_ARB_sample_shading")) { | 778 fExtensions.has("GL_ARB_sample_shading")) { |
| 779 if (nullptr == fFunctions.fMinSampleShading) { | 779 if (nullptr == fFunctions.fMinSampleShading) { |
| 780 RETURN_FALSE_INTERFACE | 780 RETURN_FALSE_INTERFACE |
| 781 } | 781 } |
| 782 } else if (kGL_GrGLStandard == fStandard && fExtensions.has("GL_OES_sample_s
hading")) { | 782 } else if (kGLES_GrGLStandard == fStandard && fExtensions.has("GL_OES_sample
_shading")) { |
| 783 if (nullptr == fFunctions.fMinSampleShading) { | 783 if (nullptr == fFunctions.fMinSampleShading) { |
| 784 RETURN_FALSE_INTERFACE | 784 RETURN_FALSE_INTERFACE |
| 785 } | 785 } |
| 786 } | 786 } |
| 787 | 787 |
| 788 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { | 788 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { |
| 789 if (nullptr == fFunctions.fEGLCreateImage || | 789 if (nullptr == fFunctions.fEGLCreateImage || |
| 790 nullptr == fFunctions.fEGLDestroyImage) { | 790 nullptr == fFunctions.fEGLDestroyImage) { |
| 791 RETURN_FALSE_INTERFACE | 791 RETURN_FALSE_INTERFACE |
| 792 } | 792 } |
| 793 } | 793 } |
| 794 | 794 |
| 795 return true; | 795 return true; |
| 796 } | 796 } |
| OLD | NEW |