mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-03-21 14:30:35 +01:00
This is an alternative to using set_label_func to avoid using get_label() callback. get_label() is inconvenient to set up and to call. It incurs the cost of creating the string every time it is needed. During debug logging, the string is needed much more often than it changes. The new label field simply stores the string, making it easy and cheap to use. As the trade-off, components that set the label string must re-create the string when it changes, whether it is needed or not. For the migration to the new label field, get_label_member callback is used. It will be deleted once the migration is done. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> |
||
|---|---|---|
| .. | ||
| libweston | ||
| meson.build | ||