mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
Robert Bragg
cf647e327f
pipeline: Simplify layer change notifications to backend
Previously we used the layers->backend_priv[] members to determine when to notify backends about layer changes, but it entirely up to the backends if they want to associate private state with layers, even though they may still be interested in layer change notifications (they may associate layer related state with the owner pipeline). We now make the observation that in _cogl_pipeline_backend_layer_change_notify we should be able to assume there can only be one backend currently associated with the layer because we wouldn't allow changes to a layer with multiple dependants. This means we can determine the backend to notify by looking at the owner pipeline instead.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%