78 ms·
Very cool. What are the size of these screenshots and how long do they take to produce? I’m wondering about them as alternatives to frame capture for remote br
by graderjs 4y ago
Very cool. What are the size of these screenshots and how long do they take to produce?
I’m wondering about them as alternatives to frame capture for remote browsers isolation to save bandwidth.[0]
Also related, the Chrome Debugging Protocol exposes a similar bit of info in the LayerTree domain: you can actually get the canvas draw instructions to render a webpage on a canvas.[1]
[1] https://chromedevtools.github.io/devtools-protocol/tot/LayerTree/#method-snapshotCommandLog https://chromedevtools.github.io/devtools-protocol/tot/Layer...
[0] https://chromedevtools.github.io/devtools-protocol/tot/LayerTree/#method-snapshotCommandLog https://chromedevtools.github.io/devtools-protocol/tot/Layer...
- graderjs 4y agoOops 0 was supposed to be https://github.com/crisdosyago/BrowserBox https://github.com/crisdosyago/BrowserBox
- fathyb 4y agoI didn't know about the devtools protocol snapshots, pretty cool! I takes ~5 ms to generate an SVG for google.com (not including loading the page). For your use-case I'd recommend doing something similar but using the SkPicture structure instead. It would cut the conversion overhead, should support every Skia features, and with some tuning it would allow you to efficiently split bitmaps from vectors (allowing you to send the bitmaps once, and only vector changes after that). Something I like about using Skia for this use-case is that it allows for zero-latency scrolling.