Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 4150a9a55b663584879600346610b2d042259824..1a5c4c4d112964041b2dab85064935629085e9c1 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1177,6 +1177,7 @@ static SkImageInfo make_layer_info(const SkImageInfo& prev, int w, int h, bool i |
const SkPaint* paint) { |
// need to force L32 for now if we have an image filter. Once filters support other colortypes |
// e.g. sRGB or F16, we can remove this check |
+ // SRGBTODO: Can we remove this check now? |
const bool hasImageFilter = paint && paint->getImageFilter(); |
SkAlphaType alphaType = isOpaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType; |
@@ -1185,7 +1186,7 @@ static SkImageInfo make_layer_info(const SkImageInfo& prev, int w, int h, bool i |
return SkImageInfo::MakeN32(w, h, alphaType); |
} else { |
// keep the same characteristics as the prev |
- return SkImageInfo::Make(w, h, prev.colorType(), alphaType, prev.profileType()); |
+ return SkImageInfo::Make(w, h, prev.colorType(), alphaType, sk_ref_sp(prev.colorSpace())); |
} |
} |