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,