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

Unified Diff: src/core/SkLinearBitmapPipeline.cpp

Issue 2041813004: Handle single pixel case on repeat bilerp. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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/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);
« 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