aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleFilter2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleFilter2.cpp')
-rw-r--r--samplecode/SampleFilter2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleFilter2.cpp b/samplecode/SampleFilter2.cpp
index f3a8b469ab..e982778234 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);
}