Index: gm/bleed.cpp |
diff --git a/gm/bleed.cpp b/gm/bleed.cpp |
index 0d093940decc73da421833cb8336b96bf267b98e..aaca62bd7ee617ecc89f07bc2cc888300bf6c2bc 100644 |
--- a/gm/bleed.cpp |
+++ b/gm/bleed.cpp |
@@ -91,7 +91,7 @@ protected: |
SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); |
SkPaint paint; |
- paint.setFilterBitmap(filter); |
+ paint.setFilterLevel(filter ? SkPaint::kLow_FilterLevel : SkPaint::kNone_FilterLevel); |
canvas->save(); |
canvas->translate(SkIntToScalar(transX), SkIntToScalar(transY)); |
@@ -108,7 +108,7 @@ protected: |
SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); |
SkPaint paint; |
- paint.setFilterBitmap(filter); |
+ paint.setFilterLevel(filter ? SkPaint::kLow_FilterLevel : SkPaint::kNone_FilterLevel); |
canvas->save(); |
canvas->translate(SkIntToScalar(transX), SkIntToScalar(transY)); |
@@ -125,7 +125,7 @@ protected: |
SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); |
SkPaint paint; |
- paint.setFilterBitmap(filter); |
+ paint.setFilterLevel(filter ? SkPaint::kLow_FilterLevel : SkPaint::kNone_FilterLevel); |
canvas->save(); |
canvas->translate(SkIntToScalar(transX), SkIntToScalar(transY)); |
@@ -142,7 +142,7 @@ protected: |
SkRect dst = SkRect::MakeXYWH(0, 0, SkIntToScalar(kBlockSize), SkIntToScalar(kBlockSize)); |
SkPaint paint; |
- paint.setFilterBitmap(filter); |
+ paint.setFilterLevel(filter ? SkPaint::kLow_FilterLevel : SkPaint::kNone_FilterLevel); |
SkMaskFilter* mf = SkBlurMaskFilter::Create(SkBlurMaskFilter::kNormal_BlurStyle, |
SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(3))); |
paint.setMaskFilter(mf)->unref(); |