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

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

Issue 367643004: Implement NVPR on GLES (Closed) Base URL: https://skia.googlesource.com/skia.git@02-path-program-fragment
Patch Set: rebase Created 6 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/GrGLPathRendering.cpp
diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp
index 249d98139ad65b9d888e161ba32c7f6281a52046..43ef827140963bd1e2709a9da7188d1f305289cc 100644
--- a/src/gpu/gl/GrGLPathRendering.cpp
+++ b/src/gpu/gl/GrGLPathRendering.cpp
@@ -37,7 +37,10 @@ class GrGLPathRenderingV13 : public GrGLPathRenderingV12 {
public:
GrGLPathRenderingV13(const GrGLInterface* glInterface)
: GrGLPathRenderingV12(glInterface) {
- fCaps.fragmentInputGenSupport = true;
+ // Using ProgramPathFragmentInputGen on OpenGL triggers a bug that manifests itself
+ // sometimes when running shadertext test. Valgrind catches the problem reproducibly.
+ // TODO: remove this once this is fixed in the driver.
+ fCaps.fragmentInputGenSupport = kGLES_GrGLStandard == glInterface->fStandard;
}
virtual GrGLvoid programPathFragmentInputGen(GrGLuint program, GrGLint location,
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGLProgram.h » ('j') | src/gpu/gl/GrGLProgram.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698