diff options
author | 2016-05-05 09:26:21 -0700 | |
---|---|---|
committer | 2016-05-05 09:26:22 -0700 | |
commit | d6f25bf0ef353da39859fb4173d2cf60d52277e4 (patch) | |
tree | bfe6ef191686532010689419d09120103971c438 /src/gpu/batches/GrMSAAPathRenderer.cpp | |
parent | f0cf355b55eec7dacaa6c8e87c736e359b3ee278 (diff) |
Make GrPathRenderer only support fills for path stenciling
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1950893002
Review-Url: https://codereview.chromium.org/1950893002
Diffstat (limited to 'src/gpu/batches/GrMSAAPathRenderer.cpp')
-rw-r--r-- | src/gpu/batches/GrMSAAPathRenderer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/batches/GrMSAAPathRenderer.cpp b/src/gpu/batches/GrMSAAPathRenderer.cpp index 988952822a..a9ba06c5f4 100644 --- a/src/gpu/batches/GrMSAAPathRenderer.cpp +++ b/src/gpu/batches/GrMSAAPathRenderer.cpp @@ -37,8 +37,8 @@ static inline bool single_pass_path(const SkPath& path, const SkStrokeRec& strok } GrPathRenderer::StencilSupport -GrMSAAPathRenderer::onGetStencilSupport(const SkPath& path, const GrStrokeInfo& stroke) const { - if (single_pass_path(path, stroke)) { +GrMSAAPathRenderer::onGetStencilSupport(const SkPath& path) const { + if (single_pass_path(path, SkStrokeRec(SkStrokeRec::kFill_InitStyle))) { return GrPathRenderer::kNoRestriction_StencilSupport; } else { return GrPathRenderer::kStencilOnly_StencilSupport; @@ -739,7 +739,7 @@ void GrMSAAPathRenderer::onStencilPath(const StencilPathArgs& args) { SkASSERT(SkPath::kInverseEvenOdd_FillType != args.fPath->getFillType()); SkASSERT(SkPath::kInverseWinding_FillType != args.fPath->getFillType()); this->internalDrawPath(args.fTarget, args.fPipelineBuilder, GrColor_WHITE, *args.fViewMatrix, - *args.fPath, *args.fStroke, true); + *args.fPath, GrStrokeInfo::FillInfo(), true); } /////////////////////////////////////////////////////////////////////////////////////////////////// |