BUG=skia:
R=senorblanco@google.com, reed@google.com, humper@google.com, senorblanco@chromium.org, robertphillips@google.com
Author: sugoi@chromium.org
Review URL: https://codereview.chromium.org/
163663002
git-svn-id: http://skia.googlecode.com/svn/trunk@13459
2bbb7eff-a529-9590-31e7-
b0007b416f81
# deprecated calling pattern.
# https://codereview.chromium.org/154163002/
extractbitmap
+
+# Need to rebaseline since SkBitmapSource was modified to use higher filter quality
+# https://codereview.chromium.org/163663002/
+bitmapsource
+imagefiltersscaled
case SkBitmapScaler::RESIZE_BETTER:
return SkBitmapScaler::RESIZE_HAMMING;
default:
+#ifdef SK_HIGH_QUALITY_IS_LANCZOS
+ return SkBitmapScaler::RESIZE_LANCZOS3;
+#else
return SkBitmapScaler::RESIZE_MITCHELL;
+#endif
}
}
// None filtering when it's translate-only
paint.setFilterLevel(
fSrcRect.width() == dstRect.width() && fSrcRect.height() == dstRect.height() ?
- SkPaint::kNone_FilterLevel : SkPaint::kMedium_FilterLevel);
+ SkPaint::kNone_FilterLevel : SkPaint::kHigh_FilterLevel);
canvas.drawBitmapRectToRect(fBitmap, &fSrcRect, dstRect, &paint);
*result = device.get()->accessBitmap(false);