Closed
Description
We need to set a max canvas size when recording and downscale the snapshots as necessary, otherwise end users may run into performance issues capturing large canvases and we will end up storing large snapshots.
Right now we call createImageBitmap
on the main thread and transfer it to the webworker to base64 encode. We may want to think about combining this ticket with #10497 to make sure we do not make performance even worse.
We may be able to clone/transfer the canvas to webworker, and then scale it down to a reasonable size, call createImageBitmap()
, and base64 encode it (all on webworker).