ccpr: Add a context option to disable ccpr
TBR=bsalomon@google.com
Bug: skia:856404
Change-Id: Icc6f3d1e7ef97f1853427a3b1cdd405961e6ac26
Reviewed-on: https://skia-review.googlesource.com/137763
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
index 1183870..d2377a5 100644
--- a/include/gpu/GrContextOptions.h
+++ b/include/gpu/GrContextOptions.h
@@ -78,6 +78,13 @@
bool fDoManualMipmapping = false;
/**
+ * Disables the coverage counting path renderer. Coverage counting can sometimes cause new
+ * rendering artifacts along shared edges if care isn't taken to ensure both contours wind in
+ * the same direction.
+ */
+ bool fDisableCoverageCountingPaths = false;
+
+ /**
* Disables distance field rendering for paths. Distance field computation can be expensive,
* and yields no benefit if a path is not rendered multiple times with different transforms.
*/