diff options
author | Brian Osman <brianosman@google.com> | 2016-12-29 11:50:48 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-03 14:35:06 +0000 |
commit | 5f500920e719b215d5e0e36a6679995ed3c9b4ad (patch) | |
tree | f96ea90c554e0980efe5e24619cb8e03cd72dabc /gm/imagefilters.cpp | |
parent | 43fb7a014b785960e5892cadd0bd30c10328ae8a (diff) |
Change GaussianBlur logic wrt color spaces
I was using 'source' where I should have said 'input'. Also, to be
consistent with other image filters, ensure that the input is in the
destination gamut before we start blurring.
BUG=skia:
Change-Id: I751961b42a2a5d110ee8ea8916279c8fe0d5248e
Reviewed-on: https://skia-review.googlesource.com/6486
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'gm/imagefilters.cpp')
-rw-r--r-- | gm/imagefilters.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/imagefilters.cpp b/gm/imagefilters.cpp index 27422b5611..8855afdd3e 100644 --- a/gm/imagefilters.cpp +++ b/gm/imagefilters.cpp @@ -68,7 +68,7 @@ DEF_SIMPLE_GM(imagefilters_xfermodes, canvas, 480, 480) { } static sk_sp<SkImage> make_image(SkCanvas* canvas) { - const SkImageInfo info = SkImageInfo::MakeN32Premul(100, 100); + const SkImageInfo info = SkImageInfo::MakeS32(100, 100, kPremul_SkAlphaType); auto surface(canvas->makeSurface(info)); if (!surface) { surface = SkSurface::MakeRaster(info); |