[cairo] introducing a "context backend"
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.
"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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo