pub enum Site {
ClipVec,
ClipPath,
GlyphVec,
OptionsClone,
CtxClone,
PathGeometry,
}profiling only.Expand description
One allocation site in the walk, named by what it allocates.
These are the sites an arena could plausibly serve: each produces a value that does not outlive the object being drawn. A site whose value escapes the walk is deliberately absent, because an arena cannot help it.
Variants§
ClipVec
The Vec<Clip> crate::clip::resolve returns, once per object.
ClipPath
A clip entry’s transformed BezPath, for a clip that is not an
axis-aligned rectangle.
GlyphVec
The Vec<PlacedGlyph> crate::text::place_glyphs returns, once per
text object.
OptionsClone
A RenderOptions cloned into a nested context — a form, a char proc, a
tile cell, a soft mask.
CtxClone
A RenderCtx cloned by crate::ctx::RenderCtx::deeper.
PathGeometry
The device-space BezPaths crate::paint::draw_path’s ordinary case
builds for a fill or a stroke: one per fill, since
crate::path::transform_hard_clip fuses the transform and the clamp;
three on the stroke arm, which still composes a nudge between them.