From 72a33b736fdf2a03d45010182b16532df0753690 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Mon, 14 Aug 2017 13:28:59 -0400 Subject: implement texture get buffer size --- render/wlr_texture.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'render/wlr_texture.c') diff --git a/render/wlr_texture.c b/render/wlr_texture.c index f98284a1..9faea820 100644 --- a/render/wlr_texture.c +++ b/render/wlr_texture.c @@ -52,3 +52,8 @@ void wlr_texture_get_matrix(struct wlr_texture *texture, float (*matrix)[16], const float (*projection)[16], int x, int y) { texture->impl->get_matrix(texture, matrix, projection, x, y); } + +void wlr_texture_get_buffer_size(struct wlr_texture *texture, struct wl_resource + *resource, int *width, int *height) { + texture->impl->get_buffer_size(texture, resource, width, height); +} -- cgit v1.2.3