aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/images/SkWEBPImageEncoder.cpp
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2017-01-10 11:28:54 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-10 18:26:26 +0000
commit84014f03a90d137c0f5c95e15c1e5f8503df7101 (patch)
treee8331c967bf244ed1e10d8ddeafdb4adc2b12059 /src/images/SkWEBPImageEncoder.cpp
parentdc11f9810c7a056b95fd7408216323a6a1eab246 (diff)
Respect SkColorSpace in SkPNGImageEncoder
This only changes behavior when the input SkBitmap/SkPixmap is tagged with a non-null SkColorSpace. Android tags their bitmaps as sRGB when linear blending is enabled. So this only changes behavior in Android when linear blending is turned on. *If linear blending is turned on, this will do a color correct encode (which is the desired behavior). *If linear blending is turned off, this will do a legacy encode. TODO: Add support for F16. TODO: Add color space support to WEBP. TODO: Tag encoded images with ICC profiles (when it makes sense). BUG=skia: Change-Id: Idd8a2836371d24a453d953e6fe2e76a87751be96 Reviewed-on: https://skia-review.googlesource.com/6498 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Leon Scroggins <scroggo@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'src/images/SkWEBPImageEncoder.cpp')
0 files changed, 0 insertions, 0 deletions