Are web workers allowed to access a canvas object?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Small update, as the question is now more than half a year old:
In Chrome/Chromium 6 you can now send a canvas’ ImageData object to a web worker, let the web worker make changes to the object and then write it back to the canvas using putImageData(..).
Google’s Chromabrush does it this way, the source-code can be found here:
Update:
The latest development snapshots of Opera (10.70) and Firefox (4.0b1) also support passing ImageData objects to a web worker.
Update 2017:
Actual links from Github (easier to find needed files from
Chromabrush):