Skip to main content

Module layer_composition

Module layer_composition 

Source

Structs§

LayerIsolation

Functions§

effective_layer_isolation
layer_composite_params
The composite alpha and blend mode an isolated layer contributes at its parent, for callers that never read the isolation’s render effect and would otherwise deep-clone it once per layer per frame.
layer_for_content
layer_requires_isolation
local_content_layer
local_content_layer_for
local_content_layer(&layer_for_content(layer, isolation)) without building either intermediate. The content layer differs from layer only in the alpha the isolation moves to the composite step, and the local layer keeps just that alpha and the colour filter, so the two clones the composed form performs — one GraphicsLayer, one RenderEffect — are pure waste.