diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-30 07:01:03 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-30 07:01:03 +0000 |
commit | 815211307368b82a8df503432221b80ab0a804c3 (patch) | |
tree | 2bedf70fc78f0790e1c9559710816b92f1ebd0ce /bench/MathBench.cpp | |
parent | 0cb7df97185d5fc8780e225c912e2bc99a26aa8d (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@8919 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/MathBench.cpp')
-rw-r--r-- | bench/MathBench.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bench/MathBench.cpp b/bench/MathBench.cpp index 24e7ca9448..90cc4b81fe 100644 --- a/bench/MathBench.cpp +++ b/bench/MathBench.cpp @@ -59,12 +59,12 @@ private: class MathBenchU32 : public MathBench { public: MathBenchU32(void* param, const char name[]) : INHERITED(param, name) {} - + protected: virtual void performITest(uint32_t* SK_RESTRICT dst, const uint32_t* SK_RESTRICT src, int count) = 0; - + virtual void performTest(float* SK_RESTRICT dst, const float* SK_RESTRICT src, int count) SK_OVERRIDE { @@ -379,7 +379,7 @@ class CLZBench : public SkBenchmark { uint32_t fData[ARRAY]; bool fUsePortable; -public: +public: CLZBench(void* param, bool usePortable) : INHERITED(param) , fUsePortable(usePortable) { @@ -388,7 +388,7 @@ public: for (int i = 0; i < ARRAY; ++i) { fData[i] = rand.nextU(); } - + if (fUsePortable) { fName = "clz_portable"; } else { @@ -396,14 +396,14 @@ public: } fIsRendering = false; } - + // just so the compiler doesn't remove our loops virtual void process(int) {} - + protected: virtual void onDraw(SkCanvas*) { int accum = 0; - + if (fUsePortable) { for (int j = 0; j < LOOP; ++j) { for (int i = 0; i < ARRAY; ++i) { @@ -420,14 +420,14 @@ protected: } } } - + virtual const char* onGetName() { return fName; } - + private: const char* fName; - + typedef SkBenchmark INHERITED; }; |