Index: src/core/SkLinearBitmapPipeline_tile.h |
diff --git a/src/core/SkLinearBitmapPipeline_tile.h b/src/core/SkLinearBitmapPipeline_tile.h |
index 2f855a36af4a704cdf8ab599d6f1e63eb7e841f3..761e3c57ebc7755ee3cdd584e08b3776f5100f82 100644 |
--- a/src/core/SkLinearBitmapPipeline_tile.h |
+++ b/src/core/SkLinearBitmapPipeline_tile.h |
@@ -100,6 +100,7 @@ public: |
} |
} else { |
Span rightClamped = span.breakAt(xMax, dx); |
+ |
if (!rightClamped.isEmpty()) { |
rightClamped.clampToSinglePixel({xMax - 1, y}); |
next->pointSpan(rightClamped); |
@@ -198,7 +199,7 @@ public: |
Span span({x, y}, length, count); |
if (dx > 0) { |
- while (!span.isEmpty() && span.endX() > xMax) { |
+ while (!span.isEmpty() && span.endX() >= xMax) { |
Span toDraw = span.breakAt(xMax, dx); |
next->pointSpan(toDraw); |
span.offset(-xMax); |