diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-29 17:13:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-29 17:13:23 -0500 |
commit | ed5b1fdedd775a7acec3d6814cc2ac007e34fd29 (patch) | |
tree | 79192b14d83eae55d63c38223ba60beb020bb6f6 /include/wlr/render | |
parent | 60b2d969e07e24ed1b96ccc9d82bc2f9c1d540f2 (diff) | |
parent | f34a1b75ebd9dbebf4fb9c2cf34d878fce902c03 (diff) |
Merge pull request #580 from emersion/screenshooter-renderer-backport
Backport screenshooter fixes from the renderer redesign v1
Diffstat (limited to 'include/wlr/render')
-rw-r--r-- | include/wlr/render/interface.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index bbc5acb4..bb337409 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -28,8 +28,12 @@ struct wlr_renderer_impl { struct wlr_renderer *renderer, size_t *len); bool (*buffer_is_drm)(struct wlr_renderer *renderer, struct wl_resource *buffer); - void (*read_pixels)(struct wlr_renderer *renderer, int x, int y, int width, - int height, void *out_data); + bool (*read_pixels)(struct wlr_renderer *renderer, enum wl_shm_format fmt, + uint32_t stride, uint32_t width, uint32_t height, + uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, + void *data); + bool (*format_supported)(struct wlr_renderer *renderer, + enum wl_shm_format fmt); void (*destroy)(struct wlr_renderer *renderer); }; |