aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBackendTextureImageGenerator.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-03-27 09:56:31 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-27 14:45:14 +0000
commit052ef695708eddeaa81c3fcf5747824c1f0ad073 (patch)
tree1122ad13a7fe3a97d2e6bf4b160f5b9582e679de /src/gpu/GrBackendTextureImageGenerator.h
parentf830443814fb21bd4b1009186b23680e3a38935e (diff)
Pin color type when a cross-context image is constructed
Fixes issues with gray images that may be incorrectly re-interpreted as alpha when re-wrapped. (https://github.com/flutter/flutter/issues/15600) Change-Id: I4a78466073e14d212108d168eed0b2df1bc92ffe Reviewed-on: https://skia-review.googlesource.com/116484 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrBackendTextureImageGenerator.h')
-rw-r--r--src/gpu/GrBackendTextureImageGenerator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrBackendTextureImageGenerator.h b/src/gpu/GrBackendTextureImageGenerator.h
index 59f0d510da..5197d32273 100644
--- a/src/gpu/GrBackendTextureImageGenerator.h
+++ b/src/gpu/GrBackendTextureImageGenerator.h
@@ -29,7 +29,7 @@ class GrSemaphore;
class GrBackendTextureImageGenerator : public SkImageGenerator {
public:
static std::unique_ptr<SkImageGenerator> Make(sk_sp<GrTexture>, GrSurfaceOrigin,
- sk_sp<GrSemaphore>,
+ sk_sp<GrSemaphore>, SkColorType,
SkAlphaType, sk_sp<SkColorSpace>);
~GrBackendTextureImageGenerator() override;