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

Unified Diff: src/codec/SkSampler.h

Issue 2440563002: Subtract start_coord instead of adding it (Closed)
Patch Set: Created 4 years, 2 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/codec/SkSampler.h
diff --git a/src/codec/SkSampler.h b/src/codec/SkSampler.h
index e7bec0c035e4fad0694eccdf79dbc85f7bdb757b..8dce671f44dbe3c246e65c8e2d23e6dbdd72f8a5 100644
--- a/src/codec/SkSampler.h
+++ b/src/codec/SkSampler.h
@@ -41,7 +41,7 @@ public:
* @param row Row of the image, starting with the first row in the subset.
*/
bool rowNeeded(int row) const {
- return (row + get_start_coord(fSampleY)) % fSampleY == 0;
+ return (row - get_start_coord(fSampleY)) % fSampleY == 0;
}
/**
« 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