SkGainmapInfo: Update parameter names and meanings

The encoding of SkGainmapInfo's parameters in log space can cause
confusion because some places want to work in log2 space and others
want to work in natural log space. Also some libraries have log2 and
exp2 while others don't.

Changing all parameters to be linear. This way, all equations work
regardless of which log base is used (as long as a consistent one is
used in all calculations). This should avoid log-base bugs.

Also rename SkGainmapInfo parameters to be more clear, and make
the epsilon parameters be vectors.

Leave the old parameters in place to avoid breaking Android builds
until they roll.

Bug: skia:14031
Change-Id: I5ec3e19a779b46d0e5aca76cc797f13f61f2b6f2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/637277
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Reck <jreck@google.com>
Reviewed-by: John Reck <jreck@google.com>
7 files changed