[cairo] Use stack buffer for _cairo_surface_fill_region()
behdad at behdad.org
Fri Mar 16 14:07:54 PDT 2007
On Tue, 2007-03-13 at 21:50 -0400, Chris Wilson wrote:
> I don't know just how many times this patch may arrive at the list as
> was experimenting with git-format-patch and piping to mutt. Since I've
> not seen the message yet, I assume the experiment failed.
> This is a simple patch to use a stack buffer for
> _cairo_surface_fill_region() when the num_rects does not exceed
> CAIRO_STACK_BUFFER_SIZE / sizeof (cairo_rectangle_in16_t). This is
> another function that is called for almost every GTK+ expose event
> (assuming double-buffered widgets) and so a frequent allocator.
Looks good to commit after 1.4.2.
> Chris Wilson
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo