Support numerical transfer functions in readPixels()
authorMatt Sarett <msarett@google.com>
Tue, 2 May 2017 20:19:51 +0000 (16:19 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 2 May 2017 21:05:51 +0000 (21:05 +0000)
commit733340a6997762dc2fe5048cfe5af33bf8293d93
tree5ded5a1cfdfedac13a6de0156f459cde82ba0d92
parent26b44df2333d5e8cec8aef11ab598d63b4ee05c7
Support numerical transfer functions in readPixels()

Let's do this because:
(1) We can.
(2) Android and Chrome have asked for it.
(3) It will simplify the implementation of SkImage::makeColorSpace().

Bug: skia:
Change-Id: Ia3c322b8a58c79ad67cdebe744e0623bd59dcffd
Reviewed-on: https://skia-review.googlesource.com/15148
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Matt Sarett <msarett@google.com>
gm/readpixels.cpp
src/core/SkConvertPixels.cpp
src/core/SkImageInfoPriv.h