Index: src/core/SkScan_Hairline.cpp |
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp |
index 1e7e762b5a867a905e88de377226ad4d26e39cb3..7ca54eac33dc6d8adef509588951fa81534a8bc1 100644 |
--- a/src/core/SkScan_Hairline.cpp |
+++ b/src/core/SkScan_Hairline.cpp |
@@ -377,14 +377,12 @@ void SkScan::HairLine(const SkPoint& p0, const SkPoint& p1, |
} else { |
const SkRegion* clipRgn = NULL; |
SkRect r; |
- SkIRect ir; |
r.set(p0.fX, p0.fY, p1.fX, p1.fY); |
r.sort(); |
r.inset(-SK_ScalarHalf, -SK_ScalarHalf); |
- r.roundOut(&ir); |
SkAAClipBlitterWrapper wrap; |
- if (!clip.quickContains(ir)) { |
+ if (!clip.quickContains(r.roundOut())) { |
wrap.init(clip, blitter); |
blitter = wrap.getBlitter(); |
clipRgn = &wrap.getRgn(); |