Index: include/core/SkImageInfo.h |
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h |
index c0e0be13f93d394712e4ca7131e16a1458d0c7a6..2be04ff5a7a966d7b4e1cb6f94a3b6d0c3a68438 100644 |
--- a/include/core/SkImageInfo.h |
+++ b/include/core/SkImageInfo.h |
@@ -198,9 +198,7 @@ |
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at, |
SkColorProfileType pt = kLinear_SkColorProfileType) { |
- sk_sp<SkColorSpace> cs = (kSRGB_SkColorProfileType == pt) ? |
- SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named) : nullptr; |
- return SkImageInfo(width, height, ct, at, pt, cs); |
+ return SkImageInfo(width, height, ct, at, pt, nullptr); |
} |
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at, |
@@ -211,9 +209,7 @@ |
*/ |
static SkImageInfo MakeN32(int width, int height, SkAlphaType at, |
SkColorProfileType pt = kLinear_SkColorProfileType) { |
- sk_sp<SkColorSpace> cs = (kSRGB_SkColorProfileType == pt) ? |
- SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named) : nullptr; |
- return SkImageInfo(width, height, kN32_SkColorType, at, pt, cs); |
+ return SkImageInfo(width, height, kN32_SkColorType, at, pt, nullptr); |
} |
/** |
@@ -221,9 +217,7 @@ |
*/ |
static SkImageInfo MakeN32Premul(int width, int height, |
SkColorProfileType pt = kLinear_SkColorProfileType) { |
- sk_sp<SkColorSpace> cs = (kSRGB_SkColorProfileType == pt) ? |
- SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named) : nullptr; |
- return SkImageInfo(width, height, kN32_SkColorType, kPremul_SkAlphaType, pt, cs); |
+ return SkImageInfo(width, height, kN32_SkColorType, kPremul_SkAlphaType, pt, nullptr); |
} |
/** |