diff options
author | bsalomon <bsalomon@google.com> | 2016-05-13 09:23:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-13 09:23:38 -0700 |
commit | 9fb420393ee1c24fc3282b7155985fa8fa7bcad4 (patch) | |
tree | 4112171b2d2ae213d239178af89e7ce8f55d1b4d /src/gpu/GrStyle.h | |
parent | 4ca5539df5c02fabac9ec1a8d0a0f58a9966347e (diff) |
Add bounds to GrShape
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1970003003
Review-Url: https://codereview.chromium.org/1970003003
Diffstat (limited to 'src/gpu/GrStyle.h')
-rw-r--r-- | src/gpu/GrStyle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrStyle.h b/src/gpu/GrStyle.h index 07efb40866..cbaa50d9ef 100644 --- a/src/gpu/GrStyle.h +++ b/src/gpu/GrStyle.h @@ -167,6 +167,10 @@ public: void adjustBounds(SkRect* dst, const SkRect& src) const { if (this->pathEffect()) { this->pathEffect()->computeFastBounds(dst, src); + // This may not be the correct SkStrokeRec to use. skbug.com/5299 + // It happens to work for dashing. + SkScalar radius = fStrokeRec.getInflationRadius(); + dst->outset(radius, radius); } else { SkScalar radius = fStrokeRec.getInflationRadius(); *dst = src.makeOutset(radius, radius); |