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

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: 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
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)
f(malita) 2014/07/25 15:06:37 Should also delete the declaration from the header
hj.r.chung 2014/07/26 14:22:51 oops! Done
-{
- // 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,

Powered by Google App Engine
This is Rietveld 408576698