diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/viewer/ImageSlide.cpp | 2 | ||||
-rw-r--r-- | tools/visualize_color_gamut.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/viewer/ImageSlide.cpp b/tools/viewer/ImageSlide.cpp index 3ba6b58460..b0471547bc 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); diff --git a/tools/visualize_color_gamut.cpp b/tools/visualize_color_gamut.cpp index bc40152a44..4d340f8d98 100644 --- a/tools/visualize_color_gamut.cpp +++ b/tools/visualize_color_gamut.cpp @@ -151,7 +151,7 @@ int main(int argc, char** argv) { } // Draw gamut for the input image. - sk_sp<SkColorSpace> colorSpace = sk_ref_sp(codec->getColorSpace()); + sk_sp<SkColorSpace> colorSpace = sk_ref_sp(codec->getInfo().colorSpace()); if (!colorSpace) { SkDebugf("Image had no embedded color space information. Defaulting to sRGB.\n"); colorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named); |