CanvasKit: Playing .mskp

24 views
Skip to first unread message

AntonV4

unread,
Jun 23, 2022, 9:40:32 AMJun 23
to skia-discuss
Hello CanvasKit team,

are there any plans to add MSKPPlayer to the CanvasKit?

We would like to play .mskp files in the browser.
Or is it already possible and I'm missing something?

Thank you!

Best,
Anton

Brian Salomon

unread,
Jun 23, 2022, 10:31:42 AMJun 23
to skia-d...@googlegroups.com
Hi,

What is your use case for MSKPs? We mostly think of them as a debugging assist for the Skia team. That particular piece of code is part of our "viewer" tool that is used by Skia devs to test, debug, and profile Skia. For MSKPs in particular we use that to reproduce performance or correctness issues using MSKPs captured in clients. We have considered making a WASM version of the viewer tool but doing so is not currently staffed.

Brian

--
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/3a5610bc-922e-4569-8ce4-353c2fafb05cn%40googlegroups.com.


--

Brian Salomon | Office Hours: go/bsalomon-office | bsal...@google.com

AntonV4

unread,
Jun 23, 2022, 11:45:18 AMJun 23
to skia-discuss
Hi Brian,

thank you for your answer!
Our intention is to make Skia-animations in vvvv (it uses SkiaSharp), render them into mskps (that part is working, checked in the wasm debugger) in order to playback these in the Browser.

Best,
Anton

Brian Salomon

unread,
Jun 23, 2022, 4:38:24 PMJun 23
to skia-d...@googlegroups.com
Hi Anton,

My advice would be to take that MSKPPlayer code and fork it into your application and adopt it for your needs. I'd just add the caveat that, unlike regular SKP, MSKP is not part of the public API and so only has the degree of testing, stability and versioning for our own testing and debugging needs.

Brian

AntonV4

unread,
Jun 23, 2022, 5:04:09 PMJun 23
to skia-discuss
Hi Brian,

then I have a follow-up question.
Are there plans to add SkPicture::playback to the CanvasKit?

Thank you!

Brian Salomon

unread,
Jun 24, 2022, 9:48:18 AMJun 24
to skia-d...@googlegroups.com
Hi Anton,

I'm not sure it's ever come before. Does Canvas::drawPicture not meet your requirements?

Brian

AntonV4

unread,
Jun 28, 2022, 4:25:31 PMJun 28
to skia-discuss
Hi Brian,

I was asking about SKPicture::Playback() because of this line here:

I came across it while digging about MSKPPlayer. But maybe I'm on the wrong track?

Best,
Anton
Reply all
Reply to author
Forward
0 new messages