- 01 Jul, 2019 5 commits
-
-
Michael Olbrich authored
weston_desktop_surface_unlink_view() does now call weston_view_destroy() so the weston_view is not destroyed here. This is a problem because the view remains in the weston_layer view_list. If ivi_view_destroy() is called from ivi_layout_surface_destroy() and the view list is rebuilt in the 'removed' signal, then the list gets corrupted when the view is destroyed immediately afterwards. Fix this by calling weston_view_destroy() unconditionally for all view. Signed-off-by:
Michael Olbrich <m.olbrich@pengutronix.de>
-
Michael Olbrich authored
Whenever shell_surface_send_configure() is called weston_desktop_surface_set_size() should be used instead for desktop surfaces. It is already done for IVI_LAYOUT_TRANSITION_VIEW_FADE_ONLY, do it everywhere else too. Signed-off-by:
Michael Olbrich <m.olbrich@pengutronix.de>
-
Marius Vlad authored
Unfortunate left over which was not removed once we had the script in place to regenerate the documentation. A side-effect was the fact that we still ran the script even if 'docs' target was called, effectively nullifying the fact that 'docs' target was ran at all. For instance, 'install' would've been executing the script even if 'docs' target was called before. This removes the doxygen_target entirely and the depends of sphinx target on it, makes building and installing docs a bit faster. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Roman Gilg authored
The xdg-output resources are listed in each head struct. They become idle when the respective weston_output has been removed again. The client is supposed to destroy them explicitly afterwards. After starting an XWayland client xrandr displays the logical size as expected. Signed-off-by:
Roman Gilg <subdiff@gmail.com>
-
Tomohito Esaki authored
Make the linear modifier to the default of DRM format modifiers if supported modifiers isn't get from kernel driver.
-
- 28 Jun, 2019 1 commit
-
-
Marius Vlad authored
With the introduction of the 'docs' target we make sure that we always build the documentation, but currently breathe is unaware of the fact that the doxygen XML database was changed in between runs. It is obvious when changing only source code not rST bits. This patch makes sphinx ignore the saved environment and always rebuild the docs. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
- 27 Jun, 2019 1 commit
-
-
Astatos Aner authored
wl_shell is deprecated, and using xdg_shell allows the client to run on compositors which do not implement the old protocol. Functionality should be identical. Signed-off-by:
Astatos Aner <random.bored.human@gmail.com>
-
- 26 Jun, 2019 19 commits
-
-
Daniel Stone authored
drm_assign_planes() is called to separate views out and decide what will be taken out for plane composition and what will be left for the renderer to compose. It calls drm_output_propose_state() in order to find a good configuration, which itself has a number of helpers that it calls. Break these out into a separate file. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Most of the state helpers (create, destroy, duplicate, etc) state, are relatively straightforward and can live in a separate file. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Move everything to do with creation, destruction, and reference handling of drm_fbs to a new file. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Create a new file which handles most of the actual KMS API use. This covers the property handling (in which we map between KMS properties and our internal representations), as well as actually applying state through atomic modesetting or the legacy SetCrtc/PageFlip/DPMS APIs. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Create a new file for the DRM backend's handling of output modes, e.g. resolution, aspect ratio, preferred mode selection, EDID parsing. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Create a helper function which populates a drm_head with the information extracted from its connector's EDID and any other properties we can find, such as physical size and connection status. This is currently quite small, but may become more complex in future as we parse EDID better. It also prepares to move this function into another file in the next commit. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Create a new header called drm-internal.h, and move many of drm.c's declarations and helpers to it. This will allow us to split the DRM backend into multiple files. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
'-' authored
Pads launchers with the empty space that used to be around them. Moving pointer to 0,0 and clicking launches the preferred app. First launcher has more padding at its start to look nice. Moves the clock to the right edge with same padding. Keeps one of the two values for text extents that the code was already retrieving but never read. Horizontal panel position centers the clock. Sets text in the panel, meaning tooltips and the clock, to consistent 14 units of the default system font at 85% of the max brightness, so it's less tiring on eyes.
-
Daniel Stone authored
partial_update is an EGL extension which allows us to inform the driver ahead of time the limits of the areas we'll be writing to. This helps performance for GPU hardware which renders into a local tile buffer: informing the driver of the rendering extents means it can avoid fetching unchanged tiles into the tile buffer and subsequently writing them out. The extension complements rather than replaces EGL_EXT_buffer_age (used before partial_update to know which areas we need to update) and EGL_KHR_swap_buffers_with_damage (used after partial_update to inform the winsys of the changed region). Note however that partial_update deals in buffer-damage regions ('what has changed since the last time I used _this_ buffer?'), whereas swap_buffers_with_damage deals in surface-damage regions ('what has changed since the last time I rendered?'). An explanatory diagram can be found in the specification: https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_partial_update.txt Fixes: #134Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Query for the extension itself and the core entrypoint. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Add some comments in the function to make it clear what's going on, especially as we twist and turn between a lot of things called 'damage' meaning different things in different co-ordinate spaces. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
The buffer_damage variable stores accumulated damage from previous frames. This is the area that, before considering our current repaint request, we need to repaint in order to bring the older buffer up to date with the last buffer we rendered into. Rename to previous_damage so it's a bit more clear what this refers to. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Technically it is storing which areas of the border are damaged. However, we already have damage-region variables which need to be translated by the border region. Rename the variable to not contain the word 'damage' to reduce confusion. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
eglSwapBuffersWithDamage has to convert a damage region from Weston's global co-ordinate space, into the co-ordinate space for EGL rendering into a buffer for that output. The conversion from the global co-ordinate space in logical pixels to the output space in buffer pixels is slightly long and error-prone, involving translating by the output's offset within the global co-ordinate space, multiplying by output scale, and also translating to allow for any borders we paint around the output. After this is done, we need to flip the co-ordinates in the Y axis to account for the lower-left-origin co-ordinate space used by EGL. Since we want to reuse this for partial_update, but using a different source region, extract this conversion into a well-commented helper we can reuse. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Fan debug mode repaints the whole surface in order to clear any 'trails' left over from previous fan paints. If this happens, fall back to using regular eglSwapBuffers rather than eglSwapBuffersWithDamageEXT, since the damage region we would pass will be too small. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Use the actual boolean type instead of an integer for variables which only hold true or false. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Use the actual boolean type instead of an integer for variables which only hold true or false. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
pixel_format_get_info() is already documented in the headers; no need to also document it next to the code. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
These definitions were just set to the default (off), but their presence causes Fedora's Doxygen to emit a warning as it is not compiled with Clang support. Remove them as they are no-ops anyway. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
- 25 Jun, 2019 14 commits
-
-
Marius Vlad authored
Fixes 0a13641f: "gitlab-ci: Enable gitlab page for publishing documentation", to point to correct sphinx documentation. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
While adding pages, remove CI_JOB_ID and CI_JOB_SHA from PREFIX, as this apparently is not needed. Make build-native-meson a dependency for the pages stage. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
Pinned down sphinx to 2.1.0 and breathe to 4.13. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
Demonstrates how to call/use the 'doxygen*' breathe directives. Make use of previous patches that tag symbols using 'ingroup' doxygen command. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
This is a continuation of "e2cc7aa40fd: libweston: Define head, output and compositor group". Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
This is a continuation of "e2cc7aa40fd: libweston: Define head, output and compositor group". Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
Also, add tag symbols related to 'weston_head'. The bridge between sphinx and doxygen (breathe) has a useful directive: doxygengroup. By using it we can scoop out symbols we'd like to display documentation from/of. At the same time some bits of the code has been using '\memberof' (a doxygen command useful in C code to establish class like relationship between objects and functions) but this seems not to be recognized by the sphinx bridge. Until we find a better solution, we replace '\memberof' command with '\ingroup' one as to tag the symbols with an "object". This patch does that for 'weston_head' object. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
With these aliases we can use rST directives inside comment blocks. This adds also a doxygen command '\rststar' where ignores the asterisk -- typical to multi-line comment blocks. While at it, add a simple example on how to use them. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
Turn warnings into errors so we can spot them immediately. While at it: no need to generate class graphs as we're not using it and make doxygen run quieter. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
Found while being parsed by doxygen (when used recursively), this fixes the markdown bits as to be displayed properly. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
Missing/wrong parameters and '[out]' issues. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
We already have documentation in header which conflicts with the one the source code. Remove it entirely as it confuses user as well. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
This fixes warnings for weston-debug, input, compositor, log and linux-explicit-sync. Warnings range from swapping '[in]', '[out]' with the function arguments to wrong parameter names. Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-
Marius Vlad authored
Signed-off-by:
Marius Vlad <marius.vlad@collabora.com>
-