diff options
author | 2016-05-10 05:57:27 -0700 | |
---|---|---|
committer | 2016-05-10 05:57:27 -0700 | |
commit | 33595bdf4b64a745f6340338d307e806e96c587f (patch) | |
tree | e6a4e7abd27df7aa3fdc764d67ec9e3b4cf86868 /src/gpu/GrSoftwarePathRenderer.cpp | |
parent | 82595b6fa4733e1525f357bdcac22db058790550 (diff) |
Replace GrStrokeInfo with GrStyle.
A side effect is that arbitrary path effects can no be pushed deeper into the Ganesh flow for paths. They may be applied by path renderers.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1957363002
Review-Url: https://codereview.chromium.org/1957363002
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.cpp')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp index ca2ca64db8..dc0dbd2816 100644 --- a/src/gpu/GrSoftwarePathRenderer.cpp +++ b/src/gpu/GrSoftwarePathRenderer.cpp @@ -12,13 +12,7 @@ //////////////////////////////////////////////////////////////////////////////// bool GrSoftwarePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const { - if (nullptr == fContext) { - return false; - } - if (args.fStroke->isDashed()) { - return false; - } - return true; + return SkToBool(fContext); } namespace { @@ -130,7 +124,7 @@ bool GrSoftwarePathRenderer::onDrawPath(const DrawPathArgs& args) { } SkAutoTUnref<GrTexture> texture( - GrSWMaskHelper::DrawPathMaskToTexture(fContext, *args.fPath, *args.fStroke, + GrSWMaskHelper::DrawPathMaskToTexture(fContext, *args.fPath, *args.fStyle, devPathBounds, args.fAntiAlias, args.fViewMatrix)); if (nullptr == texture) { |