aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkImagePriv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/image/SkImagePriv.cpp')
-rw-r--r--src/image/SkImagePriv.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/image/SkImagePriv.cpp b/src/image/SkImagePriv.cpp
index 67d31b746a..a020eaff14 100644
--- a/src/image/SkImagePriv.cpp
+++ b/src/image/SkImagePriv.cpp
@@ -80,15 +80,15 @@ bool SkBitmapToImageInfo(const SkBitmap& bm, SkImage::Info* info) {
case SkBitmap::kRGB_565_Config:
info->fColorType = SkImage::kRGB_565_ColorType;
break;
-
+
case SkBitmap::kARGB_8888_Config:
info->fColorType = SkImage::kPMColor_ColorType;
break;
-
+
default:
return false;
}
-
+
info->fWidth = bm.width();
info->fHeight = bm.height();
info->fAlphaType = bm.isOpaque() ? SkImage::kOpaque_AlphaType :
@@ -126,7 +126,7 @@ static bool needs_layer(const SkPaint& paint) {
void SkImagePrivDrawPicture(SkCanvas* canvas, SkPicture* picture,
SkScalar x, SkScalar y, const SkPaint* paint) {
int saveCount = canvas->getSaveCount();
-
+
if (paint && needs_layer(*paint)) {
SkRect bounds;
bounds.set(x, y,
@@ -138,7 +138,7 @@ void SkImagePrivDrawPicture(SkCanvas* canvas, SkPicture* picture,
canvas->save();
canvas->translate(x, y);
}
-
+
canvas->drawPicture(*picture);
canvas->restoreToCount(saveCount);
}