зеркало из https://github.com/mozilla/moz-skia.git
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@12853 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
ae8f9528fd
Коммит
f8affa2e5c
|
@ -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;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче