diff --git a/src/codec/SkAndroidCodec.cpp b/src/codec/SkAndroidCodec.cpp index 1561d31fd6..2d2b20abaa 100644 --- a/src/codec/SkAndroidCodec.cpp +++ b/src/codec/SkAndroidCodec.cpp @@ -162,17 +162,8 @@ SkAlphaType SkAndroidCodec::computeOutputAlphaType(bool requestedUnpremul) { sk_sp SkAndroidCodec::computeOutputColorSpace(SkColorType outputColorType, sk_sp prefColorSpace) { switch (outputColorType) { -#ifdef SK_SUPPORT_LEGACY_ANDROID_CODEC_COLORSPACE - case kRGBA_F16_SkColorType: - // Note that |prefColorSpace| is ignored, F16 is always linear sRGB. - return SkColorSpace::MakeSRGBLinear(); - case kRGB_565_SkColorType: - // Note that |prefColorSpace| is ignored, 565 is always sRGB. - return SkColorSpace::MakeSRGB(); -#else case kRGBA_F16_SkColorType: case kRGB_565_SkColorType: -#endif case kRGBA_8888_SkColorType: case kBGRA_8888_SkColorType: { // If |prefColorSpace| is supplied, choose it.