diff options
author | Matt Sarett <msarett@google.com> | 2017-05-12 08:38:02 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-12 13:05:39 +0000 |
commit | f391f4e07d4424498ca81c8b4c328cc2049d5105 (patch) | |
tree | ef0d79509723d76b687d8ea4778e5fab50839be4 /src/image | |
parent | 6cdc22cde8e6297d34fdaaa3ed5e69ae86c30a77 (diff) |
Pass alphaType to append_gamut_transform() to inform the clamp
BUG=skia:
Change-Id: I1a8aef36043d4091bffae95b0275fa7fa8a35c97
Reviewed-on: https://skia-review.googlesource.com/9441
Commit-Queue: Matt Sarett <msarett@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/image')
-rw-r--r-- | src/image/SkImageShader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image/SkImageShader.cpp b/src/image/SkImageShader.cpp index 03897239d0..0dbf944948 100644 --- a/src/image/SkImageShader.cpp +++ b/src/image/SkImageShader.cpp @@ -385,6 +385,6 @@ bool SkImageShader::onAppendStages(SkRasterPipeline* p, SkColorSpace* dstCS, SkA p->append(SkRasterPipeline::clamp_0); p->append(SkRasterPipeline::clamp_a); } - append_gamut_transform(p, alloc, info.colorSpace(), dstCS); + append_gamut_transform(p, alloc, info.colorSpace(), dstCS, kPremul_SkAlphaType); return true; } |