aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/interface.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-15 08:31:30 -0400
committerGitHub <noreply@github.com>2017-08-15 08:31:30 -0400
commit09faf4ff6430bd93fec4269b35c7a87d14e9e8b3 (patch)
tree56847c7d36a6e361f6a84a56063f9a4cb1819703 /include/wlr/render/interface.h
parentd2e796edb7256bb2e2b694a13c86e8bee7056309 (diff)
parentd5f98dbf61e3627f46c499a2ecac0e581241299b (diff)
Merge pull request #83 from acrisci/feature/buffer-damage2
Buffer damage and scaling (attempt 2)
Diffstat (limited to 'include/wlr/render/interface.h')
-rw-r--r--include/wlr/render/interface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index 59ece8b1..f98c3bc2 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -46,6 +46,8 @@ struct wlr_texture_impl {
struct wl_resource *drm_buf);
void (*get_matrix)(struct wlr_texture *state,
float (*matrix)[16], const float (*projection)[16], int x, int y);
+ void (*get_buffer_size)(struct wlr_texture *texture,
+ struct wl_resource *resource, int *width, int *height);
void (*bind)(struct wlr_texture *texture);
void (*destroy)(struct wlr_texture *texture);
};
@@ -53,5 +55,7 @@ struct wlr_texture_impl {
void wlr_texture_init(struct wlr_texture *texture,
struct wlr_texture_impl *impl);
void wlr_texture_bind(struct wlr_texture *texture);
+void wlr_texture_get_buffer_size(struct wlr_texture *texture,
+ struct wl_resource *resource, int *width, int *height);
#endif