Fix bit-depth selection for picture shader playback with F16Norm
Bug: skia: Change-Id: Ic85817901ffd30faf6ba40f1b14a507ed1dd2e8f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/198821 Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@google.com> Auto-Submit: Brian Osman <brianosman@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
d10a78f57b
commit
dfddf340c1
@ -224,7 +224,7 @@ sk_sp<SkShader> 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);
|
||||
|
Loading…
Reference in New Issue
Block a user