aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2017-05-12 08:38:02 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-12 13:05:39 +0000
commitf391f4e07d4424498ca81c8b4c328cc2049d5105 (patch)
treeef0d79509723d76b687d8ea4778e5fab50839be4 /src/image
parent6cdc22cde8e6297d34fdaaa3ed5e69ae86c30a77 (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.cpp2
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;
}