aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/Benchmark.cpp
diff options
context:
space:
mode:
authorGravatar kelvinly <kelvinly@google.com>2014-07-09 12:25:27 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-09 12:25:27 -0700
commit762c7188247332a7ee4d108d0c4291b92815aec2 (patch)
treee633fbbbeb3d1d3557697b99bc68902a97353a4e /bench/Benchmark.cpp
parentdb5f7bf0a439b744facda6b6b1590b4554d64fd8 (diff)
Remove useless options from bench
BUG=skia: R=jcgregorio@google.com, bensong@google.com, bsalomon@google.com, robertphillips@google.com, reed@google.com Author: kelvinly@google.com Review URL: https://codereview.chromium.org/375863006
Diffstat (limited to 'bench/Benchmark.cpp')
-rw-r--r--bench/Benchmark.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/bench/Benchmark.cpp b/bench/Benchmark.cpp
index ae614f04f9..04223dca43 100644
--- a/bench/Benchmark.cpp
+++ b/bench/Benchmark.cpp
@@ -16,8 +16,6 @@ template BenchRegistry* BenchRegistry::gHead;
Benchmark::Benchmark() {
fForceAlpha = 0xFF;
- fForceAA = true;
- fForceFilter = false;
fDither = SkTriState::kDefault;
fOrMask = fClearMask = 0;
}
@@ -40,9 +38,8 @@ void Benchmark::draw(const int loops, SkCanvas* canvas) {
void Benchmark::setupPaint(SkPaint* paint) {
paint->setAlpha(fForceAlpha);
- paint->setAntiAlias(fForceAA);
- paint->setFilterLevel(fForceFilter ? SkPaint::kLow_FilterLevel
- : SkPaint::kNone_FilterLevel);
+ paint->setAntiAlias(true);
+ paint->setFilterLevel(SkPaint::kNone_FilterLevel);
paint->setFlags((paint->getFlags() & ~fClearMask) | fOrMask);