Index: src/gpu/GrStyle.h |
diff --git a/src/gpu/GrStyle.h b/src/gpu/GrStyle.h |
index 07efb40866b91df4f9fbbfd9bef3763c0712d3e2..cbaa50d9ef9b7d2f6d55036c8ff366a43a6ca7d7 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); |