Index: src/image/SkImagePriv.cpp |
diff --git a/src/image/SkImagePriv.cpp b/src/image/SkImagePriv.cpp |
index af15a7599b4e7eae788047e5b83f60efa2249b09..43cc44b2fa25aa5762611e3bfcf39e467f2e29f8 100644 |
--- a/src/image/SkImagePriv.cpp |
+++ b/src/image/SkImagePriv.cpp |
@@ -74,7 +74,7 @@ |
SkImage* image = NULL; |
if (canSharePixelRef || bm.isImmutable()) { |
- image = SkNewImageFromPixelRef(bm.pixelRef()); |
+ image = SkNewImageFromPixelRef(info, bm.pixelRef(), bm.rowBytes()); |
} else { |
bm.lockPixels(); |
if (bm.getPixels()) { |