Index: gm/resizeimagefilter.cpp |
diff --git a/gm/resizeimagefilter.cpp b/gm/resizeimagefilter.cpp |
index e87dff0d35480a24d4b2eece45c9954e531f8f29..6916f6116b546d992fef296cc34bdf273a36df60 100644 |
--- a/gm/resizeimagefilter.cpp |
+++ b/gm/resizeimagefilter.cpp |
@@ -28,7 +28,7 @@ protected: |
void draw(SkCanvas* canvas, |
const SkRect& rect, |
const SkSize& deviceSize, |
- SkPaint::FilterLevel filterLevel, |
+ SkFilterQuality filterQuality, |
SkImageFilter* input = NULL) { |
SkRect dstRect; |
canvas->getTotalMatrix().mapRect(&dstRect, rect); |
@@ -42,7 +42,7 @@ protected: |
matrix.setScale(SkScalarInvert(deviceScaleX), |
SkScalarInvert(deviceScaleY)); |
SkAutoTUnref<SkImageFilter> imageFilter( |
- SkMatrixImageFilter::Create(matrix, filterLevel, input)); |
+ SkMatrixImageFilter::Create(matrix, filterQuality, input)); |
SkPaint filteredPaint; |
filteredPaint.setImageFilter(imageFilter.get()); |
canvas->saveLayer(&rect, &filteredPaint); |
@@ -68,25 +68,25 @@ protected: |
draw(canvas, |
srcRect, |
deviceSize, |
- SkPaint::kNone_FilterLevel); |
+ kNone_SkFilterQuality); |
canvas->translate(srcRect.width() + SkIntToScalar(10), 0); |
draw(canvas, |
srcRect, |
deviceSize, |
- SkPaint::kLow_FilterLevel); |
+ kLow_SkFilterQuality); |
canvas->translate(srcRect.width() + SkIntToScalar(10), 0); |
draw(canvas, |
srcRect, |
deviceSize, |
- SkPaint::kMedium_FilterLevel); |
+ kMedium_SkFilterQuality); |
canvas->translate(srcRect.width() + SkIntToScalar(10), 0); |
draw(canvas, |
srcRect, |
deviceSize, |
- SkPaint::kHigh_FilterLevel); |
+ kHigh_SkFilterQuality); |
SkBitmap bitmap; |
bitmap.allocN32Pixels(16, 16); |
@@ -107,7 +107,7 @@ protected: |
draw(canvas, |
srcRect, |
deviceSize, |
- SkPaint::kHigh_FilterLevel, |
+ kHigh_SkFilterQuality, |
source.get()); |
} |