Index: samplecode/SamplePicture.cpp |
diff --git a/samplecode/SamplePicture.cpp b/samplecode/SamplePicture.cpp |
index 2f7d691d17af7b18aa64d556e59ffd9560b3982e..66289affe0992219b6466051e622061aff94ce64 100644 |
--- a/samplecode/SamplePicture.cpp |
+++ b/samplecode/SamplePicture.cpp |
@@ -40,9 +40,7 @@ |
if (SkImageDecoder::DecodeStream(stream, &bm, SkBitmap::kNo_Config, |
SkImageDecoder::kDecodeBounds_Mode)) { |
- SkImageInfo info; |
- bm.asImageInfo(&info); |
- SkPixelRef* pr = new SkImageRef_GlobalPool(info, stream, 1); |
+ SkPixelRef* pr = new SkImageRef_GlobalPool(stream, bm.config(), 1); |
bm.setPixelRef(pr)->unref(); |
} |
} |