Function webrender::image_tiling::simplify_repeated_primitive
source ยท pub fn simplify_repeated_primitive(
stretch_size: &LayoutSize,
tile_spacing: &mut LayoutSize,
prim_rect: &mut LayoutRect,
)
Expand description
If repetitions are far enough apart that only one is within the primitive rect, then we can simplify the parameters and treat the primitive as not repeated. This can let us avoid unnecessary work later to handle some of the parameters.