diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-17 10:49:30 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-09-17 10:49:30 +0000 |
commit | 433ce5e6869d5937e31ff5f305be54092b37f2e4 (patch) | |
tree | 36cb2fcc2fba5e05f1719639fc76595ee954fd17 /bench | |
parent | 055c7c299cb47eebd360b809ad58a0006e2e55f7 (diff) |
Made more benchs non-rendering
http://codereview.appspot.com/6498132/
git-svn-id: http://skia.googlecode.com/svn/trunk@5562 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench')
-rw-r--r-- | bench/ChecksumBench.cpp | 1 | ||||
-rw-r--r-- | bench/DecodeBench.cpp | 1 | ||||
-rw-r--r-- | bench/MutexBench.cpp | 2 | ||||
-rw-r--r-- | bench/PathIterBench.cpp | 2 | ||||
-rw-r--r-- | bench/ScalarBench.cpp | 2 | ||||
-rw-r--r-- | bench/WriterBench.cpp | 4 |
6 files changed, 10 insertions, 2 deletions
diff --git a/bench/ChecksumBench.cpp b/bench/ChecksumBench.cpp index fe3fd47789..818b9e367b 100644 --- a/bench/ChecksumBench.cpp +++ b/bench/ChecksumBench.cpp @@ -23,6 +23,7 @@ public: for (int i = 0; i < U32COUNT; ++i) { fData[i] = rand.nextU(); } + fIsRendering = false; } protected: diff --git a/bench/DecodeBench.cpp b/bench/DecodeBench.cpp index c85b715edb..6593d103f1 100644 --- a/bench/DecodeBench.cpp +++ b/bench/DecodeBench.cpp @@ -32,6 +32,7 @@ public: } } fName.printf("decode_%s_%s", gConfigName[c], fname); + fIsRendering = false; } protected: diff --git a/bench/MutexBench.cpp b/bench/MutexBench.cpp index af8a840182..dfdb792748 100644 --- a/bench/MutexBench.cpp +++ b/bench/MutexBench.cpp @@ -14,7 +14,7 @@ class MutexBench : public SkBenchmark { }; public: MutexBench(void* param) : INHERITED(param) { - + fIsRendering = false; } protected: virtual const char* onGetName() { diff --git a/bench/PathIterBench.cpp b/bench/PathIterBench.cpp index 189d1b5dce..ed99f0a154 100644 --- a/bench/PathIterBench.cpp +++ b/bench/PathIterBench.cpp @@ -56,6 +56,8 @@ public: break; } } + + fIsRendering = false; } protected: diff --git a/bench/ScalarBench.cpp b/bench/ScalarBench.cpp index 2d547b7883..333dd229e1 100644 --- a/bench/ScalarBench.cpp +++ b/bench/ScalarBench.cpp @@ -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: diff --git a/bench/WriterBench.cpp b/bench/WriterBench.cpp index 2de653c374..faf17b5a86 100644 --- a/bench/WriterBench.cpp +++ b/bench/WriterBench.cpp @@ -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 { |