diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-09 22:17:40 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-08-09 22:17:40 -0400 |
commit | 4de930542f1a3d7322e7a7c1d2dc43dc9b4a4129 (patch) | |
tree | 38482a217fbcb0c0527a80787725d5d77fb81e8e /include/wlr/render/interface.h | |
parent | b109aecff98bfed9a7ae834947ac93cb14bfc8dc (diff) |
Implement partial texture uploads
Diffstat (limited to 'include/wlr/render/interface.h')
-rw-r--r-- | include/wlr/render/interface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index 83e34625..be9ffe7a 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -35,8 +35,13 @@ struct wlr_texture_impl { bool (*upload_pixels)(struct wlr_texture_state *state, enum wl_shm_format format, int stride, int width, int height, const unsigned char *pixels); + bool (*update_pixels)(struct wlr_texture_state *state, + enum wl_shm_format format, int stride, int x, int y, + int width, int height, const unsigned char *pixels); bool (*upload_shm)(struct wlr_texture_state *state, uint32_t format, struct wl_shm_buffer *shm); + bool (*update_shm)(struct wlr_texture_state *surf, uint32_t format, + int x, int y, int width, int height, struct wl_shm_buffer *shm); // TODO: egl void (*get_matrix)(struct wlr_texture_state *state, float (*matrix)[16], const float (*projection)[16], int x, int y); |