Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: gm/downsamplebitmap.cpp

Issue 19825002: stop using bitmap-filter flags outside of paint itself, as a step towards really changing them into… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gm/downsamplebitmap.cpp
diff --git a/gm/downsamplebitmap.cpp b/gm/downsamplebitmap.cpp
index a59e5b85dfb294345ebc1e5680f6a18eebd32e92..1c7c1a207430239f7f5d4d50484af9e26fa2169a 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);
humper 2013/07/19 18:20:26 We should probably have a set of GM tests that dem
reed1 2013/07/19 18:29:16 agreed
canvas->save();
canvas->translate( (SkScalar) curX, 0.f );
« no previous file with comments | « bench/BitmapScaleBench.cpp ('k') | gm/filterbitmap.cpp » ('j') | gm/filterbitmap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698