Index: src/image/SkImage_Raster.cpp |
diff --git a/src/image/SkImage_Raster.cpp b/src/image/SkImage_Raster.cpp |
index 489685b2fc5bcfad3aa90dcf284fa2ebad2c019b..aac4995cfba9deb91edf1470e6f6904677be0e2d 100644 |
--- a/src/image/SkImage_Raster.cpp |
+++ b/src/image/SkImage_Raster.cpp |
@@ -270,7 +270,7 @@ bool SkImage_Raster::onAsLegacyBitmap(SkBitmap* bitmap, LegacyBitmapMode mode) c |
// pixelref since the caller might call setImmutable() themselves |
// (thus changing our state). |
if (fBitmap.isImmutable()) { |
- bitmap->setInfo(fBitmap.info()); |
+ bitmap->setInfo(fBitmap.info(), fBitmap.rowBytes()); |
bitmap->setPixelRef(fBitmap.pixelRef(), fBitmap.pixelRefOrigin()); |
return true; |
} |