Index: bench/SkBenchmark.cpp |
diff --git a/bench/SkBenchmark.cpp b/bench/SkBenchmark.cpp |
index e11ebcf328c2a9b24e327963531ea1f9d9f5485f..432d5be6432e87771702a05a3c7aefb9d94e0f60 100644 |
--- a/bench/SkBenchmark.cpp |
+++ b/bench/SkBenchmark.cpp |
@@ -19,6 +19,7 @@ SkString SkBenchmark::gResourcePath; |
SkBenchmark::SkBenchmark() { |
fForceAlpha = 0xFF; |
fForceAA = true; |
+ fForceFilter = false; |
fDither = SkTriState::kDefault; |
fIsRendering = true; |
fOrMask = fClearMask = 0; |
@@ -48,7 +49,8 @@ void SkBenchmark::postDraw() { |
void SkBenchmark::setupPaint(SkPaint* paint) { |
paint->setAlpha(fForceAlpha); |
paint->setAntiAlias(fForceAA); |
- paint->setFilterBitmap(fForceFilter); |
+ paint->setFilterLevel(fForceFilter ? SkPaint::kLow_FilterLevel |
+ : SkPaint::kNone_FilterLevel); |
paint->setFlags((paint->getFlags() & ~fClearMask) | fOrMask); |