aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-17 07:06:06 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-17 07:06:06 +0000
commit4d28d9889b033777afc1950474296d37887ef71b (patch)
tree8172c52ce8bc7b4364188ab4f1686415aeee9351
parent100b1c5e9e970e900cb06e00cd93944cfd9b5dc4 (diff)
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7240 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--gm/spritebitmap.cpp2
-rw-r--r--include/core/SkRect.h4
-rw-r--r--tools/render_pictures_main.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/gm/spritebitmap.cpp b/gm/spritebitmap.cpp
index a073c02f3b..8aaa6ea78b 100644
--- a/gm/spritebitmap.cpp
+++ b/gm/spritebitmap.cpp
@@ -26,7 +26,7 @@ static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip,
SkAutoCanvasRestore acr(canvas, true);
SkPaint paint;
- SkRect clipR = SkRect::MakeXYWH(SkIntToScalar(dx),
+ SkRect clipR = SkRect::MakeXYWH(SkIntToScalar(dx),
SkIntToScalar(dy),
SkIntToScalar(bm.width()),
SkIntToScalar(bm.height()));
diff --git a/include/core/SkRect.h b/include/core/SkRect.h
index 815aada65c..c3243bbe74 100644
--- a/include/core/SkRect.h
+++ b/include/core/SkRect.h
@@ -371,7 +371,7 @@ struct SK_API SkRect {
r.set(0, 0, size.width(), size.height());
return r;
}
-
+
static SkRect SK_WARN_UNUSED_RESULT MakeLTRB(SkScalar l, SkScalar t, SkScalar r, SkScalar b) {
SkRect rect;
rect.set(l, t, r, b);
@@ -490,7 +490,7 @@ struct SK_API SkRect {
fRight = SkIntToScalar(width);
fBottom = SkIntToScalar(height);
}
-
+
/** Set this rectangle to be the bounds of the array of points.
If the array is empty (count == 0), then set this rectangle
to the empty rectangle (0,0,0,0)
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp
index 18926ac5d9..7b9efc5f0f 100644
--- a/tools/render_pictures_main.cpp
+++ b/tools/render_pictures_main.cpp
@@ -238,7 +238,7 @@ static bool render_picture(const SkString& inputPath, const SkString* outputDir,
*bitmap->getAddr32(x, y));
SkASSERT(diff >= 0 && diff <= 255);
diffs[diff]++;
-
+
if (diff > maxComponentDiff) {
SkDebugf("Expected pixel at (%i %i) exceedds maximum "
"component diff of %i: 0x%x, actual 0x%x\n",
@@ -559,7 +559,7 @@ static void parse_commandline(int argc, char* const argv[], SkTArray<SkString>*
SkDebugf("maxComponentDiff: 0 - 256.\n");
usage(argv0);
exit(-1);
- }
+ }
} else if (0 == strcmp(*argv, "--writeWholeImage")) {
*writeWholeImage = true;
} else {