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

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

Issue 1812223002: added support for glMinSampleShading (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: updated for Jim's change Created 4 years, 9 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 | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLTestInterface.h » ('j') | 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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLTestInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698