Remove color space restrictions from GrBackendTextureImageGenerator
This restriction should have only been enforced in linear-blending mode, and even then, it's no longer true. Fixes https://github.com/flutter/flutter/issues/14077 Bug: skia: Change-Id: Ie0904475e29b213ad7995b8f39c02f6ea7396a9a Reviewed-on: https://skia-review.googlesource.com/94782 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
cd3261ac65
commit
cf3a617350
@ -33,10 +33,6 @@ std::unique_ptr<SkImageGenerator>
|
||||
GrBackendTextureImageGenerator::Make(sk_sp<GrTexture> texture, GrSurfaceOrigin origin,
|
||||
sk_sp<GrSemaphore> semaphore,
|
||||
SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) {
|
||||
if (colorSpace && (!colorSpace->gammaCloseToSRGB() && !colorSpace->gammaIsLinear())) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
SkColorType colorType = kUnknown_SkColorType;
|
||||
if (!GrPixelConfigToColorType(texture->config(), &colorType)) {
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user