Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4745)

Unified Diff: bench/PathBench.cpp

Issue 347823004: Remove Sk prefix from some bench classes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkGMBench -> GMBench Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/MutexBench.cpp ('k') | bench/PathIterBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PathBench.cpp
diff --git a/bench/PathBench.cpp b/bench/PathBench.cpp
index 4b21ccf7f19123cc04679f6db8d7c8142b8a3f17..59b3bfa2ef7d1752f38abe5e44206e6af93b6ee5 100644
--- a/bench/PathBench.cpp
+++ b/bench/PathBench.cpp
@@ -5,7 +5,7 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#include "SkBenchmark.h"
+#include "Benchmark.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColorPriv.h"
@@ -25,7 +25,7 @@ enum Flags {
#define FLAGS10 Flags(kBig_Flag)
#define FLAGS11 Flags(kStroke_Flag | kBig_Flag)
-class PathBench : public SkBenchmark {
+class PathBench : public Benchmark {
SkPaint fPaint;
SkString fName;
Flags fFlags;
@@ -74,7 +74,7 @@ protected:
}
private:
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
class TrianglePathBench : public PathBench {
@@ -214,7 +214,7 @@ private:
typedef PathBench INHERITED;
};
-class RandomPathBench : public SkBenchmark {
+class RandomPathBench : public Benchmark {
public:
virtual bool isSuitableFor(Backend backend) SK_OVERRIDE {
return backend == kNonRendering_Backend;
@@ -312,7 +312,7 @@ private:
int fCurrVerb;
int fCurrPoint;
SkRandom fRandom;
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
class PathCreateBench : public RandomPathBench {
@@ -567,7 +567,7 @@ private:
};
-class CirclesBench : public SkBenchmark {
+class CirclesBench : public Benchmark {
protected:
SkString fName;
Flags fFlags;
@@ -619,7 +619,7 @@ protected:
}
private:
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
@@ -628,7 +628,7 @@ private:
// Note: PathTest::test_arb_round_rect_is_convex and
// test_arb_zero_rad_round_rect_is_rect perform almost exactly
// the same test (but with no drawing)
-class ArbRoundRectBench : public SkBenchmark {
+class ArbRoundRectBench : public Benchmark {
protected:
SkString fName;
@@ -723,10 +723,10 @@ protected:
private:
bool fZeroRad; // should 0 radius rounds rects be tested?
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
-class ConservativelyContainsBench : public SkBenchmark {
+class ConservativelyContainsBench : public Benchmark {
public:
enum Type {
kRect_Type,
@@ -799,14 +799,14 @@ private:
bool fParity;
SkTDArray<SkRect> fQueryRects;
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
///////////////////////////////////////////////////////////////////////////////
#include "SkGeometry.h"
-class ConicBench_Chop5 : public SkBenchmark {
+class ConicBench_Chop5 : public Benchmark {
SkConic fRQ;
public:
ConicBench_Chop5() {
@@ -828,10 +828,10 @@ private:
}
}
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
-class ConicBench_ChopHalf : public SkBenchmark {
+class ConicBench_ChopHalf : public Benchmark {
SkConic fRQ;
public:
ConicBench_ChopHalf() {
@@ -853,7 +853,7 @@ private:
}
}
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
///////////////////////////////////////////////////////////////////////////////
@@ -869,7 +869,7 @@ static void rand_conic(SkConic* conic, SkRandom& rand) {
}
}
-class ConicBench : public SkBenchmark {
+class ConicBench : public Benchmark {
public:
ConicBench() {
SkRandom rand;
@@ -889,7 +889,7 @@ protected:
SkConic fConics[CONICS];
private:
- typedef SkBenchmark INHERITED;
+ typedef Benchmark INHERITED;
};
class ConicBench_ComputeError : public ConicBench {
« no previous file with comments | « bench/MutexBench.cpp ('k') | bench/PathIterBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698