Made more benchs non-rendering
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 17 Sep 2012 10:49:30 +0000 (10:49 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 17 Sep 2012 10:49:30 +0000 (10:49 +0000)
http://codereview.appspot.com/6498132/

git-svn-id: http://skia.googlecode.com/svn/trunk@5562 2bbb7eff-a529-9590-31e7-b0007b416f81

bench/ChecksumBench.cpp
bench/DecodeBench.cpp
bench/MutexBench.cpp
bench/PathIterBench.cpp
bench/ScalarBench.cpp
bench/WriterBench.cpp

index fe3fd47..818b9e3 100644 (file)
@@ -23,6 +23,7 @@ public:
         for (int i = 0; i < U32COUNT; ++i) {
             fData[i] = rand.nextU();
         }
+        fIsRendering = false;
     }
 
 protected:
index c85b715..6593d10 100644 (file)
@@ -32,6 +32,7 @@ public:
             }
         }
         fName.printf("decode_%s_%s", gConfigName[c], fname);
+        fIsRendering = false;
     }
 
 protected:
index af8a840..dfdb792 100644 (file)
@@ -14,7 +14,7 @@ class MutexBench : public SkBenchmark {
     };
 public:
     MutexBench(void* param) : INHERITED(param) {
-
+        fIsRendering = false;
     }
 protected:
     virtual const char* onGetName() {
index 189d1b5..ed99f0a 100644 (file)
@@ -56,6 +56,8 @@ public:
                     break;
             }
         }
+
+        fIsRendering = false;
     }
 
 protected:
index 2d547b7..333dd22 100644 (file)
@@ -17,6 +17,7 @@ class ScalarBench : public SkBenchmark {
 public:
     ScalarBench(void* param, const char name[]) : INHERITED(param) {
         fName.printf("scalar_%s", name);
+        fIsRendering = false;
     }
 
     virtual void performTest() = 0;
@@ -145,6 +146,7 @@ public:
             fPts[i].fX = rand.nextSScalar1();
             fPts[i].fY = rand.nextSScalar1();
         }
+        fIsRendering = false;
     }
 
 protected:
index 2de653c..faf17b5 100644 (file)
@@ -12,7 +12,9 @@
 
 class WriterBench : public SkBenchmark {
 public:
-    WriterBench(void* param) : INHERITED(param) {}
+    WriterBench(void* param) : INHERITED(param) {
+        fIsRendering = false;
+    }
 
 protected:
     virtual const char* onGetName() SK_OVERRIDE {