diff options
author | bsalomon <bsalomon@google.com> | 2016-05-10 09:14:17 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-10 09:14:17 -0700 |
commit | 6663acff010ce752e4bf778da81fa97448c9db31 (patch) | |
tree | ba48f7716f7ef948d9faac90599b8a555c0f51d3 /src/gpu/GrSWMaskHelper.h | |
parent | 44d427e048b2e290e086dc2c9f9227818388ef17 (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
Committed: https://skia.googlesource.com/skia/+/33595bdf4b64a745f6340338d307e806e96c587f
Review-Url: https://codereview.chromium.org/1957363002
Diffstat (limited to 'src/gpu/GrSWMaskHelper.h')
-rw-r--r-- | src/gpu/GrSWMaskHelper.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h index d1e1265dba..ee38ab7976 100644 --- a/src/gpu/GrSWMaskHelper.h +++ b/src/gpu/GrSWMaskHelper.h @@ -55,11 +55,10 @@ public: bool init(const SkIRect& resultBounds, const SkMatrix* matrix, bool allowCompression = true); // Draw a single rect into the accumulation bitmap using the specified op - void draw(const SkRect& rect, SkRegion::Op op, - bool antiAlias, uint8_t alpha); + void draw(const SkRect& rect, SkRegion::Op op, bool antiAlias, uint8_t alpha); // Draw a single path into the accumuation bitmap using the specified op - void draw(const SkPath& path, const SkStrokeRec& stroke, SkRegion::Op op, + void draw(const SkPath& path, const GrStyle& style, SkRegion::Op op, bool antiAlias, uint8_t alpha); // Move the mask generation results from the internal bitmap to the gpu. @@ -77,7 +76,7 @@ public: // to the GPU. The result is returned. static GrTexture* DrawPathMaskToTexture(GrContext* context, const SkPath& path, - const SkStrokeRec& stroke, + const GrStyle& style, const SkIRect& resultBounds, bool antiAlias, const SkMatrix* matrix); |