diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-22 17:18:18 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-22 17:18:18 +0000 |
commit | 9cfc83cc8ac2ee50a7ce889e65a707941f48bdea (patch) | |
tree | 879cd1f934857a2f296d5fe9c5dbf190af1f40af /samplecode/SampleAll.cpp | |
parent | 35f02fb9c9f548656e1cb2cc66d3ed20006384f8 (diff) |
stop using bitmap-filter flags outside of paint itself, as a step towards really changing them into an enum
BUG=
Review URL: https://codereview.chromium.org/19825002
git-svn-id: http://skia.googlecode.com/svn/trunk@10240 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleAll.cpp')
-rw-r--r-- | samplecode/SampleAll.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp index ff8249f0f9..01fbe0f8ec 100644 --- a/samplecode/SampleAll.cpp +++ b/samplecode/SampleAll.cpp @@ -392,7 +392,8 @@ protected: canvas->save(); canvas->translate(SkIntToScalar(0), SkIntToScalar(5)); - paint.setFlags(SkPaint::kAntiAlias_Flag | SkPaint::kFilterBitmap_Flag); + paint.setAntiAlias(true); + paint.setFilterLevel(SkPaint::kLow_FilterLevel); // !!! draw through a clip paint.setColor(SK_ColorLTGRAY); paint.setStyle(SkPaint::kFill_Style); |