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

Unified Diff: src/effects/SkResizeImageFilter.cpp

Issue 208303002: Fixed resize filter (with test) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 6 years, 9 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 | « gm/resizeimagefilter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkResizeImageFilter.cpp
diff --git a/src/effects/SkResizeImageFilter.cpp b/src/effects/SkResizeImageFilter.cpp
index 87c30c6e808fc60c73e2a870f389028e3001032d..7a52c223b4ed0e2fef8dc0cabe5b75dcd5d0fd23 100644
--- a/src/effects/SkResizeImageFilter.cpp
+++ b/src/effects/SkResizeImageFilter.cpp
@@ -76,7 +76,7 @@ bool SkResizeImageFilter::onFilterImage(Proxy* proxy,
paint.setXfermodeMode(SkXfermode::kSrc_Mode);
paint.setFilterLevel(fFilterLevel);
- canvas.drawBitmap(src, srcRect.left(), srcRect.top(), &paint);
+ canvas.drawBitmap(src, 0, 0, &paint);
*result = device.get()->accessBitmap(false);
offset->fX = dstBounds.fLeft;
« no previous file with comments | « gm/resizeimagefilter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698