diff --git a/src/shaders/SkPictureShader.cpp b/src/shaders/SkPictureShader.cpp index a71f1fa3f4..f6065e5351 100644 --- a/src/shaders/SkPictureShader.cpp +++ b/src/shaders/SkPictureShader.cpp @@ -224,7 +224,7 @@ sk_sp SkPictureShader::refBitmapShader(const SkMatrix& viewMatrix, : fColorSpace ? fColorSpace : SkColorSpace::MakeSRGB(); SkImage::BitDepth bitDepth = - kRGBA_F16_SkColorType == dstColorType || kRGBA_F32_SkColorType == dstColorType + dstColorType >= kRGBA_F16Norm_SkColorType ? SkImage::BitDepth::kF16 : SkImage::BitDepth::kU8; BitmapShaderKey key(imgCS.get(), bitDepth, fUniqueID, tileScale);