From 815211307368b82a8df503432221b80ab0a804c3 Mon Sep 17 00:00:00 2001 From: "skia.committer@gmail.com" Date: Tue, 30 Apr 2013 07:01:03 +0000 Subject: Sanitizing source files in Skia_Periodic_House_Keeping git-svn-id: http://skia.googlecode.com/svn/trunk@8919 2bbb7eff-a529-9590-31e7-b0007b416f81 --- bench/MathBench.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'bench/MathBench.cpp') 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; }; -- cgit v1.2.3