ImageDecodeCache has N32 pixel format hardwired in different locations. We need to fully support half float images as a partial requirement for properly supporting PNG 16 bit in color managed canvas.
According to khushalsagar, it is better to create another instance of the cache for F16 format, instead of extending the ImageDecodeCache to accept two decoded versions of the wide gamut image (in N32 and F16).
Comment 1 by zakerinasab@chromium.org
, May 31 2018