Index: src/gpu/GrDrawContext.cpp |
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp |
index 6718699c9a293bac706e87d2dfaec30faf85cc32..c094ddbd8547658a187eb4354b705dac5680eea4 100644 |
--- a/src/gpu/GrDrawContext.cpp |
+++ b/src/gpu/GrDrawContext.cpp |
@@ -409,8 +409,10 @@ void GrDrawContext::drawVertices(const GrClip& clip, |
viewMatrix.mapRect(&bounds); |
// If we don't have AA then we outset for a half pixel in each direction to account for |
- // snapping |
- if (!paint.isAntiAlias()) { |
+ // snapping. We also do this for the "hair" primitive types: lines and points since they have |
+ // a 1 pixel thickness in device space. |
robertphillips
2015/11/23 17:22:55
Are we double checking here ?
bsalomon
2015/11/23 17:59:34
Eek, meant kPoints not kLines.
|
+ if (!paint.isAntiAlias() || GrIsPrimTypeLines(primitiveType) || |
+ primitiveType == kLines_GrPrimitiveType) { |
bounds.outset(0.5f, 0.5f); |
} |