aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-05 02:01:29 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-05 02:01:29 +0000
commit73bb3bee937ce55b5bcdb9e480e14fb4df809e5d (patch)
tree743fcf9a05822c13a51a5377bfe2e58789632a6e
parenta98eb919a22f4fec09ee97370a49fc7e4556facd (diff)
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5399 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--bench/DashBench.cpp26
-rw-r--r--bench/ReadPixBench.cpp4
2 files changed, 15 insertions, 15 deletions
diff --git a/bench/DashBench.cpp b/bench/DashBench.cpp
index a1fc12cc3e..d766eb1cb0 100644
--- a/bench/DashBench.cpp
+++ b/bench/DashBench.cpp
@@ -182,35 +182,35 @@ class MakeDashBench : public SkBenchmark {
SkString fName;
SkPath fPath;
SkAutoTUnref<SkPathEffect> fPE;
-
+
enum {
N = SkBENCHLOOP(400)
};
-
+
public:
MakeDashBench(void* param, void (*proc)(SkPath*), const char name[]) : INHERITED(param) {
fName.printf("makedash_%s", name);
proc(&fPath);
-
+
SkScalar vals[] = { SkIntToScalar(4), SkIntToScalar(4) };
fPE.reset(new SkDashPathEffect(vals, 2, 0));
}
-
+
protected:
virtual const char* onGetName() SK_OVERRIDE {
return fName.c_str();
}
-
+
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
SkPath dst;
for (int i = 0; i < N; ++i) {
SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle);
-
+
fPE->filterPath(&dst, fPath, &rec);
dst.rewind();
}
}
-
+
private:
typedef SkBenchmark INHERITED;
};
@@ -224,26 +224,26 @@ class DashLineBench : public SkBenchmark {
SkScalar fStrokeWidth;
bool fIsRound;
SkAutoTUnref<SkPathEffect> fPE;
-
+
enum {
N = SkBENCHLOOP(200)
};
-
+
public:
DashLineBench(void* param, SkScalar width, bool isRound) : INHERITED(param) {
fName.printf("dashline_%g_%s", SkScalarToFloat(width), isRound ? "circle" : "square");
fStrokeWidth = width;
fIsRound = isRound;
-
+
SkScalar vals[] = { SK_Scalar1, SK_Scalar1 };
fPE.reset(new SkDashPathEffect(vals, 2, 0));
}
-
+
protected:
virtual const char* onGetName() SK_OVERRIDE {
return fName.c_str();
}
-
+
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
SkPaint paint;
this->setupPaint(&paint);
@@ -255,7 +255,7 @@ protected:
640 * SK_Scalar1, 10 * SK_Scalar1, paint);
}
}
-
+
private:
typedef SkBenchmark INHERITED;
};
diff --git a/bench/ReadPixBench.cpp b/bench/ReadPixBench.cpp
index abcfbeabd1..66db2eb935 100644
--- a/bench/ReadPixBench.cpp
+++ b/bench/ReadPixBench.cpp
@@ -36,8 +36,8 @@ protected:
paint.setColor(SK_ColorBLUE);
- canvas->drawCircle(SkIntToScalar(size.width()/2),
- SkIntToScalar(size.height()/2),
+ canvas->drawCircle(SkIntToScalar(size.width()/2),
+ SkIntToScalar(size.height()/2),
SkIntToScalar(size.width()/2),
paint);