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; |
} |
/** |