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

Unified Diff: Source/platform/graphics/skia/SkiaUtils.cpp

Issue 412353003: Remove convertToSkiaFilterLevel() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: also removed function from header file Created 6 years, 5 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 | « Source/platform/graphics/skia/SkiaUtils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/skia/SkiaUtils.cpp
diff --git a/Source/platform/graphics/skia/SkiaUtils.cpp b/Source/platform/graphics/skia/SkiaUtils.cpp
index 8391b1f18a0d6ebc76a6a7f5f39beeb7eb58bc36..a1deda4a14f9138f799fafdbfe8bd54d190cf55a 100644
--- a/Source/platform/graphics/skia/SkiaUtils.cpp
+++ b/Source/platform/graphics/skia/SkiaUtils.cpp
@@ -199,20 +199,6 @@ InterpolationQuality limitInterpolationQuality(const GraphicsContext* context, I
return std::min(resampling, context->imageInterpolationQuality());
}
-SkPaint::FilterLevel convertToSkiaFilterLevel(bool useBicubicFilter, InterpolationQuality resampling)
-{
- // FIXME: If we get rid of this special case, this function can go away entirely.
- if (useBicubicFilter)
- return SkPaint::kHigh_FilterLevel;
-
- // InterpolationHigh if useBicubicFilter is false means that we do
- // a manual high quality resampling before drawing to Skia.
- if (resampling == InterpolationHigh)
- return SkPaint::kNone_FilterLevel;
-
- return static_cast<SkPaint::FilterLevel>(resampling);
-}
-
InterpolationQuality computeInterpolationQuality(
const SkMatrix& matrix,
float srcWidth,
« no previous file with comments | « Source/platform/graphics/skia/SkiaUtils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698