Index: src/gpu/GrAAHairLinePathRenderer.cpp |
diff --git a/src/gpu/GrAAHairLinePathRenderer.cpp b/src/gpu/GrAAHairLinePathRenderer.cpp |
index f9b0c5a7ffca5f536c5207711ad58bd2c7491626..efb25c7aca807d24671aa11b7704c69e22440001 100644 |
--- a/src/gpu/GrAAHairLinePathRenderer.cpp |
+++ b/src/gpu/GrAAHairLinePathRenderer.cpp |
@@ -731,6 +731,9 @@ private: |
// compute bounds |
fBounds = geometry.fPath.getBounds(); |
geometry.fViewMatrix.mapRect(&fBounds); |
+ |
+ // AAHairlines need to be outset a half pixel in each direction to account for AA |
robertphillips
2015/05/07 13:17:17
// This is b.c. hairlines are notionally infinitel
|
+ fBounds.outset(0.5f, 0.5f); |
} |
bool onCombineIfPossible(GrBatch* t) override { |