In multiple locations in Blink->Canvas code we use nullptr as the color space of the destination SkImageInfo when calling SkImage::readPixels(), trusting Skia to interpret this as "don't do any color conversion when reading the pixels".
This is how Skia works now (Look at can_memcpy() in SkConvertPixels.cpp). However, it is safer to set the destination color space the same as the source instead, so things don't get messy if Skia changed this behavior in their ongoing color space refactoring effort.
Comment 1 by bugdroid1@chromium.org
, Mar 19 2018