Index: src/gpu/batches/GrTessellatingPathRenderer.cpp |
diff --git a/src/gpu/batches/GrTessellatingPathRenderer.cpp b/src/gpu/batches/GrTessellatingPathRenderer.cpp |
index 39aa50c59753271701fee799c9ad86fe42a460f0..2c8520b28aeb9764ad2d603fb417af8ca9487ae6 100644 |
--- a/src/gpu/batches/GrTessellatingPathRenderer.cpp |
+++ b/src/gpu/batches/GrTessellatingPathRenderer.cpp |
@@ -258,16 +258,8 @@ private: |
} else { |
fBounds = path.getBounds(); |
} |
- if (!stroke.isFillStyle()) { |
- SkScalar radius = SkScalarHalf(stroke.getWidth()); |
- if (stroke.getJoin() == SkPaint::kMiter_Join) { |
- SkScalar scale = stroke.getMiter(); |
- if (scale > SK_Scalar1) { |
- radius = SkScalarMul(radius, scale); |
- } |
- } |
- fBounds.outset(radius, radius); |
- } |
+ SkScalar radius = stroke.getInflationRadius(); |
+ fBounds.outset(radius, radius); |
viewMatrix.mapRect(&fBounds); |
} |