Remove unneeded bounds outset in GrDrawContext::drawVertices.
authorbsalomon <bsalomon@google.com>
Mon, 12 Sep 2016 16:05:48 +0000 (09:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 12 Sep 2016 16:05:48 +0000 (09:05 -0700)
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2329403004

Review-Url: https://codereview.chromium.org/2329403004

src/gpu/GrDrawContext.cpp

index 78615df..50965ba 100644 (file)
@@ -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,