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 { |