summaryrefslogtreecommitdiff
path: root/libweston/output-capture.c
Commit message (Collapse)AuthorAgeFilesLines
* drm: allow to skip composition if pending capture is writebackLeandro Ribeiro2023-03-311-3/+7
| | | | | | | | | | 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>
* Revert "libweston: let weston_output_update_capture_info() take drm_format"Philipp Zabel2023-01-281-4/+5
| | | | | | This reverts commit af5acbc9cb706b8fd42ff647a09a14ed39df2565. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
* libweston: let weston_output_update_capture_info() take drm_formatPhilipp Zabel2023-01-231-5/+4
| | | | | | | | | | | Let weston_output_update_capture_info() take a uint32_t drm_format parameter directly instead of const struct pixel_format_info *format. No other fields apart from the format were used from this structure. Without this, callers may have to unnecessarily look up the pixel format info in cases where the DRM fourcc is already available. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
* libweston: implement new screenshooting protocol basePekka Paalanen2022-11-291-0/+696
This implements the basics of the new screenshooting protocol. The actual pixel operations will be implemented separately in the renderers and DRM-backend. See the previous commit "protocol: new screenshooter protocol" for why. If DRM-backend needs more from weston_capture_task when it implements writeback screenshooting, it will be easy to add user_data or expose weston_capture_task::link for the backend to use. Those were not added yet because it is uncertain what is actually needed. The DRM-backend no-damage optimization requires special handling here as well. See also 7f1a113c895e5690e0a09a0a5079a74b6d65e442 . Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>