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 /render/wlr_renderer.c | |
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 'render/wlr_renderer.c')
-rw-r--r-- | render/wlr_renderer.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index ca1a337d..58731d7f 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -139,15 +139,6 @@ int wlr_renderer_get_dmabuf_modifiers(struct wlr_renderer *r, int format, return r->impl->get_dmabuf_modifiers(r, format, modifiers); } -bool wlr_renderer_preferred_read_format(struct wlr_renderer *r, - enum wl_shm_format *fmt) { - if (!r->impl->preferred_read_format || !r->impl->read_pixels) { - return false; - } - *fmt = r->impl->preferred_read_format(r); - return true; -} - bool wlr_renderer_read_pixels(struct wlr_renderer *r, enum wl_shm_format fmt, uint32_t *flags, uint32_t stride, uint32_t width, uint32_t height, uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, |