add options to bench: -repeat N -forceOpaque -forceBlend -forceAA -forceBW
output stats for all configs (should be a option)



git-svn-id: http://skia.googlecode.com/svn/trunk@73 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/SkBenchmark.cpp b/bench/SkBenchmark.cpp
index ebeea9d..5d22b70 100644
--- a/bench/SkBenchmark.cpp
+++ b/bench/SkBenchmark.cpp
@@ -1,4 +1,10 @@
 #include "SkBenchmark.h"
+#include "SkPaint.h"
+
+SkBenchmark::SkBenchmark() {
+    fForceAlpha = 0xFF;
+    fForceAA = true;
+}
 
 const char* SkBenchmark::getName() {
     return this->onGetName();
@@ -12,3 +18,9 @@
     this->onDraw(canvas);
 }
 
+void SkBenchmark::setupPaint(SkPaint* paint) {
+    paint->setAlpha(fForceAlpha);
+    paint->setAntiAlias(fForceAA);
+}
+
+