Index: src/gpu/GrAARectRenderer.cpp |
diff --git a/src/gpu/GrAARectRenderer.cpp b/src/gpu/GrAARectRenderer.cpp |
index 59e9b6f810d70b565057c82e8caf8daab4c2b0c4..0cea0ddd88117a77ec9ec23a99b7a32baf08eefd 100644 |
--- a/src/gpu/GrAARectRenderer.cpp |
+++ b/src/gpu/GrAARectRenderer.cpp |
@@ -759,8 +759,10 @@ void GrAARectRenderer::strokeAARect(GrGpu* gpu, |
devOutside.outset(rx, ry); |
bool miterStroke = true; |
+ // For hairlines, make bevel and round joins appear the same as mitered ones. |
// small miter limit means right angles show bevel... |
- if (stroke.getJoin() != SkPaint::kMiter_Join || stroke.getMiter() < SK_ScalarSqrt2) { |
+ if ((width > 0) && (stroke.getJoin() != SkPaint::kMiter_Join || |
+ stroke.getMiter() < SK_ScalarSqrt2)) { |
miterStroke = false; |
} |