diff options
author | 2017-01-12 18:36:38 -0500 | |
---|---|---|
committer | 2017-01-13 14:39:25 +0000 | |
commit | 523116d9fee8b79af09563b55b19cbd267353300 (patch) | |
tree | 36c13950b852908519463d557192f516e3ef93ba /src/utils/SkFrontBufferedStream.cpp | |
parent | 76467a11a0aa4ba15f0f2e3ee078ba9b6ecbaa91 (diff) |
Unify ICC support for gray jpegs and gray pngs
(1) Parse ICC gray profiles into RGB SkColorSpace objects. This is
easy - "gray transfer fn + white point" is subset of "RGB transfer fns
+ matrix". This makes it easier/possible for the drawing code to reason
about color spaces attached to kGray buffers.
(2) Allow gray images to be tagged with gray ICCs OR rgb ICCs. ICC gray
forces to designer to use "D50 gray". It is not uncommon to see gray
images with RGB profiles - and this actually allows the designer to
choose more kinds of gray (ex: sRGB gray).
(3) Make SkJpegCodec support gray images with RGB ICCs.
(4) Make SkPngCodec support gray images with Gray ICCs.
(5) Delete gray from SkColorSpace_A2B - we no longer create these objects
for gray profiles.
BUG=skia:
Change-Id: Id5eca803798330c54a19c4657def2e5976d1941e
Reviewed-on: https://skia-review.googlesource.com/6922
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'src/utils/SkFrontBufferedStream.cpp')
0 files changed, 0 insertions, 0 deletions