backend's acquire_source_image question

S Boucher <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Playing with backends (my own homegrown backend), I'm seeing acquire_source_image being called twice on a given surface, before the acquired images are released.

I see this while running the test clear-source (more specifically, it is in the mask_self part of the test).

What is the contract that the backend is required to respect for acquire_source_image and acquire_dest_image? cairoint.h is note particularly verbose on that.

Can the backend create 2 images who both point to the same pixels memory?  This strikes me as counterintuitive to do, but it is expensive to copy when the surfaces start to get large.

Or maybe this dual acquisition is not supposed to happen in the first place?

Any suggestion appreciated.
Thanks,
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.