Commits on Source (14)
-
Pekka Paalanen authored
"Get" might easily imply reference counting, but there is none here. "to" is more descriptive for a cast. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
de1db83e -
Pekka Paalanen authored
"Get" could imply increasing reference count, and color profile objects indeed are reference counted, but this function does not do that. Rename it to reduce confusion. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
f19b15e3 -
Pekka Paalanen authored
"Get" might easily imply reference counting, but there is none here. "to" is more descriptive for a cast. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
952f3ef6 -
Pekka Paalanen authored
"Get" could imply increasing reference count, and color profile objects indeed are reference counted, but this function does not do that. Rename it to reduce confusion. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
6fe294c1 -
Pekka Paalanen authored
"Get" could imply increasing reference count, and color transform objects indeed are reference counted, but this function does not do that. Rename it to reduce confusion. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
ce51a040 -
Pekka Paalanen authored
This makes it more explicit that this indeed is increasing the reference count, rather than just returning a pointer. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
4f796a52 -
Pekka Paalanen authored
"Get" could imply increasing reference count, and color transform objects indeed are reference counted, but this function does not do that. Rename it to reduce confusion. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
35a580da -
Pekka Paalanen authored
This reverts commit 188a3ebd. Call weston_compositor_enable_color_management_protocol() after compositor->color_manager has been set, and so allows to check if the color manager supports the features mandatory in protocol. The check is added in the next patch. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
d9a7b379 -
Pekka Paalanen authored
Will be used in the next patch. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
bdea4491 -
Pekka Paalanen authored
This is required by the protocol spec. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
dcaff175 -
Pekka Paalanen authored
No changes to the functions at all. This makes them available for use in cmlcms_init() for the next patch. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
3e9f8402 -
Pekka Paalanen authored
This does not change any behaviour, but creating complex dynamic things was intended to be done in init() rather than color_manager_create(). Create is called from weston_compositor_load_color_manager() before loading backends, and init is called from weston_compositor_backends_loaded() after loading backends. Now we assert instead of check that scope creation succeeded, because the only way it could fail is to have small memory allocations fail, or internal code error. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
80c0d5e6 -
Pekka Paalanen authored
This is not strictly necessary, because if init fails, then weston_compositor_backends_loaded() fails, main.c will weston_compositor_destroy() -> weston_compositor_shutdown() -> cmclcms_destroy() which will free this. But that is very hard to track down, so let's make the code obviously more correct. We must also avoid cmsDeleteContext(NULL), because it will then do something to the default cms context rather than bail out. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
61b3ae33 -
Pekka Paalanen authored
Fixes compiler warnings about the declaration in function signatures not applying outside of the functions. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
7e22c284