aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image
diff options
context:
space:
mode:
authorGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-07 03:02:05 +0000
committerGravatar skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-07 03:02:05 +0000
commitc5acc6c827993602eded2d5b53fdbe29a372b4c4 (patch)
tree498383bc4eb8d52e5debb865ff4751c506beb768 /src/image
parent4f6318d2e64c96fba955ea9154829aee37e155b8 (diff)
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@13355 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/image')
-rw-r--r--src/image/SkImage.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index 9b0a0b2cf8..a567c41ca8 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -55,7 +55,7 @@ bool SkImage::readPixels(SkBitmap* bitmap, const SkIRect* subset) const {
if (NULL == bitmap) {
return false;
}
-
+
SkIRect bounds = SkIRect::MakeWH(this->width(), this->height());
// trim against the bitmap, if its already been allocated
@@ -126,7 +126,7 @@ bool SkImage_Base::onReadPixels(SkBitmap* bitmap, const SkIRect& subset) const {
srcR.set(subset);
dstR = srcR;
dstR.offset(-dstR.left(), -dstR.top());
-
+
SkCanvas canvas(*bitmap);
SkPaint paint;
@@ -136,4 +136,3 @@ bool SkImage_Base::onReadPixels(SkBitmap* bitmap, const SkIRect& subset) const {
const_cast<SkImage_Base*>(this)->onDrawRectToRect(&canvas, &srcR, dstR, NULL);
return true;
}
-