| Index: samplecode/SampleBitmapRect.cpp
|
| diff --git a/samplecode/SampleBitmapRect.cpp b/samplecode/SampleBitmapRect.cpp
|
| index 04297e05e778fb47a90b94bb38b48df673b71daa..422ed583efb4b7ed79ce71ff110c740fd04a13fc 100644
|
| --- a/samplecode/SampleBitmapRect.cpp
|
| +++ b/samplecode/SampleBitmapRect.cpp
|
| @@ -133,7 +133,7 @@ protected:
|
| canvas->drawRect(srcR, paint);
|
|
|
| for (int i = 0; i < 2; ++i) {
|
| - paint.setFilterBitmap(1 == i);
|
| + paint.setFilterLevel(1 == i ? SkPaint::kLow_FilterLevel : SkPaint::kNone_FilterLevel);
|
| canvas->drawBitmapRectToRect(bitmap, &srcR, fDstR[i], &paint);
|
| canvas->drawRect(fDstR[i], paint);
|
| }
|
| @@ -226,7 +226,7 @@ protected:
|
| paint.setColor(SK_ColorYELLOW);
|
|
|
| for (int i = 0; i < 2; ++i) {
|
| - paint.setFilterBitmap(1 == i);
|
| + paint.setFilterLevel(1 == i ? SkPaint::kLow_FilterLevel : SkPaint::kNone_FilterLevel);
|
| canvas->drawBitmapRectToRect(fBitmap, &fSrcR, fDstR[i], &paint);
|
| canvas->drawRect(fDstR[i], paint);
|
| }
|
|
|