layers::drawing

Function draw_layer

source
pub fn draw_layer(
    canvas: &Canvas,
    layer: &RenderLayer,
    context_opacity: f32,
    renderable: &SceneNodeRenderable,
) -> Rect
Expand description

Draw a layer into a skia::Canvas. Returns the damage rect in the layer’s coordinate space.