Let SkBenchmark classes specify that they do no rendering.
Doing this gives us a 15-20% speedup in bench cycle time.
Here again I'm just picking the easy targets.
http://codereview.appspot.com/6500115/
git-svn-id: http://skia.googlecode.com/svn/trunk@5525 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/GrMemoryPoolBench.cpp b/bench/GrMemoryPoolBench.cpp
index d9dc49d..d6c4b77 100644
--- a/bench/GrMemoryPoolBench.cpp
+++ b/bench/GrMemoryPoolBench.cpp
@@ -39,6 +39,7 @@
};
public:
GrMemoryPoolBenchStack(void* param) : INHERITED(param) {
+ fIsRendering = false;
}
protected:
virtual const char* onGetName() {
@@ -94,6 +95,7 @@
};
public:
GrMemoryPoolBenchRandom(void* param) : INHERITED(param) {
+ fIsRendering = false;
}
protected:
virtual const char* onGetName() {
@@ -131,6 +133,7 @@
};
public:
GrMemoryPoolBenchQueue(void* param) : INHERITED(param) {
+ fIsRendering = false;
}
protected:
virtual const char* onGetName() {