Subject : Using SkMD5 for cross‑platform snapshot (pixel) testing in Skia

7 views
Skip to first unread message

SONAIPANDI SONAIPANDI

unread,
9:22 AM (7 hours ago) 9:22 AM
to skia-discuss

Hello Team,

We are developing a 2D rendering application using Skia that needs to support all major desktop and mobile operating systems. For visual regression tests, our idea is to render a frame, compute an MD5 hash of the pixel buffer using SkMD5, and compare it against a stored “golden” hash to detect changes.

We have reviewed this approach, but we would like feedback on what disadvantages or pitfalls we might face when using an SkMD5‑based hasher for snapshot testing, especially in a cross‑platform setup. For example, are there known issues such as platform‑dependent rendering differences, floating‑point variations, or MD5 being too sensitive / not ideal for image comparison?

Any guidance or experience using SkMD5 (or other Skia‑based approaches) for snapshot/pixel testing would be very helpful.

Thanks in advance.

Reply all
Reply to author
Forward
0 new messages