rename SkRationalQuad to SkConic
git-svn-id: http://skia.googlecode.com/svn/trunk@8872 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/PathBench.cpp b/bench/PathBench.cpp
index 3292ce0..dc95ea6 100644
--- a/bench/PathBench.cpp
+++ b/bench/PathBench.cpp
@@ -868,13 +868,13 @@
#include "SkGeometry.h"
-class RationalQuadBench_Chop5 : public SkBenchmark {
+class ConicBench_Chop5 : public SkBenchmark {
enum {
N = 100000
};
- SkRationalQuad fRQ;
+ SkConic fRQ;
public:
- RationalQuadBench_Chop5(void* param) : INHERITED(param) {
+ ConicBench_Chop5(void* param) : INHERITED(param) {
fRQ.fPts[0].set(0, 0);
fRQ.fPts[1].set(100, 0);
fRQ.fPts[2].set(100, 100);
@@ -887,7 +887,7 @@
}
virtual void onDraw(SkCanvas*) SK_OVERRIDE {
- SkRationalQuad dst[2];
+ SkConic dst[2];
for (int i = 0; i < N; ++i) {
fRQ.chopAt(0.5f, dst);
}
@@ -896,13 +896,13 @@
typedef SkBenchmark INHERITED;
};
-class RationalQuadBench_ChopHalf : public SkBenchmark {
+class ConicBench_ChopHalf : public SkBenchmark {
enum {
N = 100000
};
- SkRationalQuad fRQ;
+ SkConic fRQ;
public:
- RationalQuadBench_ChopHalf(void* param) : INHERITED(param) {
+ ConicBench_ChopHalf(void* param) : INHERITED(param) {
fRQ.fPts[0].set(0, 0);
fRQ.fPts[1].set(100, 0);
fRQ.fPts[2].set(100, 100);
@@ -915,7 +915,7 @@
}
virtual void onDraw(SkCanvas*) SK_OVERRIDE {
- SkRationalQuad dst[2];
+ SkConic dst[2];
for (int i = 0; i < N; ++i) {
fRQ.chop(dst);
}
@@ -981,5 +981,5 @@
DEF_BENCH( return new ConservativelyContainsBench(p, ConservativelyContainsBench::kRoundRect_Type); )
DEF_BENCH( return new ConservativelyContainsBench(p, ConservativelyContainsBench::kOval_Type); )
-DEF_BENCH( return new RationalQuadBench_Chop5(p) )
-DEF_BENCH( return new RationalQuadBench_ChopHalf(p) )
+DEF_BENCH( return new ConicBench_Chop5(p) )
+DEF_BENCH( return new ConicBench_ChopHalf(p) )