We have different locations in canvas color management code that we call one of these two API for color conversion:
SkColorSpaceXform::apply()
SkImage::makeColorSpace()
All the color conversion calls should have a DCHECK on the result to make sure that they proceed successfully.
This is necessary to detect hidden unsupported cases. No matter what is the result of the color conversion call site, we need to make sure that the renderer does not crash if the call is not successful. As a general strategy, we prefer to silently fail instead of crashing the renderer.
Comment 1 by zakerinasab@chromium.org
, Oct 25 2017