aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/wlr_renderer.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-04-01 19:17:23 +0300
committeremersion <contact@emersion.fr>2019-04-01 19:18:04 +0300
commite42178d03fd34f9f5fba10feabfc4b35a71edd31 (patch)
treeae0d7f444aef0af32447c189cfff7074c86d8eb7 /include/wlr/render/wlr_renderer.h
parentc01b81c99c9e7d6418611bab4fd709c4c2a8b3d9 (diff)
render: switch wlr_renderer to wlr_drm_format_set
Diffstat (limited to 'include/wlr/render/wlr_renderer.h')
-rw-r--r--include/wlr/render/wlr_renderer.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h
index 9c031b7f..33f96b68 100644
--- a/include/wlr/render/wlr_renderer.h
+++ b/include/wlr/render/wlr_renderer.h
@@ -20,6 +20,7 @@ enum wlr_renderer_read_pixels_flags {
};
struct wlr_renderer_impl;
+struct wlr_drm_format_set;
struct wlr_renderer {
const struct wlr_renderer_impl *impl;
@@ -87,15 +88,10 @@ bool wlr_renderer_resource_is_wl_drm_buffer(struct wlr_renderer *renderer,
void wlr_renderer_wl_drm_buffer_get_size(struct wlr_renderer *renderer,
struct wl_resource *buffer, int *width, int *height);
/**
- * Get the available dmabuf formats
+ * Get the available DMA-BUF formats.
*/
-int wlr_renderer_get_dmabuf_formats(struct wlr_renderer *renderer,
- int **formats);
-/**
- * Get the available dmabuf modifiers for a given format
- */
-int wlr_renderer_get_dmabuf_modifiers(struct wlr_renderer *renderer, int format,
- uint64_t **modifiers);
+const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_formats(
+ struct wlr_renderer *renderer);
/**
* Reads out of pixels of the currently bound surface into data. `stride` is in
* bytes.