aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/downsamplebitmap.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-22 17:18:18 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-22 17:18:18 +0000
commit9cfc83cc8ac2ee50a7ce889e65a707941f48bdea (patch)
tree879cd1f934857a2f296d5fe9c5dbf190af1f40af /gm/downsamplebitmap.cpp
parent35f02fb9c9f548656e1cb2cc66d3ed20006384f8 (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 'gm/downsamplebitmap.cpp')
-rw-r--r--gm/downsamplebitmap.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gm/downsamplebitmap.cpp b/gm/downsamplebitmap.cpp
index e34effa07f..5cb971d77a 100644
--- a/gm/downsamplebitmap.cpp
+++ b/gm/downsamplebitmap.cpp
@@ -64,8 +64,7 @@ protected:
matrix.setScale( curScale, curScale );
SkPaint paint;
- paint.setFilterBitmap(true);
- paint.setFlags( paint.getFlags() | SkPaint::kHighQualityFilterBitmap_Flag );
+ paint.setFilterLevel(SkPaint::kHigh_FilterLevel);
canvas->save();
canvas->translate( (SkScalar) curX, 0.f );