Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: src/gpu/gl/GrGLInterface.cpp

Issue 2156343004: Fix GrGLInterface::validate() to check for GL_OES_sample_shading on ES contexts (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698