Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index 932d80f570a2bfa9faa307d5766cd90718ff0a2f..f3f5f78b57c2909b39f7df15484a60c03fd0f500 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -902,7 +902,7 @@ Error ColorCodecSrc::draw(SkCanvas* canvas) const { |
break; |
case kDst_sRGB_Mode: |
case kDst_HPZR30w_Mode: { |
- sk_sp<SkColorSpace> srcSpace = sk_ref_sp(codec->getColorSpace()); |
+ sk_sp<SkColorSpace> srcSpace = sk_ref_sp(codec->getInfo().colorSpace()); |
sk_sp<SkColorSpace> dstSpace = (kDst_sRGB_Mode == fMode) ? |
SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named) : |
SkColorSpace::NewICC(dstData->data(), dstData->size()); |