diff options
author | Brian Osman <brianosman@google.com> | 2018-01-16 09:22:16 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-16 14:41:51 +0000 |
commit | cf3a617350c5be1b861d0975e358f3324ee9ac82 (patch) | |
tree | 9618401ce4c9018e88c1215aeb97337784d04f7e /src/gpu/GrBackendTextureImageGenerator.cpp | |
parent | cd3261ac65b579bf8555973362e58629b7adda6b (diff) |
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>
Diffstat (limited to 'src/gpu/GrBackendTextureImageGenerator.cpp')
-rw-r--r-- | src/gpu/GrBackendTextureImageGenerator.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gpu/GrBackendTextureImageGenerator.cpp b/src/gpu/GrBackendTextureImageGenerator.cpp index 21f728412d..5dc23963f7 100644 --- a/src/gpu/GrBackendTextureImageGenerator.cpp +++ b/src/gpu/GrBackendTextureImageGenerator.cpp @@ -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; |