MMax Ihlenfeldtweston: Implement ui-controls protocol
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
backend-drm: drop HDR without libdisplay-info Hardcode the ad hoc EDID parser to always claim that only SDR is supported. Even though libdisplay-info is not yet asked for HDR capabilities, it shall be the only way to see them. To be nicer to experimenters, main.c adds a note that you really need libdisplay-info if you want to play with HDR. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> | 3 年前 | |
libweston: pass backend to weston_windowed_output_api::create_head() Pass the backend instead of the compositor to the windowed output API create_head() method and increment the API version. That way the backend will not have to find the backend pointer from the compositor. This is trivial now, but in the multi-backend case would entail iterating over all backends to find the correct one. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> | 3 年前 | |
libweston: consolidate 'Using GL/Pixman renderer' log message Consolidates the 'Using GL/Pixman renderer' message emitted by the PipeWire, RDP, VNC, and X11 backends by moving the weston_log() into weston_compositor_init_renderer(). Only print the message after initializing the renderer has succeeded. This effectively adds the message to the DRM, headless, and Wayland backends. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
libweston: consolidate 'Using GL/Pixman renderer' log message Consolidates the 'Using GL/Pixman renderer' message emitted by the PipeWire, RDP, VNC, and X11 backends by moving the weston_log() into weston_compositor_init_renderer(). Only print the message after initializing the renderer has succeeded. This effectively adds the message to the DRM, headless, and Wayland backends. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
libweston: consolidate 'Using GL/Pixman renderer' log message Consolidates the 'Using GL/Pixman renderer' message emitted by the PipeWire, RDP, VNC, and X11 backends by moving the weston_log() into weston_compositor_init_renderer(). Only print the message after initializing the renderer has succeeded. This effectively adds the message to the DRM, headless, and Wayland backends. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
libweston: pass backend to weston_windowed_output_api::create_head() Pass the backend instead of the compositor to the windowed output API create_head() method and increment the API version. That way the backend will not have to find the backend pointer from the compositor. This is trivial now, but in the multi-backend case would entail iterating over all backends to find the correct one. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> | 3 年前 | |
libweston: consolidate 'Using GL/Pixman renderer' log message Consolidates the 'Using GL/Pixman renderer' message emitted by the PipeWire, RDP, VNC, and X11 backends by moving the weston_log() into weston_compositor_init_renderer(). Only print the message after initializing the renderer has succeeded. This effectively adds the message to the DRM, headless, and Wayland backends. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
color-lcms: add debug scope for pipeline optimizer Whenever a color transformation is being created, this debug scope prints its pipeline before and after being optimized. It should be used with the color-lcms-transformations scope. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com> | 3 年前 | |
weston: Implement ui-controls protocol The boilerplate setup and shutdown code is based on Weston's src/weston-test.c. This CL also includes a fix for our downstream weston_desktop_surface_get_root_geometry() addition to make it work for surfaces with parents which have no shell surfaces. Bug: 1457130 Change-Id: I35b37911b564f0019b54c5129219106bc2ab713d | 2 年前 | |
gl-renderer: Get rid of begin fence sync Output repaint uses a pair of fence syncs to profile GPU execution by retrieving their timestamps once signalled. While the end timestamp can be rather inaccurate in some cases (drivers reusing sync objects from previous command buffers), the begin timestamp is never correct because fence syncs are signalled on command buffer completion. Get rid of the begin fence sync and use the EXT_disjoint_timer_query extension to measure the actual repaint duration and extrapolate the begin timestamp from the end one. Fixes #342 Signed-off-by: Loïc Molinari <loic.molinari@gmail.com> | 3 年前 | |
libweston: Convert struct weston_subsurface to weston_coord Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 3 年前 | |
Fix indentation all through the project Fixes a “regression” from 04918f3b0bb9121d550e6b397b3fd9258e95734d, but also other missed pieces. | 4 年前 | |
libweston: Add user authentication support via PAM Add user authentication support for remote backends via PAM. This requires a configuration file /etc/pam.d/weston. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> | 3 年前 | |
input: add weston grab interfaces for tablet tools Based on a patch from Peter Hutterer <peter.hutterer@who-t.net> Lyude Paul <thatslyude@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> | 3 年前 | |
input: Fix uint/enum declaration mismatch We were declaring that the binding handler took an enum in the declaration (good!), but then using a uint in the definition (oops). cf. wayland/weston!1205 Signed-off-by: Daniel Stone <daniels@collabora.com> | 3 年前 | |
libweston: correct argument name in the handler of wl_data_source.accept Signed-off-by: Taishi Eguchi <taishi2060@gmail.com> | 4 年前 | |
libweston: add HDR metadata to weston_output This adds hdr_meta field in weston_output_color_outcome. This field is intended to be set by color manager modules, and read by backends which will send the information to the video sink in SMPTE ST 2084 mode a.k.a Perceptual Quantizer HDR system. Such metadata is essential in ST 2084 mode for the video sink to produce a good picture. The validation of the data and the group split is based on the HDR Static Metata Type 1 definition in CTA-861-G specification. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> | 4 年前 | |
color-lcms: add debug scope for color tranformations It prints the existent color transformations for new subscribers. Also prints any creation/destruction of color transformations. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com> | 3 年前 | |
color-lcms: add debug scope for color tranformations It prints the existent color transformations for new subscribers. Also prints any creation/destruction of color transformations. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com> | 3 年前 | |
libweston: consolidate 'Using GL/Pixman renderer' log message Consolidates the 'Using GL/Pixman renderer' message emitted by the PipeWire, RDP, VNC, and X11 backends by moving the weston_log() into weston_compositor_init_renderer(). Only print the message after initializing the renderer has succeeded. This effectively adds the message to the DRM, headless, and Wayland backends. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
content-protection: Don't leak update timer on shutdown If we still have a pending idle timer when the compositor is being destroyed, make sure to free it first. Signed-off-by: Daniel Stone <daniels@collabora.com> | 4 年前 | |
data-device: Don't make a weston_coord with no valid space We already only conditionally use base.offset when an icon exists. We should also avoid trying to create a coordinate with a NULL icon, as it will fire an assert(). Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 3 年前 | |
dbus: Don't return value from void function Just discard the value, rather than trying to return a value from a void function. Signed-off-by: Daniel Stone <daniels@collabora.com> | 6 年前 | |
Rename compositor.h to libweston/libweston.h The main idea is to make libweston users use the form #include <libweston/libweston.h> instead of the plain #include <compositor.h> which is prone to name conflicts. This is reflected both in the installed files, and the internal header search paths so that Weston would use the exact same form as an external project using libweston would. The public headers are moved under a new top-level directory include/ to make them clearly stand out as special (public API). Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> | 7 年前 | |
drm-formats: add weston_drm_format_array_count_pairs() It simply returns the number of format/modifier pairs in the array. This will be useful for the next commits, in which we add support for dma-buf feedback. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> | 4 年前 | |
Add Meson build system Meson is a build system, currently implemented in Python, with multiple output backends, including Ninja and Make. The build file syntax is clean and easy to read unlike autotools. In practise, configuring and building with Meson and Ninja has been observed to be much faster than with autotools. Also cross-building support is excellent. More information at http://mesonbuild.com Since moving to Meson requires some changes from users in any case, we took this opportunity to revamp build options. Most of the build options still exist, some have changed names or more, and a few have been dropped. The option to choose the Cairo flavour is not implemented since for the longest time the Cairo image backend has been the only recommended one. This Meson build should be fully functional and it installs everything an all-enabled autotools build does. Installed pkg-config files have some minor differences that should be insignificant. Building of some developer documentation that was never installed with autotools is missing. It is expected that the autotools build system will be removed soon after the next Weston release. Signed-off-by: Daniel Stone <daniels@collabora.com> Co-authored-by: Pekka Paalanen <pq@iki.fi> Signed-off-by: Pekka Paalanen <pq@iki.fi> | 7 年前 | |
libweston, backends: move GL renderer interface into weston_renderer Move the struct gl_renderer_interface pointer from the backends into the weston_renderer structure. The interface struct only contains function pointers that never change, so make it const. Load and initialize the GL renderer in libweston instead of in the backends, using the new weston_compositor_init_renderer() function. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
libweston, backends: move GL renderer interface into weston_renderer Move the struct gl_renderer_interface pointer from the backends into the weston_renderer structure. The interface struct only contains function pointers that never change, so make it const. Load and initialize the GL renderer in libweston instead of in the backends, using the new weston_compositor_init_renderer() function. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
tablet: Add binding to activate surfaces using the tablet tool Based on patches from: Peter Hutterer <peter.hutterer@who-t.net> Lyude Paul <thatslyude@gmail.com> Bastian Farkas <bfarkas@de.adit-jv.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> | 3 年前 | |
launchers: Remove --tty option This doesn't work with any of the launchers we've kept. Remove the option and all the bits that handle it. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 4 年前 | |
libweston: Enable logging for libseat launcher The built-in backend of libseat requires users to enable a logging level in order for libseat to start writing out log messages. For that to happen we split out the info and error log level messages into the compositor's log scope, while debug level messages go into a dedicated scope. With that, this patch brings in a new scope, called libseat-debug, which users need to explicity create a subscription for it as to retrieve/have access to debug message coming out of libseat. Note that by default we have a subscription for the log-scope so any errors/info from libseat would be displayed to the user. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
libweston, backends: pass backend parameter to weston_backend functions Passing the backend as a parameter to the weston_backend function pointers seems more natural and will be very useful once there can be more than one backend. Since all backends already store a pointer to the compositor instance, replace the compositor parameter with the backend in all functions. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
launchers: Remove --tty option This doesn't work with any of the launchers we've kept. Remove the option and all the bits that handle it. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 4 年前 | |
launchers: Remove --tty option This doesn't work with any of the launchers we've kept. Remove the option and all the bits that handle it. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 4 年前 | |
libinput: hook up tablet events Based on a patches from Peter Hutterer <peter.hutterer@who-t.net> Lyude Paul <thatslyude@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> | 3 年前 | |
libinput: hook up tablet events Based on a patches from Peter Hutterer <peter.hutterer@who-t.net> Lyude Paul <thatslyude@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> | 3 年前 | |
libweston: Use weston_coord in struct weston_pointer Convert the bare x,y coordinates into struct weston_coord and update all users. We keep the surface position in wl_fixed_t for now so it still exactly matches the position most recently sent to clients. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 3 年前 | |
Rename compositor.h to libweston/libweston.h The main idea is to make libweston users use the form #include <libweston/libweston.h> instead of the plain #include <compositor.h> which is prone to name conflicts. This is reflected both in the installed files, and the internal header search paths so that Weston would use the exact same form as an external project using libweston would. The public headers are moved under a new top-level directory include/ to make them clearly stand out as special (public API). Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> | 7 年前 | |
tablet: Add binding to activate surfaces using the tablet tool Based on patches from: Peter Hutterer <peter.hutterer@who-t.net> Lyude Paul <thatslyude@gmail.com> Bastian Farkas <bfarkas@de.adit-jv.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> | 3 年前 | |
helpers: Add a u64 from 2 u32 helper We do this enough that having a single implementation for it is probably a win. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 3 年前 | |
linux-dmabuf: add missing includes and declarations Currently linux-dmabuf.h implicitly depends on libweston.h being included before it. Instead of adding missing includes for bool, dev_t, struct timespec, struct weston_compositor, struct weston_drm_format_array, struct wl_array, and struct wl_list, just include libweston.h. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
libweston: Advertise minor version 2 of zwp_linux_explicit_synchronization_v1 Although we already supported minor version 2 of the explicit sync protocol, we couldn't advertise it previously, since it was not in any released version of wayland-protocols. With the release of wayland-protocols 1.18, which includes minor version 2 of this protocol, and the recent update in weston to require 1.18, we can now safely advertise minor version 2. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> | 6 年前 | |
libweston: Support zwp_surface_synchronization_v1.set_acquire_fence Implement the set_acquire_fence request of the zwp_surface_synchronization_v1 interface. The implementation uses the acquire fence in two ways: 1. If the associated buffer is used as GL render source, an EGLSyncKHR is created from the fence and used to synchronize access. 2. If the associated buffer is used as a plane framebuffer, the acquire fence is treated as an in-fence for the atomic commit operation. If in-fences are not supported and the buffer has an acquire fence, we don't consider it for plane placement. If the used compositor/renderer doesn't support explicit synchronization, we don't advertise the protocol at all. Currently only the DRM and X11 backends when using the GL renderer advertise the protocol for production use. Issues for discussion --------------------- a. Currently, a server-side wait of EGLSyncKHR is performed before using the EGLImage/texture during rendering. Unfortunately, it's not clear from the specs whether this is generally safe to do, or we need to sync before glEGLImageTargetTexture2DOES. The exception is TEXTURE_EXTERNAL_OES where the spec mentions it's enough to sync and then glBindTexture for any changes to take effect. Changes in v5: - Meson support. - Make explicit sync server error reporting more generic, supporting all explicit sync related interfaces not just wp_linux_surface_synchronization. - Fix typo in warning for missing EGL_KHR_wait_sync extension. - Support minor version 2 of the explicit sync protocol (i.e., support fences for opaque EGL buffers). Changes in v4: - Introduce and use fd_clear and and fd_move helpers. - Don't check for a valid buffer when updating surface acquire fence fd from state. - Assert that pending state acquire fence fd is always clear after a commit. - Clarify that WESTON_CAP_EXPLICIT_SYNC applies to just the renderer. - Check for EGL_KHR_wait_sync before using eglWaitSyncKHR. - Dup the acquire fence before passing to EGL. Changes in v3: - Keep acquire_fence_fd in surface instead of buffer. - Clarify that WESTON_CAP_EXPLICIT_SYNC applies to both backend and renderer. - Move comment about non-ownership of in_fence_fd to struct drm_plane_state definition. - Assert that we don't try to use planes with in-fences when using the legacy KMS API. - Remove unnecessary info from wayland error messages. - Handle acquire fence for subsurface commits. - Guard against self-update in fd_update. - Disconnect the client if acquire fence EGLSyncKHR creation or wait fails. - Use updated protocol interface names. - User correct format specifier for resource ids. - Advertise protocol for X11 backend with GL renderer. Changes in v2: - Remove sync file wait fallbacks. - Raise UNSUPPORTED_BUFFER error at commit if we have an acquire fence, but the committed buffer is not a valid linux_dmabuf. - Don't put buffers with in-fences on planes that don't support in-fences. - Don't advertise explicit sync protocol if backend does not support explicit sync. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> | 7 年前 | |
libweston: Introduce an internal linux sync file API Introduce an internal API for dealing with linux sync files, and use it in the codebase to replace ad-hoc sync file management. The linux_sync_file_is_valid function is not currently used, but will be utilized in upcoming commits to implement the zwp_linux_explicit_synchronization_unstable_v1 protocol. Changes in v5: - Meson support. Changes in v3: - Use parameter name in function documentation. - Move kernel UAPI to separate header file. Changes in v2: - Add function documentation - Remove linux_sync_file_wait() Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> | 7 年前 | |
libweston: export weston_linux_sync_file_read_timestamp() This is an internal export for GL-renderer, so that it does not need to build linux-sync-file.c a second time. This follows the example of linux-explicit-synchronization.c which is also used by GL-renderer. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> | 7 年前 | |
libweston: export weston_linux_sync_file_read_timestamp() This is an internal export for GL-renderer, so that it does not need to build linux-sync-file.c a second time. This follows the example of linux-explicit-synchronization.c which is also used by GL-renderer. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> | 7 年前 | |
libweston: Add weston_log_paced() We have a few places where we log messages only the first time they occur. Provide a log throttling implementation so we don't have to open code this in all the places that need it. Instead of just logging a single time, allow some finer control. We allow logging of a specified number of events. Additionally, we have an optional timeout after which the event count is reset so we can log at most N events in M ms. The first new event printed after the timeout expires will also include a count of suppressed events. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 3 年前 | |
libweston,shared/meson:build Add xkbcommon missing depends This is because e619a65b091, 'libweston: move gl-borders code into helper lib' and 6293ab1f90fdaf, 'libweston, shared: Move out weston_shell_get_binding_modifier' moved things out of libweston, and libweston implicitly depends on xkbcommon. Rather than just depending on dep_xkbcommon use the deps_for_libweston_users which includes some other dependencies as well. Had to move it out of libweston/meson.build and include it in the main meson.build as libweston/meson.build would have a circular dependency on libweston/meson.build file. This fixes the following build issue: [ 5s] FAILED: libweston/libgl-borders.a.p/gl-borders.c.o [ 5s] cc -Ilibweston/libgl-borders.a.p -Ilibweston -I../libweston -I. -I.. -Iinclude -I../include -I/usr/include/wayland -I/usr/include/pixman-1 -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/webp -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -Wmissing-prototypes -Wno-unused-parameter -Wno-shift-negative-value -Wno-missing-field-initializers -Wno-pedantic -Wundef -fvisibility=hidden -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fPIC -MD -MQ libweston/libgl-borders.a.p/gl-borders.c.o -MF libweston/libgl-borders.a.p/gl-borders.c.o.d -o libweston/libgl-borders.a.p/gl-borders.c.o -c ../libweston/gl-borders.c [ 5s] In file included from ../libweston/renderer-gl/gl-renderer.h:32, [ 5s] from ../libweston/gl-borders.h:28, [ 5s] from ../libweston/gl-borders.c:31: [ 5s] ../include/libweston/libweston.h:39:10: fatal error: xkbcommon/xkbcommon.h: No such file or directory [ 4s] FAILED: shared/libshared.a.p/config-parser.c.o [ 4s] cc -Ishared/libshared.a.p -Ishared -I../shared -I. -I.. -Iinclude -I../include -I/usr/include/wayland -I/usr/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu99 -Wmissing-prototypes -Wno-unused-parameter -Wno-shift-negative-value -Wno-missing-field-initializers -Wno-pedantic -Wundef -fvisibility=hidden -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fPIC -MD -MQ shared/libshared.a.p/config-parser.c.o -MF shared/libshared.a.p/config-parser.c.o.d -o shared/libshared.a.p/config-parser.c.o -c ../shared/config-parser.c [ 4s] In file included from ../shared/config-parser.c:44: [ 4s] ../include/libweston/libweston.h:39:10: fatal error: xkbcommon/xkbcommon.h: No such file or directory Reported-by: Jan Engelhardt <jengelh@inai.de> Signed-off-by: Jan Engelhardt <jengelh@inai.de> Signed-off-by: Marius Vlad <marius.vlad@collabora.com> (cherry picked from commit e1c41338361839c799e9702a31a318196f12329d) | 3 年前 | |
pixman-renderer: set renderbuffer via new repaint_output parameter Add a struct weston_renderbuffer parameter to repaint_output and make backends set the pixman image renderbuffer through this parameter instead of using pixman_renderer_output_set_buffer() Turn pixman_renderer_output_set_buffer() static. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> | 3 年前 | |
drm: allow to skip composition if pending capture is writeback We have an optimization to skip composition if there's no damage on the primary plane and we already have a renderer buffer active. But we don't allow this optimization if there's a pending capture task for the output. For the renderer-based sources, that is really necessary, but for the writeback source we should allow this optimization. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com> | 3 年前 | |
drm: allow to skip composition if pending capture is writeback We have an optimization to skip composition if there's no damage on the primary plane and we already have a renderer buffer active. But we don't allow this optimization if there's a pending capture task for the output. For the renderer-based sources, that is really necessary, but for the writeback source we should allow this optimization. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com> | 3 年前 | |
pixel-formats: add pixel_format_get_array() Add a helper function to turn an array of DRM fourccs into an array of corresponding struct pixel_format_info pointers. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> | 3 年前 | |
pixel-formats: add pixel_format_get_array() Add a helper function to turn an array of DRM fourccs into an array of corresponding struct pixel_format_info pointers. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> | 3 年前 | |
pixman-renderer: hold a reference for renderbuffers on the output state list Now that struct weston_renderbuffer is refcounted, hold a reference for renderbuffers on the pixman_output_state::renderbuffer_list. This allows backends to destroy the renderer output state and release renderbuffer references in any order without running into an assert(). To avoid breaking resizing, We also have to drop the renderbuffer list during pixman_renderer_resize_output(). The backends have to create new renderbuffers afterwards. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
pixman-renderer: use pixel_format_info instead of pixman_format_code_t Use struct pixel_format_info pointers instead of pixman_format_code_t values at the API surface for output and image creation. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> | 3 年前 | |
Rename plugin-registry.h to libweston/plugin-registry.h See "Rename compositor.h to libweston/libweston.h" for rationale. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> | 7 年前 | |
screenshooter: Add SHM buffer destroy listener to avoid invalid memcpy This adds a destroy listener on the SHM buffer provided by our client. It will unregister the frame notify listener in case our buffer is destroyed before the frame signal is emitted and thus avoid a memcpy to invalid memory. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 3 年前 | |
Rename compositor.h to libweston/libweston.h The main idea is to make libweston users use the form #include <libweston/libweston.h> instead of the plain #include <compositor.h> which is prone to name conflicts. This is reflected both in the installed files, and the internal header search paths so that Weston would use the exact same form as an external project using libweston would. The public headers are moved under a new top-level directory include/ to make them clearly stand out as special (public API). Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> | 7 年前 | |
libweston: fix typos Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com> | 5 年前 | |
libweston: move TYPEVERIFY macro into shared This will be useful in the test harness macros. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> | 5 年前 | |
libweston: Use weston_coord space conversion functions Update users of the old coordinate space conversion functions that take x, y pairs to the new weston_coord versions. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 3 年前 | |
clipping: Use struct weston_coord in vertex clipping code Remove the independent x, y floats from the clipping code and replace them with struct weston_cord. This includes the polygon8 structure as well. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 3 年前 | |
clipping: Use struct weston_coord in vertex clipping code Remove the independent x, y floats from the clipping code and replace them with struct weston_cord. This includes the polygon8 structure as well. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 3 年前 | |
libweston: Add weston-direct-display server side implementation Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 6 年前 | |
weston-log: destroy subscriptions with destruction of subscribers The subscription is directly related to both the log scope and the subscriber. It makes no sense to destroy one of them and keep the subscriptions living. We only had code to destroy subscription with the destruction of log scopes. Add code to destroy subscriptions with destruction of subscribers. Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net> | 6 年前 | |
weston-log-flight-rec: Map ring buffer using memset() This makes flight recorder creation faster by using wider store instructions (depending on the memset() implementation). Signed-off-by: Loïc Molinari <loic.molinari@gmail.com> | 3 年前 | |
weston-log-wayland: make stream_destroy() use weston_log_subscriber_release() Make stream_destroy() use weston_log_subscriber_release(). This avoids code duplication and allow us to destroy weston_log_subscriber_get_only_subscription(), since it's being used only in this case and it's internal. Calls for weson_log_subscriber_release() leads to weston_log_debug_wayland_to_destroy(), which should not send an error event when the stream has already been closed. Also, stream_destroy() shouldn't lead to an event error, as it is a wl_resource destroy handler. So close the stream before calling weston_log_subscriber_release() in stream_destroy() Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net> | 6 年前 | |
Fix indentation all through the project Fixes a “regression” from 04918f3b0bb9121d550e6b397b3fd9258e95734d, but also other missed pieces. | 4 年前 | |
weston-log: Fix documentation for weston_log_subscription_create Introduced with e0a858a5f2f00f35bfc, commit 'weston-debug: Introduce weston_log_subscription and weston_log_subscriber objects'. We don't really return a weston_log_subscription so let's remove it. Some newer doxygen detects this and we are treating warning as errors. Fixes #594 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 3 年前 |