SkPicture Diff

12 views
Skip to first unread message

corey....@gmail.com

unread,
May 9, 2022, 1:08:15 PMMay 9
to skia-discuss
Are there any tools that are part of the Skia SDK for comparing/diff'ing two SkPicture instances? Was mostly thinking of this as an alternative to pixel tests, focused mainly on validating that the correct APIs are being called to rasterize.

Clearly I could diff the serialized binary form but the result doesn't really highlight human readable deltas - is the an op or tag based serializer to json of a SkPicture somewhere?

Brian Osman

unread,
May 9, 2022, 1:37:47 PMMay 9
to skia-d...@googlegroups.com
It's not well tested, but the DM testing application does have a dump-to-json mode:

out/Debug/dm --config jsdebug --skps skps --match my_skp.skp -w output

That config is really just using the DebugCanvas' json output (the same view that you get when open an SKP at debugger.skia.org): https://source.chromium.org/chromium/chromium/src/+/main:third_party/skia/dm/DMSrcSink.cpp

On Mon, May 9, 2022 at 1:08 PM corey....@gmail.com <corey....@gmail.com> wrote:
Are there any tools that are part of the Skia SDK for comparing/diff'ing two SkPicture instances? Was mostly thinking of this as an alternative to pixel tests, focused mainly on validating that the correct APIs are being called to rasterize.

Clearly I could diff the serialized binary form but the result doesn't really highlight human readable deltas - is the an op or tag based serializer to json of a SkPicture somewhere?

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/14ec2571-f8e6-4dfa-8968-1a734f4cc565n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages