Re: [PATCH] gl: Fix offset for non-texture surface patterns

Andrea Canciani <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAN_5=BBc=Xr=v6H_Y7oaBO4OcX8vtrPQv3VyO42-gK2wfjJ56A@mail.gmail.com>
On Thu, Nov 10, 2011 at 9:45 PM, Martin Robinson <[email protected]> wrote:
> On Sat, Nov 5, 2011 at 2:12 AM, Andrea Canciani <[email protected]> wrote:
>> I'm not sure if the approach is correct, but, assuming it is, how about simply
>> using _cairo_surface_paint()?
>> Using a constant (0,0) offset looks weird to me.
>
> I think _cairo_surface_paint eventually calls this function again
> leading to infinite recursion. It seems we need to use a lower level
> API here.

_cairo_surface_offset_paint() simply transforms the clip and calls
_cairo_surface_paint()

I'm not sure if the infinite loop you are describing is actually
possible (maybe by using a surface as source to draw on that same
surface...).
Anyway if that's an issue with _cairo_surface_paint(), that will also
be a problem with _cairo_surface_offset_paint().

Andrea

>
> --Martin
>
--
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.