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

Unified Diff: gm/filterindiabox.cpp

Issue 1014533004: SkPaint::FilterLevel -> SkFilterQuality (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | « gm/filterfastbounds.cpp ('k') | gm/giantbitmap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/filterindiabox.cpp
diff --git a/gm/filterindiabox.cpp b/gm/filterindiabox.cpp
index 1ed2a6924f78b5c93385132d36aad8f373b7acea..2c39a1064bafa1dccb8cbd779039dcbbf12dda29 100644
--- a/gm/filterindiabox.cpp
+++ b/gm/filterindiabox.cpp
@@ -24,9 +24,9 @@ static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) {
}
static void draw_cell(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat, SkScalar dx,
- SkPaint::FilterLevel lvl) {
+ SkFilterQuality lvl) {
SkPaint paint;
- paint.setFilterLevel(lvl);
+ paint.setFilterQuality(lvl);
SkAutoCanvasRestore acr(canvas, true);
@@ -36,10 +36,10 @@ static void draw_cell(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat,
}
static void draw_row(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat, SkScalar dx) {
- draw_cell(canvas, bm, mat, 0 * dx, SkPaint::kNone_FilterLevel);
- draw_cell(canvas, bm, mat, 1 * dx, SkPaint::kLow_FilterLevel);
- draw_cell(canvas, bm, mat, 2 * dx, SkPaint::kMedium_FilterLevel);
- draw_cell(canvas, bm, mat, 3 * dx, SkPaint::kHigh_FilterLevel);
+ draw_cell(canvas, bm, mat, 0 * dx, kNone_SkFilterQuality);
+ draw_cell(canvas, bm, mat, 1 * dx, kLow_SkFilterQuality);
+ draw_cell(canvas, bm, mat, 2 * dx, kMedium_SkFilterQuality);
+ draw_cell(canvas, bm, mat, 3 * dx, kHigh_SkFilterQuality);
}
class FilterIndiaBoxGM : public skiagm::GM {
« no previous file with comments | « gm/filterfastbounds.cpp ('k') | gm/giantbitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698