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 2287003002: Add support for glDrawRangeElements (Closed)
Patch Set: Add to test interface Created 4 years, 3 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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
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