Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove image_data field from CanvasPixelData #13734
This is the current state, but now it complains about this:
error: no field `image_data` on type `canvas_traits::CanvasPixelData` --> /home/danilo/Projects/servo/components/script/dom/htmlcanvaselement.rs:210:35 | 210 | => pixel_data.image_data.to_vec(), | ^^^^^^^^^^ did you mean `image_key`? error: aborting due to previous error
I'm not sure I can remove that as well...
@jdm If it's completely needed, in the case of the webgl context you should be able to use the same path that readPixels (sending a command to WR). In the 2d canvas case it would need to use the draw target, there's code that does that also.
I'm not in front of my computer right now, I'll try to give more details when I am if needed :)