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

Unified Diff: bench/TileBench.cpp

Issue 54603004: Revert "Revert "add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warn… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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
« no previous file with comments | « bench/SkBenchmark.cpp ('k') | gm/bicubicfilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/TileBench.cpp
diff --git a/bench/TileBench.cpp b/bench/TileBench.cpp
index 03a758cdea03bcd83c4c638e994bd9d1fb053426..4619d8b1efea8fb6dc21773bbcab82b8f37bc1bd 100644
--- a/bench/TileBench.cpp
+++ b/bench/TileBench.cpp
@@ -85,7 +85,8 @@ protected:
virtual void onDraw(SkCanvas* canvas) {
SkPaint paint(fPaint);
this->setupPaint(&paint);
- paint.setFilterBitmap(fDoFilter);
+ paint.setFilterLevel(fDoFilter ? SkPaint::kLow_FilterLevel
+ : SkPaint::kNone_FilterLevel);
if (fDoTrans) {
paint.setColor(SkColorSetARGBMacro(0x80, 0xFF, 0xFF, 0xFF));
}
« no previous file with comments | « bench/SkBenchmark.cpp ('k') | gm/bicubicfilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698