Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 1a5c4c4d112964041b2dab85064935629085e9c1..4150a9a55b663584879600346610b2d042259824 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1177,7 +1177,6 @@ |
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; |
@@ -1186,7 +1185,7 @@ |
return SkImageInfo::MakeN32(w, h, alphaType); |
} else { |
// keep the same characteristics as the prev |
- return SkImageInfo::Make(w, h, prev.colorType(), alphaType, sk_ref_sp(prev.colorSpace())); |
+ return SkImageInfo::Make(w, h, prev.colorType(), alphaType, prev.profileType()); |
} |
} |