aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/MathBench.cpp
diff options
context:
space:
mode:
authorGravatar tfarina <tfarina@chromium.org>2014-06-19 12:32:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-19 12:32:29 -0700
commitf168b86d7fafc5c20c87bebc6fd393cb17e120ca (patch)
tree9a1b1cff3725cc6cc030657fd83b5dca12137d86 /bench/MathBench.cpp
parent8e80d17d2b63fa84081236012f31bb10c58d344d (diff)
Remove Sk prefix from some bench classes.
This idea came while commenting on https://codereview.chromium.org/343583005/ Since SkBenchmark, SkBenchLogger and SkGMBench are not part of the Skia library, they should not have the Sk prefix. BUG=None TEST=make all R=mtklein@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/347823004
Diffstat (limited to 'bench/MathBench.cpp')
-rw-r--r--bench/MathBench.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/bench/MathBench.cpp b/bench/MathBench.cpp
index da65456822..dbd661f8d3 100644
--- a/bench/MathBench.cpp
+++ b/bench/MathBench.cpp
@@ -1,9 +1,9 @@
-#include "SkBenchmark.h"
+#include "Benchmark.h"
#include "SkColorPriv.h"
#include "SkMatrix.h"
+#include "SkPaint.h"
#include "SkRandom.h"
#include "SkString.h"
-#include "SkPaint.h"
static float sk_fsel(float pred, float result_ge, float result_lt) {
return pred >= 0 ? result_ge : result_lt;
@@ -15,7 +15,7 @@ static float fast_floor(float x) {
return (x + big) - big;
}
-class MathBench : public SkBenchmark {
+class MathBench : public Benchmark {
enum {
kBuffer = 100,
};
@@ -54,7 +54,7 @@ protected:
}
private:
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
class MathBenchU32 : public MathBench {
@@ -262,7 +262,7 @@ static bool isFinite(const SkRect& r) {
return value == value;
}
-class IsFiniteBench : public SkBenchmark {
+class IsFiniteBench : public Benchmark {
enum {
N = 1000,
};
@@ -328,10 +328,10 @@ private:
IsFiniteProc fProc;
const char* fName;
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
-class FloorBench : public SkBenchmark {
+class FloorBench : public Benchmark {
enum {
ARRAY = 1000,
};
@@ -389,10 +389,10 @@ protected:
private:
const char* fName;
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
-class CLZBench : public SkBenchmark {
+class CLZBench : public Benchmark {
enum {
ARRAY = 1000,
};
@@ -449,12 +449,12 @@ protected:
private:
const char* fName;
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
///////////////////////////////////////////////////////////////////////////////
-class NormalizeBench : public SkBenchmark {
+class NormalizeBench : public Benchmark {
enum {
ARRAY =1000,
};
@@ -496,12 +496,12 @@ protected:
private:
const char* fName;
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
///////////////////////////////////////////////////////////////////////////////
-class FixedMathBench : public SkBenchmark {
+class FixedMathBench : public Benchmark {
enum {
N = 1000,
};
@@ -540,13 +540,13 @@ protected:
}
private:
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
///////////////////////////////////////////////////////////////////////////////
template <typename T>
-class DivModBench : public SkBenchmark {
+class DivModBench : public Benchmark {
SkString fName;
public:
explicit DivModBench(const char* name) {