commit | e13af711d4ff9031c9ed3054a4c33a56a0c62e1f | [log] [tgz] |
---|---|---|
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 13 20:39:14 2014 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 13 20:39:14 2014 +0000 |
tree | 6ffdbe491bde75147efead8c9d21b5d6ebae045e | |
parent | f0b56e74485d59465194b21f89fa3bc3a7962ac6 [diff] [blame] |
Revert of https://codereview.chromium.org/132643007/ Reason for revert: broken tests TBR= NOTREECHECKS=true NOTRY=true BUG= Author: reed@google.com Review URL: https://codereview.chromium.org/134843008 git-svn-id: http://skia.googlecode.com/svn/trunk@13058 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/image/SkImagePriv.cpp b/src/image/SkImagePriv.cpp index af15a75..43cc44b 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()) {