On Chromium Android, pixel layout encoding is RGBA, however, other Chrome platforms use BGRA. We need to correctly dump the image with RGBA encoding and reorder the layout of pixels to calculate the checksum in order to match the checksum of other Chrome platforms.
Created attachment 138576 [details] patch v1
Comment on attachment 138576 [details] patch v1 View in context: https://bugs.webkit.org/attachment.cgi?id=138576&action=review This change is acceptable. However - introduce webkit_support::EncodeRGBAPNGWithChecksum(), and - Make re-ordered bytes on the fly and pour it to MD5 digester would be better for performance. > Tools/DumpRenderTree/chromium/TestShell.cpp:674 > + WTF::MD5 digester; > + WTF::Vector<uint8_t, 16> digestValue; You don't need to add WTF::. > Tools/DumpRenderTree/chromium/TestShell.cpp:685 > + WTF::Vector<SkPMColor> pixelsInBGRAOrder; ditto. > Tools/DumpRenderTree/chromium/TestShell.cpp:688 > + SkPMColor* srcRow = reinterpret_cast<SkPMColor*>(sourceBitmap.getAddr32(0, y)); nit: The variable name should be sourceRow for consistency.
*** This bug has been marked as a duplicate of bug 86040 ***