mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
Robert Bragg
cf621948a7
[cogl-material] Be more carefull about flushing in cogl_material_remove_layer
Previously we would call _cogl_material_pre_change_notify unconditionally, but now we wait until we really know we are removing a layer before notifying the change, which will require a journal flush. Since the convenience functions cogl_set_source_color4ub and cogl_set_source_texture share a single material, cogl_set_source_color4ub always calls cogl_material_remove_layer. Often this is a NOP though and shouldn't require a journal flush. This gets performance back to where it was before reverting the per-actor material commits.
…
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%