aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrContext.cpp
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 /src/gpu/GrContext.cpp
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 'src/gpu/GrContext.cpp')
-rw-r--r--src/gpu/GrContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 4b1af9991e..b4387e21a1 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -104,6 +104,9 @@ bool GrContext::initCommon(const GrContextOptions& options) {
#if GR_TEST_UTILS
prcOptions.fGpuPathRenderers = options.fGpuPathRenderers;
#endif
+ if (options.fDisableCoverageCountingPaths) {
+ prcOptions.fGpuPathRenderers &= ~GpuPathRenderers::kCoverageCounting;
+ }
if (options.fDisableDistanceFieldPaths) {
prcOptions.fGpuPathRenderers &= ~GpuPathRenderers::kSmall;
}