diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-04 07:01:15 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-04 07:01:15 +0000 |
commit | ecc9d28072142ab503a237726748ec2dc4ff842f (patch) | |
tree | b0dfd34086f7dc426a9c8446eea97af4e9737bf9 /bench/MathBench.cpp | |
parent | 1125d39de8ec64b26746b07ea0f1360aa473779c (diff) |
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@9002 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/MathBench.cpp')
-rw-r--r-- | bench/MathBench.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bench/MathBench.cpp b/bench/MathBench.cpp index 1e4f2818e3..8092f13823 100644 --- a/bench/MathBench.cpp +++ b/bench/MathBench.cpp @@ -440,28 +440,28 @@ class NormalizeBench : public SkBenchmark { }; SkVector fVec[ARRAY]; bool fUsePortable; - + public: NormalizeBench(void* param, bool usePortable) : INHERITED(param) , fUsePortable(usePortable) { - + SkRandom rand; for (int i = 0; i < ARRAY; ++i) { fVec[i].set(rand.nextSScalar1(), rand.nextSScalar1()); } - + fName = "point_normalize"; fIsRendering = false; } - + // just so the compiler doesn't remove our loops virtual void process(int) {} - + protected: virtual void onDraw(SkCanvas*) { int accum = 0; - + for (int j = 0; j < LOOP; ++j) { for (int i = 0; i < ARRAY; ++i) { accum += fVec[i].normalize(); @@ -469,14 +469,14 @@ protected: this->process(accum); } } - + virtual const char* onGetName() { return fName; } - + private: const char* fName; - + typedef SkBenchmark INHERITED; }; |