When crbug.com/skia/8019 is fixed, in ColorCorrectionTestUtils::MatchSkImages():
- Check the color type of the images
- Use SkPixmap instead of doing a readback to memory.
The Skia bug was closed since this is an intended behavior. Skia does not keep a cached link to the decoded image, since the decoded image does not have some of the info set correctly, and it fails on peekPixmap. The solution to this is to create a raster version of the decoded image and access the pixmap then.
See this fiddle: https://fiddle.skia.org/c/6bc9f45f821533f128003add293c14f8
Comment 1 by zakerinasab@chromium.org
, May 29 2018