[cairo] introducing a "context backend"

Robert O'Callahan robert at ocallahan.org
Fri Apr 23 03:19:33 PDT 2010


On Fri, Apr 23, 2010 at 10:11 PM, Chris Wilson <chris at chris-wilson.co.uk>wrote:

> > The goal is to then to pass the information to the backend immediately,
> > > and convert the existing implementation into a library of core helpers
> > > that the backends may choose to use or to assist them in their task.
> >
> >
> > That's one way to do it. With that approach, the existing backends would
> > fill their function tables with pointers to the "default implementation".
> >
> > Another way to do it would be more like the surface backends; make the
> > default be NULL and have cairo_ functions call through to the backend
> > function if it's non-NULL, otherwise continue on with the default
> > implementation.
>
> The trouble here is that this is often labelled the "mid-layer mistake".


Sure, makes sense.

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/20100423/e16ce935/attachment.html>


More information about the cairo mailing list