[cairo] is self-copy supposed to work?

Robert O'Callahan robert at ocallahan.org
Fri Apr 30 06:19:42 PDT 2010


On Sat, May 1, 2010 at 12:30 AM, Benjamin Otte <otte at redhat.com> wrote:

> On Fri, 2010-04-30 at 12:28 +0100, Chris Wilson wrote:
> > Currently self-copy behaviour is underspecified. I think the consensus is
> > that self-modification is undesired...
> >
> Last I brought this up the consensus was a lot stronger than just
> "undesired".
> I'd vote to make it an explicit error on the gstate if you set a
> source/mask that was identical to the target.
> If you document that clearly for set_source() and mask() and enable
> using push_group() as a workaround, the problem would almost be solved.
>
> I also suppose that a lot of people would expect self-copies to do
> special magic (like XCopyArea), and I think trying to provide that is
> both a lot of work and often impossible anyway.
>

Why would entering an error state be better than just introducing a
temporary surface internally?

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100501/d2125e5d/attachment.html>


More information about the cairo mailing list