| 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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 } | 786 } |
| 787 } | 787 } |
| 788 | 788 |
| 789 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { | 789 if (fExtensions.has("EGL_KHR_image") || fExtensions.has("EGL_KHR_image_base"
)) { |
| 790 if (nullptr == fFunctions.fEGLCreateImage || | 790 if (nullptr == fFunctions.fEGLCreateImage || |
| 791 nullptr == fFunctions.fEGLDestroyImage) { | 791 nullptr == fFunctions.fEGLDestroyImage) { |
| 792 RETURN_FALSE_INTERFACE | 792 RETURN_FALSE_INTERFACE |
| 793 } | 793 } |
| 794 } | 794 } |
| 795 | 795 |
| 796 if (kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(2,0)) { |
| 797 if (nullptr == fFunctions.fDrawRangeElements) { |
| 798 RETURN_FALSE_INTERFACE; |
| 799 } |
| 800 } else if (kGLES_GrGLStandard == fStandard && glVer >= GR_GL_VER(3,0)) { |
| 801 if (nullptr == fFunctions.fDrawRangeElements) { |
| 802 RETURN_FALSE_INTERFACE; |
| 803 } |
| 804 } |
| 805 |
| 796 return true; | 806 return true; |
| 797 } | 807 } |
| OLD | NEW |