aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawContext.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-09-12 09:05:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-12 09:05:48 -0700
commitb3e9ae6c0ca200f6e1021258d4d6562b1e3e9458 (patch)
tree72e115852fdffd6ab717d13f5ad4bba3a32afd73 /src/gpu/GrDrawContext.cpp
parent81a8485997162a6f2bef84b1130033b1222c722c (diff)
Remove unneeded bounds outset in GrDrawContext::drawVertices.
Diffstat (limited to 'src/gpu/GrDrawContext.cpp')
-rw-r--r--src/gpu/GrDrawContext.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
index 78615df606..50965ba86f 100644
--- a/src/gpu/GrDrawContext.cpp
+++ b/src/gpu/GrDrawContext.cpp
@@ -764,14 +764,6 @@ 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. We also do this for the "hair" primitive types: lines and points since they have
- // a 1 pixel thickness in device space.
- if (!paint.isAntiAlias() || GrIsPrimTypeLines(primitiveType) ||
- kPoints_GrPrimitiveType == primitiveType) {
- bounds.outset(0.5f, 0.5f);
- }
-
SkAutoTUnref<GrDrawBatch> batch(new GrDrawVerticesBatch(paint.getColor(),
primitiveType, viewMatrix, positions,
vertexCount, indices, indexCount,