[cairo] Patch improving fallbacks
Kristian Høgsberg
krh at bitplanet.net
Mon Jan 31 10:28:59 PST 2005
Carl Worth wrote:
> On Mon, 31 Jan 2005 12:09:10 -0500, Carl Worth wrote:
>
>> cairo_set_target_surface (cr, surface);
>> cairo_surface_mark_dirty (cr, surface, 0, 0, width, height);
>
>
> Oh, but several backends won't have any notion of this operation.
>
> So, perhaps what we actually want is cairo_xlib_surface_mark_dirty,
> cairo_quartz_surface_mark_dirty.
>
> Then, those functions could accept the appropriate region object for
> the given window system.
Agreed, and considering that the non-cairo drawing to the surface is
inherently backend specific, this make pretty good sense. There is no
need for the dirtying function to be virtual, since the code that needs
to call them will be specific to a particular backend.
cheers,
Kristian
More information about the cairo
mailing list