CreateScreenshot in worker

Before I was able to use CreateScreenshot in worker via

const canvas = new OffscreenCanvas(size.width, size.height);
Tools._ScreenshotCanvas = canvas as unknown as HTMLCanvasElement;

That ability is removed by this commit: Fix dump tools premul

1 Like

Hi, how are you doing?

Iā€™m pinging @sebavan for visibilty.

The problem is that the way we did it before was buggedā€¦ I donā€™t know if thereā€™s a way to make it work in a worker, letā€™s wait for @sebavan answer (but be patient, he is on vacation).

Could that work with an offscreen canvas @Evgeni_Popov ?

This PR should do it:

1 Like

LOL I was wondering if it could work and @Evgeni_Popov already pushed it LOL