diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-13 04:09:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 04:09:31 -0700 |
commit | 3ae423b0e35fb35cc4cee972c4f29f020efad877 (patch) | |
tree | b3c01080ead17997e8fe186d9bdeeabc79547c4c /render/wlr_texture.c | |
parent | d8bbdf3bd5edce03c550bb0982ac997392ac5711 (diff) | |
parent | 5bb272d7f398647a227344f86a232c8cc0181cce (diff) |
Merge pull request #1130 from emersion/surface-opaque
Add wlr_surface.opaque_region
Diffstat (limited to 'render/wlr_texture.c')
-rw-r--r-- | render/wlr_texture.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/render/wlr_texture.c b/render/wlr_texture.c index 76986920..06872f1e 100644 --- a/render/wlr_texture.c +++ b/render/wlr_texture.c @@ -47,6 +47,13 @@ void wlr_texture_get_size(struct wlr_texture *texture, int *width, return texture->impl->get_size(texture, width, height); } +bool wlr_texture_is_opaque(struct wlr_texture *texture) { + if (!texture->impl->is_opaque) { + return false; + } + return texture->impl->is_opaque(texture); +} + bool wlr_texture_write_pixels(struct wlr_texture *texture, enum wl_shm_format wl_fmt, uint32_t stride, uint32_t width, uint32_t height, uint32_t src_x, uint32_t src_y, uint32_t dst_x, |