[cairo] obtaining last operation extents
Vladimir Vukicevic
vladimir at pobox.com
Tue Mar 31 15:06:36 PDT 2009
On 3/31/09 11:59 AM, Bill Spitzak wrote:
> If you call extents() *after* the fill/stroke, then a backend *could*
> remember the box if it is cheap to do so and then return it on that
> call. If it is not cheap then it would calculate the box during the call.
Right, except that when you call fill(), the path gets reset, so there's
nothing to do the calculation with...
- Vlad
> Behdad Esfahbod wrote:
>> On 03/31/2009 12:28 AM, Vladimir Vukicevic wrote:
>>> A thought... It's fairly common to call cairo_fill_extents() then
>>> cairo_fill(), or cairo_stroke_extents() then cairo_stroke(). Computing
>>> the extents is often cheaper than doing the full operation, but are the
>>> extents available "for free" during setup for the operation? If so,
>>> would it be possible to provide a cairo_last_operation_extents() that
>>> would just return a precomputed& cached rect?
>
More information about the cairo
mailing list