remove duplicate SkTRegistry definition
git-svn-id: http://skia.googlecode.com/svn/trunk@78 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/main.cpp b/bench/main.cpp
index d9bd577..25ab73a 100644
--- a/bench/main.cpp
+++ b/bench/main.cpp
@@ -1,13 +1,12 @@
-#define SAVE_FILE
-
#include "SkCanvas.h"
#include "SkImageEncoder.h"
#include "SkString.h"
#include "SkTime.h"
+#include "SkTRegistry.h"
#include "SkBenchmark.h"
-typedef SkTRegistry<SkBenchmark> BenchRegistry;
+typedef SkTRegistry<SkBenchmark*, void*> BenchRegistry;
class Iter {
public:
@@ -19,7 +18,7 @@
if (fBench) {
BenchRegistry::Factory f = fBench->factory();
fBench = fBench->next();
- return f();
+ return f(0);
}
return NULL;
}
@@ -46,7 +45,6 @@
static void saveFile(const char name[], const char config[], const char dir[],
const SkBitmap& bm) {
-#ifdef SAVE_FILE
SkBitmap copy;
if (!bm.copyTo(©, SkBitmap::kARGB_8888_Config)) {
return;
@@ -59,7 +57,6 @@
::remove(str.c_str());
SkImageEncoder::EncodeFile(str.c_str(), copy, SkImageEncoder::kPNG_Type,
100);
-#endif
}
static void performClip(SkCanvas* canvas, int w, int h) {