Store SkColorSpaceXform gamma LUTs in a malloced field
authormsarett <msarett@google.com>
Wed, 14 Sep 2016 18:02:04 +0000 (11:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 14 Sep 2016 18:02:04 +0000 (11:02 -0700)
commit7bbda991af353fbe6b34132132d211d23a3dba8c
tree205864d063703caca27646095ba244dac6781ce2
parent896ddb706d2eb9d8ebad61f767de058f7f0708a0
Store SkColorSpaceXform gamma LUTs in a malloced field

In order of likelihood:
(1) Tables are never used, since gamma is recognized and named.
(2) Only use one table, since all three gammas are the same.
(3) Actually need three tables.

No reason to waste a bunch of space for these tables on
SkColorSpaceXform, when it will likely be unused.

This will be more efficient in lots of cases, but is particularly
useful when the client really only wants a gamut xform.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2336913005

Review-Url: https://codereview.chromium.org/2336913005
src/core/SkColorSpaceXform.cpp
src/core/SkColorSpaceXform.h