Move sRGB <-> linear conversion components to their own files.
authormtklein <mtklein@chromium.org>
Fri, 8 Jul 2016 13:33:16 +0000 (06:33 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 8 Jul 2016 13:33:16 +0000 (06:33 -0700)
commitac41bac40f5a80d2bc5ccec584c23478a6900179
tree923db53d051d849d57e82cc35c573733324a56dd
parent0e56972e5f69f75cf098fec10687f128430c13e6
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.android:Test-Android-GCC-Nexus5-CPU-NEON-Arm7-Release-Trybot;client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Committed: https://skia.googlesource.com/skia/+/45e58c8807179638980aae8503573b950b844e4c
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]