weston/shared
Leandro Ribeiro 6da5b8a5a5 color-noop: avoid assert hit in cmnoop_destroy()
When we are destroying the color manager, the components referencing
color profiles should have already been destroyed. We have an assert
in cmnoop_destroy() to make sure that the stock profile has refcount
equal to 1.

But we currently have an issue in Weston. While shutting down with
client surfaces alive, we may leak them. So we try to destroy
the color manager with surfaces still alive, and they may be
referencing color profiles.

We already have a workaround for this in our LittleCMS color plugin,
but we've missed that in color-noop. This fixes that, so now we don't
hit the assert anymore.

As we are already dealing with asserts in color-noop, I took the
liberty to replace the last usage of assert with our own wrapper
in this file.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
2024-02-22 11:38:22 +00:00
..
cairo-util.c cairo-util: Add missing HAVE_PANGO guard 2023-02-20 11:04:23 +00:00
cairo-util.h clients: Add support for tablet cursor motion to window frames in libtoytoolkit 2023-03-31 12:10:26 +00:00
config-parser.c doc/sphinx: Include weston-config and shell-utils in docs 2023-01-09 22:13:07 +00:00
fd-util.h libweston: Support zwp_surface_synchronization_v1.set_acquire_fence 2019-02-06 12:21:56 +00:00
file-util.c clients: Fix/resolved doxygen warnings 2019-06-25 14:05:54 +00:00
file-util.h file-util: allow specifying path separately in file_create_dated() 2018-02-09 15:16:07 +00:00
frame.c clients: Add support for tablet cursor motion to window frames in libtoytoolkit 2023-03-31 12:10:26 +00:00
hash.c shared: extract hash table implementation from xwayland 2023-03-03 08:08:46 +00:00
hash.h shared: extract hash table implementation from xwayland 2023-03-03 08:08:46 +00:00
helpers.h helpers: Add an integer division helper that rounds up 2023-09-15 09:44:44 +03:00
image-loader.c image-loader: Fix undefined left shift in premultiply_data 2019-10-16 16:06:06 -04:00
image-loader.h
matrix.c matrix: Introduce weston_coord 2023-02-01 07:27:05 -06:00
meson.build libweston: remove wlr_signal_emit_safe 2023-12-04 11:37:22 +02:00
option-parser.c option-parser: Add support for the '--' options 2024-01-26 09:32:46 +00:00
os-compatibility.c shared: introduce os_fd_clear_cloexec() 2022-07-12 08:30:22 +00:00
os-compatibility.h shared: introduce os_fd_clear_cloexec() 2022-07-12 08:30:22 +00:00
platform.h Fix indentation all through the project 2021-07-31 15:28:20 +00:00
process-util.c frontend: Add FDSTR_INIT macro 2023-04-19 08:28:21 +00:00
process-util.h frontend: Add FDSTR_INIT macro 2023-04-19 08:28:21 +00:00
string-helpers.h gl_renderer: print more GL ES feature flags 2022-05-18 14:18:53 +03:00
timespec-util.h helpers: Add a u64 from 2 u32 helper 2022-10-27 08:13:30 +00:00
weston-assert.h color-noop: avoid assert hit in cmnoop_destroy() 2024-02-22 11:38:22 +00:00
weston-drm-fourcc.h gl-renderer: add support for (a|x)bgr16161616 shm formats 2022-02-02 11:58:58 +00:00
weston-egl-ext.h gl-renderer: query DRM device given an EGLDisplay 2021-11-25 10:47:39 -03:00
xalloc.h compositor/shared: Suppress write(2) warnings 2022-09-23 11:32:19 +00:00
xcb-xwayland.c xwm: Add support for xwayland_shell_v1 2023-03-03 08:21:24 +00:00
xcb-xwayland.h xwm: Add support for xwayland_shell_v1 2023-03-03 08:21:24 +00:00