Allow any color space when making a picture backed image
Change-Id: Icb6d56f8e88396b5d2c82d61afd7fd633b39e00c Reviewed-on: https://skia-review.googlesource.com/146528 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
e1c9d3c9e2
commit
11e6d95005
@ -23,10 +23,6 @@ SkPictureImageGenerator::Make(const SkISize& size, sk_sp<SkPicture> picture, con
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (colorSpace && (!colorSpace->gammaCloseToSRGB() && !colorSpace->gammaIsLinear())) {
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
SkColorType colorType = kN32_SkColorType;
|
SkColorType colorType = kN32_SkColorType;
|
||||||
if (SkImage::BitDepth::kF16 == bitDepth) {
|
if (SkImage::BitDepth::kF16 == bitDepth) {
|
||||||
colorType = kRGBA_F16_SkColorType;
|
colorType = kRGBA_F16_SkColorType;
|
||||||
|
Loading…
Reference in New Issue
Block a user