Chromium Code Reviews| Index: src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
| diff --git a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
| index e6cf035ce6a86ec6170bbe95109ae8c59d63ba02..d54c10ae96638e78d8c1fca3c06a600dd9bbb8ad 100644 |
| --- a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
| +++ b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
| @@ -264,6 +264,14 @@ private: |
| // compute bounds |
| fBounds = geometry.fPath.getBounds(); |
| + SkScalar w = geometry.fStrokeWidth; |
| + if (w > 0) { |
| + w /= 2; |
|
robertphillips
2015/11/23 18:58:46
// comment here about miter falling back to bevel
bsalomon
2015/11/23 19:01:19
Done.
|
| + if (SkPaint::kMiter_Join == geometry.fJoin && w > 1.f) { |
| + w *= geometry.fMiterLimit; |
| + } |
| + fBounds.outset(w, w); |
| + } |
| geometry.fViewMatrix.mapRect(&fBounds); |
| } |