Index: samplecode/SampleFilter2.cpp |
diff --git a/samplecode/SampleFilter2.cpp b/samplecode/SampleFilter2.cpp |
index f3a8b469ab35ec85ced22db2eb1978d06632c563..e98277823454f0dfe5fa8f8efdbc2205fc15575d 100644 |
--- a/samplecode/SampleFilter2.cpp |
+++ b/samplecode/SampleFilter2.cpp |
@@ -76,7 +76,7 @@ protected: |
canvas->scale(SK_Scalar1, scale); |
for (int k = 0; k < 2; k++) { |
- paint.setFilterBitmap(k == 1); |
+ paint.setFilterLevel(k == 1 ? SkPaint::kLow_FilterLevel : SkPaint::kNone_FilterLevel); |
for (int j = 0; j < 2; j++) { |
paint.setDither(j == 1); |
for (int i = 0; i < fBitmapCount; i++) { |
@@ -93,7 +93,7 @@ protected: |
SkString s("dither="); |
s.appendS32(paint.isDither()); |
s.append(" filter="); |
- s.appendS32(paint.isFilterBitmap()); |
+ s.appendS32(paint.getFilterLevel() != SkPaint::kNone_FilterLevel); |
canvas->drawText(s.c_str(), s.size(), x + W/2, |
y - p.getTextSize(), p); |
} |