[cairo] obtaining last operation extents

Bill Spitzak spitzak at thefoundry.co.uk
Tue Mar 31 11:59:35 PDT 2009


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.

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?

-- 
Bill Spitzak, Senior Software Engineer
The Foundry, 618 Hampton Drive, Venice, CA, 90291, USA
Tel: +1 310 399-4555 * Fax: +1 310 450-4516 * Web: www.thefoundry.co.uk
The Foundry Visionmongers Ltd * Registered in England and Wales No: 4642027


More information about the cairo mailing list