Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upadd_image encourages copies of image data #359
Closed
Comments
|
Note that ImageData now stores an |
|
For IPC, |
|
We now have the external image API, which can be used to supply images with zero-copy overhead. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add_image() currently takes a vec this means that if owners of the image data want to keep it around they have to make a copy. This is what currently happens with servo. It would be much better for add_image to take a reference to this data to avoid the copy.