draft of Text benchmark
not enabled yet, as having trouble with mac-fonthost port



git-svn-id: http://skia.googlecode.com/svn/trunk@87 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/main.cpp b/bench/main.cpp
index 8891154..d66482f 100644
--- a/bench/main.cpp
+++ b/bench/main.cpp
@@ -1,5 +1,6 @@
 #include "SkCanvas.h"
 #include "SkColorPriv.h"
+#include "SkGraphics.h"
 #include "SkImageEncoder.h"
 #include "SkString.h"
 #include "SkTime.h"
@@ -109,7 +110,19 @@
     return -1;
 }
 
+class SkAutoGraphics {
+public:
+    SkAutoGraphics(bool runUnitTests = false) {
+        SkGraphics::Init(runUnitTests);
+    }
+    ~SkAutoGraphics() {
+        SkGraphics::Term();
+    }
+};
+
 int main (int argc, char * const argv[]) {
+    SkAutoGraphics ag;
+
     int repeatDraw = 1;
     int forceAlpha = 0xFF;
     bool forceAA = true;