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

Unified Diff: src/core/SkBitmapScaler.cpp

Issue 163663002: Allowing Lanczos3 to be used in chromium (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT Created 6 years, 10 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 | « expectations/gm/ignored-tests.txt ('k') | src/effects/SkBitmapSource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapScaler.cpp
diff --git a/src/core/SkBitmapScaler.cpp b/src/core/SkBitmapScaler.cpp
index 67a9508ee98250e4a401f471a3e5a877f49415ec..dc50464e54c837220811a2c55dc91bd321ab16a3 100644
--- a/src/core/SkBitmapScaler.cpp
+++ b/src/core/SkBitmapScaler.cpp
@@ -228,7 +228,11 @@ static SkBitmapScaler::ResizeMethod ResizeMethodToAlgorithmMethod(
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
}
}
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | src/effects/SkBitmapSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698