diff --git a/core/src/primitive/layer.rs b/core/src/primitive/layer.rs index 3fb2411..1329d70 100644 --- a/core/src/primitive/layer.rs +++ b/core/src/primitive/layer.rs @@ -120,6 +120,10 @@ impl Layers { } impl DrawLayers { + /// Inlined on purpose: it is one call per glyph, the innermost thing a + /// frame does, and whether the inliner takes it turns out to depend on + /// unrelated code elsewhere in the crate -- 12% of a resize frame. + #[inline] pub fn write( &mut self, layer: LayerId,