According to the discussion with brianosman@, there will be a new SkColorSpaceXform API, taking src, srcColorType, srcAlphaType*, dst, dstColorType, and dstAlphaType*. The alpha type param will be opaque, unpremul, linearPremul, nonlinearPremul (i.e. legacy), so that any possible data shape (and operation) can be described.
Whenever this API is available, refactor the following to use the new API:
- ImageData::ImageDataInCanvasColorSettings()
- ColorCorrectionUtils
- ImageData unit tests
- ImageBitmap unit tests
- CanvasRenderingContext unit tests
Comment 1 by zakerinasab@chromium.org
, Nov 27 2017