Move sRGB <-> linear conversion components to their own files.
authormtklein <mtklein@chromium.org>
Thu, 7 Jul 2016 21:47:36 +0000 (14:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 Jul 2016 21:47:36 +0000 (14:47 -0700)
commit45e58c8807179638980aae8503573b950b844e4c
tree34fa99eef071aeb4ae5bc43b10de48f63d3b03af
parent6d2c3e7da62ee4cdb9dc006e94da3c71902e5325
Move sRGB <-> linear conversion components to their own files.

This makes them a little easier to use outside SkColorXform code.

I've added some notes about how best to use them and their eccentricities, and added a test.

Ultimately any software sRGB <-> linear conversion should funnel somehow through here.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2128893002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Review-Url: https://codereview.chromium.org/2128893002
gyp/core.gypi
src/core/SkColorSpaceXform.cpp
src/core/SkSRGB.cpp [new file with mode: 0644]
src/core/SkSRGB.h [new file with mode: 0644]
src/opts/SkColorXform_opts.h
tests/SRGBTest.cpp [new file with mode: 0644]