diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-11-07 13:35:22 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-07 21:30:44 +0000 |
commit | bbfd5161ed08710de6106101e64e3417ab32d2db (patch) | |
tree | 387cb49ad153fce7e685f2dbad13ffbb7b1238d9 /src/gpu/GrPathRenderer.h | |
parent | cbba29ed4764b9a9da58710aed18aec6f3bd0ce0 (diff) |
Don't use analytic clip FPs when drawing to stencil
It doesn't make sense to multiply by coverage when drawing to stencil.
This could theoretically work with FPs that discard and/or modify
the sample mask, but for the time being an analytic FP means one that
calculates a coverage value.
Bug: skia:7190
Change-Id: I44140a5823f8683ec08244bdf9d369f51fa05dd9
Reviewed-on: https://skia-review.googlesource.com/68362
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrPathRenderer.h')
-rw-r--r-- | src/gpu/GrPathRenderer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrPathRenderer.h b/src/gpu/GrPathRenderer.h index 4a7fb92e9f..c5a1f63fa1 100644 --- a/src/gpu/GrPathRenderer.h +++ b/src/gpu/GrPathRenderer.h @@ -19,6 +19,7 @@ class SkPath; class GrFixedClip; +class GrHardClip; struct GrPoint; /** @@ -168,7 +169,7 @@ public: GrContext* fContext; GrRenderTargetContext* fRenderTargetContext; - const GrClip* fClip; + const GrHardClip* fClip; const SkIRect* fClipConservativeBounds; const SkMatrix* fViewMatrix; GrAAType fAAType; |