diff options
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkImageInfo.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h index c0e0be13f9..2be04ff5a7 100644 --- a/include/core/SkImageInfo.h +++ b/include/core/SkImageInfo.h @@ -198,9 +198,7 @@ public: 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 @@ public: */ 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 @@ public: */ 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); } /** |