Remove dead code from Benchmark
Spotted the VisualBench hooks the other day, then found some more dead
code when I went to remove them.
Change-Id: Ia07f0556faf33cc69e3ec590f7a8f47f2c1f298a
Reviewed-on: https://skia-review.googlesource.com/146360
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/bench/Benchmark.cpp b/bench/Benchmark.cpp
index df1e347..9438e08 100644
--- a/bench/Benchmark.cpp
+++ b/bench/Benchmark.cpp
@@ -11,15 +11,9 @@
#include "SkPaint.h"
#include "SkParse.h"
-const char* SkTriState::Name[] = { "default", "true", "false" };
-
template BenchRegistry* BenchRegistry::gHead;
-Benchmark::Benchmark() {
- fForceAlpha = 0xFF;
- fDither = SkTriState::kDefault;
- fOrMask = fClearMask = 0;
-}
+Benchmark::Benchmark() {}
const char* Benchmark::getName() {
return this->onGetName();
@@ -59,15 +53,7 @@
}
void Benchmark::setupPaint(SkPaint* paint) {
- paint->setAlpha(fForceAlpha);
paint->setAntiAlias(true);
- paint->setFilterQuality(kNone_SkFilterQuality);
-
- paint->setFlags((paint->getFlags() & ~fClearMask) | fOrMask);
-
- if (SkTriState::kDefault != fDither) {
- paint->setDither(SkTriState::kTrue == fDither);
- }
}
SkIPoint Benchmark::onGetSize() {