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

Unified Diff: Source/platform/graphics/GraphicsContext.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 | « no previous file | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.cpp
diff --git a/Source/platform/graphics/GraphicsContext.cpp b/Source/platform/graphics/GraphicsContext.cpp
index 2059e793cf41e1e9b474440f2b9ef503dd761d15..c40dc7b7d6b73fddaa309ad2801bb5119a0b1d28 100644
--- a/Source/platform/graphics/GraphicsContext.cpp
+++ b/Source/platform/graphics/GraphicsContext.cpp
@@ -1897,9 +1897,7 @@ void GraphicsContext::preparePaintForDrawRectToRect(
resampling = InterpolationLow;
}
resampling = limitInterpolationQuality(this, resampling);
-
- bool useBicubicFilter = resampling == InterpolationHigh;
- paint->setFilterLevel(convertToSkiaFilterLevel(useBicubicFilter, resampling));
+ paint->setFilterLevel(static_cast<SkPaint::FilterLevel>(resampling));
}
}
« no previous file with comments | « no previous file | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698