Skip to content

Add coverage of copying a canvas drawing_buffer after the end of the RAF #4323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Kangz opened this issue Apr 1, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Kangz
Copy link
Collaborator

Kangz commented Apr 1, 2025

Chromium had a longstanding bug that it couldn't make a copy of a drawing buffer after it had been sent to the compositor. This was fixed recently but no new tests started passing, which indicates missing coverage.

We should have tests for transferToImageBitmap, toBlob, toDataURL and friends that look like:

requestAnimationFrame( () => {
   do the drawing
})
// wait for the animation frame
call toBlob and friends here
@Kangz Kangz added the enhancement New feature or request label Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant