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

Unified Diff: src/gpu/gl/GrGLCaps.cpp

Issue 367643004: Implement NVPR on GLES (Closed) Base URL: https://skia.googlesource.com/skia.git@02-path-program-fragment
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/GrGLCaps.cpp
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index d71f8e33541a54700a846d638c4ba8f940757a80..e8bc8229ff4a05cd2c92446b56a941d93a615a8f 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -313,12 +313,11 @@ bool GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) {
fPathRenderingSupport = ctxInfo.hasExtension("GL_NV_path_rendering") &&
ctxInfo.hasExtension("GL_EXT_direct_state_access") &&
- (kGL_GrGLStandard == standard &&
- (ctxInfo.version() >= GR_GL_VER(4,3) ||
- ctxInfo.hasExtension("GL_ARB_program_interface_query")));
- // Note: path rendering is not yet implemented for GLES.
- // Once it is, this will contain also:
- // || (kGLES_GrGLStandard == standard && ctxInfo.version() >= GR_GL_VER(3,1))
+ ((kGL_GrGLStandard == standard &&
+ (ctxInfo.version() >= GR_GL_VER(4,3) ||
+ ctxInfo.hasExtension("GL_ARB_program_interface_query"))) ||
+ (kGLES_GrGLStandard == standard &&
+ ctxInfo.version() >= GR_GL_VER(3,1)));
fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker");
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/gl/GrGLDefines.h » ('j') | src/gpu/gl/GrGLProgramEffects.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698