diff options
Diffstat (limited to 'bench/RegionBench.cpp')
-rw-r--r-- | bench/RegionBench.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/RegionBench.cpp b/bench/RegionBench.cpp index 4ab173a53b..21c10afd4e 100644 --- a/bench/RegionBench.cpp +++ b/bench/RegionBench.cpp @@ -132,10 +132,10 @@ public: rand.nextSScalar1(), rand.nextSScalar1()); r->sort(); } - + RectSectBench(bool newWay) : fNewWay(newWay) { fName.printf("rect_intersect_%s", newWay ? "new" : "old"); - + SkRandom rand; for (int i = 0; i < N; i++) { RandRect(&fArray0[i], rand); @@ -149,7 +149,7 @@ public: protected: virtual const char* onGetName() { return fName.c_str(); } - + virtual void onDraw(const int loops, SkCanvas* canvas) { for (int i = 0; i < loops; ++i) { if (fNewWay) { @@ -165,7 +165,7 @@ protected: } } } - + private: typedef SkBenchmark INHERITED; }; |