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