aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-06-26 18:16:47 -0600
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-27 00:48:15 +0000
commitef12509ff2668027664308653ced36039af800ad (patch)
tree61ac473145e39c71f87a6fe1d1c900e85ddb25da /include
parent9f0c0ade6ad2abc7fc400debe283955f7ebd384d (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrContextOptions.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
index 11838707b5..d2377a570b 100644
--- a/include/gpu/GrContextOptions.h
+++ b/include/gpu/GrContextOptions.h
@@ -78,6 +78,13 @@ struct GrContextOptions {
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.
*/