diff options
author | emersion <contact@emersion.fr> | 2018-11-24 14:53:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-24 14:53:20 +0100 |
commit | 88994b18d56e4c4dbbc32e55416fe16b8b87ac52 (patch) | |
tree | ef46e76a5fa07a924ba51d1f71383d9ddec7330c /include/wlr | |
parent | c70b8f64b7f1ea0a603517c7e6852ef3743a483a (diff) | |
parent | fb5691b6cc42cab42d0f15e8fbb25b2e1ff4ad0d (diff) |
Merge pull request #1390 from ammen99/fix-preferred-read-format
output: add wlr_output_preferred_read_format()
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 5 | ||||
-rw-r--r-- | include/wlr/types/wlr_output.h | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 02b4a11e..9c031b7f 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -97,11 +97,6 @@ int wlr_renderer_get_dmabuf_formats(struct wlr_renderer *renderer, int wlr_renderer_get_dmabuf_modifiers(struct wlr_renderer *renderer, int format, uint64_t **modifiers); /** - * Get the preferred format for reading pixels. - */ -bool wlr_renderer_preferred_read_format(struct wlr_renderer *renderer, - enum wl_shm_format *fmt); -/** * Reads out of pixels of the currently bound surface into data. `stride` is in * bytes. * diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 557a3895..6d38152a 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -193,6 +193,12 @@ void wlr_output_effective_resolution(struct wlr_output *output, */ bool wlr_output_make_current(struct wlr_output *output, int *buffer_age); /** + * Get the preferred format for reading pixels. + * This function might change the current rendering context. + */ +bool wlr_output_preferred_read_format(struct wlr_output *output, + enum wl_shm_format *fmt); +/** * Swaps the output buffers. If the time of the frame isn't known, set `when` to * NULL. If the compositor doesn't support damage tracking, set `damage` to * NULL. |