Index: tools/viewer/ImageSlide.cpp |
diff --git a/tools/viewer/ImageSlide.cpp b/tools/viewer/ImageSlide.cpp |
index 3ba6b584603064fa9aee965dfd13a038170a64ab..b0471547bcb3180efbd0d2fbac5b52a58cbf39bc 100644 |
--- a/tools/viewer/ImageSlide.cpp |
+++ b/tools/viewer/ImageSlide.cpp |
@@ -41,7 +41,7 @@ void ImageSlide::load(SkScalar, SkScalar) { |
fImage->asLegacyBitmap(&fOriginalBitmap, SkImage::kRO_LegacyBitmapMode); |
SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(encoded.get())); |
- sk_sp<SkColorSpace> srcSpace = sk_ref_sp(codec->getColorSpace()); |
+ sk_sp<SkColorSpace> srcSpace = sk_ref_sp(codec->getInfo().colorSpace()); |
sk_sp<SkColorSpace> dstSpace = SkColorSpace::NewNamed(SkColorSpace::kAdobeRGB_Named); |
std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(srcSpace, dstSpace); |
fOriginalBitmap.deepCopyTo(&fXformedBitmap); |