diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-31 07:01:28 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-31 07:01:28 +0000 |
commit | e0c170f7bbb8c16089274f2691f8484286fcbbe2 (patch) | |
tree | f31e8b8d3176061a047c6331970453cca0830515 /src/core | |
parent | 5852c8b06df9ed961526efb8df02bc00c87b9d4c (diff) |
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@11049 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkBitmapDevice.cpp | 5 | ||||
-rw-r--r-- | src/core/SkDevice.cpp | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp index 0c202592e3..eee201881a 100644 --- a/src/core/SkBitmapDevice.cpp +++ b/src/core/SkBitmapDevice.cpp @@ -112,8 +112,8 @@ bool SkBitmapDevice::onReadPixels(const SkBitmap& bitmap, SkCanvas::Config8888 config8888) { SkASSERT(SkBitmap::kARGB_8888_Config == bitmap.config()); SkASSERT(!bitmap.isNull()); - SkASSERT(SkIRect::MakeWH(this->width(), this->height()).contains(SkIRect::MakeXYWH(x, y, - bitmap.width(), + SkASSERT(SkIRect::MakeWH(this->width(), this->height()).contains(SkIRect::MakeXYWH(x, y, + bitmap.width(), bitmap.height()))); SkIRect srcRect = SkIRect::MakeXYWH(x, y, bitmap.width(), bitmap.height()); @@ -407,4 +407,3 @@ bool SkBitmapDevice::filterTextFlags(const SkPaint& paint, TextFlags* flags) { // we're cool with the paint as is return false; } - diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp index d53b8a2e12..c0d4ad3694 100644 --- a/src/core/SkDevice.cpp +++ b/src/core/SkDevice.cpp @@ -118,4 +118,3 @@ bool SkBaseDevice::readPixels(SkBitmap* bitmap, int x, int y, } return result; } - |