aboutsummaryrefslogtreecommitdiff
path: root/render/wlr_texture.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-06-24 18:16:42 -0400
committerTony Crisci <tony@dubstepdish.com>2018-06-24 18:16:42 -0400
commite8c0996b93c2d184d9d68ae4bee92dd4c469685c (patch)
treede9e94484a8f341836231af6d8a7daa3cd32d06e /render/wlr_texture.c
parent28d718c0ddd8f2ba083be374f3d97e4836f615d9 (diff)
parente459fe0ec713ea65b35b966f9bb3c6c70c9504aa (diff)
Merge branch 'master' into cancel-grab-on-focus-change
Diffstat (limited to 'render/wlr_texture.c')
-rw-r--r--render/wlr_texture.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/render/wlr_texture.c b/render/wlr_texture.c
index 38c75d28..76986920 100644
--- a/render/wlr_texture.c
+++ b/render/wlr_texture.c
@@ -54,3 +54,11 @@ bool wlr_texture_write_pixels(struct wlr_texture *texture,
return texture->impl->write_pixels(texture, wl_fmt, stride, width, height,
src_x, src_y, dst_x, dst_y, data);
}
+
+bool wlr_texture_to_dmabuf(struct wlr_texture *texture,
+ struct wlr_dmabuf_attributes *attribs) {
+ if (!texture->impl->to_dmabuf) {
+ return false;
+ }
+ return texture->impl->to_dmabuf(texture, attribs);
+}