Index: src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
diff --git a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
index e6cf035ce6a86ec6170bbe95109ae8c59d63ba02..659f9d4adf62599cea8cd8c0cc3a901a7fa562d5 100644 |
--- a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
+++ b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
@@ -264,6 +264,15 @@ private: |
// compute bounds |
fBounds = geometry.fPath.getBounds(); |
+ SkScalar w = geometry.fStrokeWidth; |
+ if (w > 0) { |
+ w /= 2; |
+ // If the miter limit is < 1 then we effectively fallback to bevel joins. |
+ if (SkPaint::kMiter_Join == geometry.fJoin && w > 1.f) { |
+ w *= geometry.fMiterLimit; |
+ } |
+ fBounds.outset(w, w); |
+ } |
geometry.fViewMatrix.mapRect(&fBounds); |
} |