shm: Add shm_buffer getters for width and height

This commit is contained in:
Kristian Høgsberg 2012-07-20 12:04:42 -04:00
parent 0a9cd16f6a
commit 7ba218c9f8
2 changed files with 22 additions and 0 deletions

View file

@ -428,6 +428,12 @@ wl_shm_buffer_get_stride(struct wl_buffer *buffer);
uint32_t
wl_shm_buffer_get_format(struct wl_buffer *buffer);
int32_t
wl_shm_buffer_get_width(struct wl_buffer *buffer);
int32_t
wl_shm_buffer_get_height(struct wl_buffer *buffer);
int
wl_buffer_is_shm(struct wl_buffer *buffer);