Add SkGainmapShader

Add the SkGainmapShader that converts from the base image's color
space to a linearized version of that space, applies the gainmap
(ignoring its color space) in the space, and then converts to the
destination color space.

Add tests.

Bug: skia:14031
Change-Id: Iebb66aadcd039ff30538f99140903f2c0dfb9fbf
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/631097
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Christopher Cameron <ccameron@google.com>
9 files changed