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

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

Issue 2221393004: Include EXT_window_rectangles API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/GrGLDefines.h ('k') | 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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 nullptr == fFunctions.fDebugMessageInsert || 762 nullptr == fFunctions.fDebugMessageInsert ||
763 nullptr == fFunctions.fDebugMessageCallback || 763 nullptr == fFunctions.fDebugMessageCallback ||
764 nullptr == fFunctions.fGetDebugMessageLog || 764 nullptr == fFunctions.fGetDebugMessageLog ||
765 nullptr == fFunctions.fPushDebugGroup || 765 nullptr == fFunctions.fPushDebugGroup ||
766 nullptr == fFunctions.fPopDebugGroup || 766 nullptr == fFunctions.fPopDebugGroup ||
767 nullptr == fFunctions.fObjectLabel) { 767 nullptr == fFunctions.fObjectLabel) {
768 RETURN_FALSE_INTERFACE 768 RETURN_FALSE_INTERFACE
769 } 769 }
770 } 770 }
771 771
772 if (fExtensions.has("GL_EXT_window_rectangles")) {
773 if (nullptr == fFunctions.fWindowRectangles) {
774 RETURN_FALSE_INTERFACE
775 }
776 }
777
772 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,0)) || 778 if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,0)) ||
773 fExtensions.has("GL_ARB_sample_shading")) { 779 fExtensions.has("GL_ARB_sample_shading")) {
774 if (nullptr == fFunctions.fMinSampleShading) { 780 if (nullptr == fFunctions.fMinSampleShading) {
775 RETURN_FALSE_INTERFACE 781 RETURN_FALSE_INTERFACE
776 } 782 }
777 } else if (kGLES_GrGLStandard == fStandard && fExtensions.has("GL_OES_sample _shading")) { 783 } else if (kGLES_GrGLStandard == fStandard && fExtensions.has("GL_OES_sample _shading")) {
778 if (nullptr == fFunctions.fMinSampleShading) { 784 if (nullptr == fFunctions.fMinSampleShading) {
779 RETURN_FALSE_INTERFACE 785 RETURN_FALSE_INTERFACE
780 } 786 }
781 } 787 }
782 788
783 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" )) {
784 if (nullptr == fFunctions.fEGLCreateImage || 790 if (nullptr == fFunctions.fEGLCreateImage ||
785 nullptr == fFunctions.fEGLDestroyImage) { 791 nullptr == fFunctions.fEGLDestroyImage) {
786 RETURN_FALSE_INTERFACE 792 RETURN_FALSE_INTERFACE
787 } 793 }
788 } 794 }
789 795
790 return true; 796 return true;
791 } 797 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698