Index: src/core/SkLinearBitmapPipeline.cpp |
diff --git a/src/core/SkLinearBitmapPipeline.cpp b/src/core/SkLinearBitmapPipeline.cpp |
index 7cdeaac5ffa4babfdbb71b27da536b08ca069670..0359e1fbb1c7d57c4570b5f7b43a2888a0ac9cb6 100644 |
--- a/src/core/SkLinearBitmapPipeline.cpp |
+++ b/src/core/SkLinearBitmapPipeline.cpp |
@@ -367,7 +367,9 @@ private: |
} |
} |
void breakIntoEdges(Span span) { |
- if (span.length() == 0) { |
+ if (span.count() == 1) { |
+ this->bilerpPoint(span.startX(), span.startY()); |
+ } else if (span.length() == 0) { |
yProcessSpan(span); |
} else { |
SkScalar dx = span.length() / (span.count() - 1); |