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

Unified Diff: bench/Benchmark.cpp

Issue 375863006: Remove useless options from bench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixed build. Dunno why it didn't show up with "make tools" Created 6 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
« no previous file with comments | « bench/Benchmark.h ('k') | bench/benchmain.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/Benchmark.cpp
diff --git a/bench/Benchmark.cpp b/bench/Benchmark.cpp
index ae614f04f9c4a3ab1141243f091aa78a1ca253ea..04223dca4309a42ae0efb0a2561dcf1347c3fd8f 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);
« no previous file with comments | « bench/Benchmark.h ('k') | bench/benchmain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698