Currently in ImageBitmap::copyBitmapData we use null color space to read the pixels from image bitmap (for different purposes, including serialization). Instead, we must preserve the pixels color information by using the color space of the current ImageBitmap object (to avoid gamut clamping, etc.).
This requires accessing m_image->imageForCurrentFrame()->colorSpace(), to be provided in crbug.com/skia/6022 .
When this is fixed, please check the call hierarchy of ImageBitmap::copyBitmapData to make sure proper parameters are passed to this function.
Comment 1 by zakerinasab@chromium.org
, Dec 5 2016