Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: src/gpu/GrDrawContext.cpp

Issue 2329403004: Remove unneeded bounds outset in GrDrawContext::drawVertices. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawContext.cpp
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
index 78615df6064987b4443a8ba49ce024450920fb2f..50965ba86f8918aeef853b8efbce6f5c5309553f 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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698