aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStyle.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-05-13 09:23:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-13 09:23:38 -0700
commit9fb420393ee1c24fc3282b7155985fa8fa7bcad4 (patch)
tree4112171b2d2ae213d239178af89e7ce8f55d1b4d /src/gpu/GrStyle.h
parent4ca5539df5c02fabac9ec1a8d0a0f58a9966347e (diff)
Add bounds to GrShape
Diffstat (limited to 'src/gpu/GrStyle.h')
-rw-r--r--src/gpu/GrStyle.h4
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);