ImageBitmap constructor from ImageData does not handle the needed color space conversions correctly. This was noted again when trying to add P3 and Rec2020 support to ImageBitmap ( crbug.com/714266 ).
I assume the expected behavior is to not lose color information. Hence, the color space of the ImageBitmap will be that of source ImageData. the default color type is kN32_SkColorType. If the storage format of the ImageData is anything but Uint8ClampedArray, the color type of the SkImage backing ImageBitmap will be kRGBA_F16SkColorType.
This will be addressed on top of crbug.com/714266 .
Comment 1 by zakerinasab@chromium.org
, Apr 24 2017