aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-06-19 02:14:40 -0400
committerAlexander Orzechowski <alex@ozal.ski>2023-11-30 20:01:12 -0500
commit3ed1268f64fd736712c2de1bf522d42d6694e3cc (patch)
treedcb03756e36e54a8679b4c46a8d189c0968cf257 /include
parentb3575fedbc8123b7e878d3b40778da74acfbadef (diff)
render: Nuke old read pixels API
Sadly, the new API is not backwards compatible with the old API. Since we have already switched all users in wlroots to the new API compositors are already practically mandated to implement the new API. Let's get rid of the old one since there is no point.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/render/interface.h5
-rw-r--r--include/wlr/render/wlr_renderer.h7
-rw-r--r--include/wlr/types/wlr_output.h5
3 files changed, 0 insertions, 17 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index befd2fdc..a433ea2a 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -31,11 +31,6 @@ struct wlr_renderer_impl {
struct wlr_renderer *renderer);
const struct wlr_drm_format_set *(*get_render_formats)(
struct wlr_renderer *renderer);
- uint32_t (*preferred_read_format)(struct wlr_renderer *renderer);
- bool (*read_pixels)(struct wlr_renderer *renderer, uint32_t 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);
void (*destroy)(struct wlr_renderer *renderer);
int (*get_drm_fd)(struct wlr_renderer *renderer);
uint32_t (*get_render_buffer_caps)(struct wlr_renderer *renderer);
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h
index 26106614..9c5011ec 100644
--- a/include/wlr/render/wlr_renderer.h
+++ b/include/wlr/render/wlr_renderer.h
@@ -75,13 +75,6 @@ const uint32_t *wlr_renderer_get_shm_texture_formats(
*/
const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_texture_formats(
struct wlr_renderer *renderer);
-/**
- * Reads out of pixels of the currently bound surface into data. `stride` is in
- * bytes.
- */
-bool wlr_renderer_read_pixels(struct wlr_renderer *r, uint32_t 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);
/**
* Initializes wl_shm, linux-dmabuf and other buffer factory protocols.
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index b0905eec..4ce23f7d 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -401,11 +401,6 @@ void wlr_output_effective_resolution(struct wlr_output *output,
void wlr_output_attach_buffer(struct wlr_output *output,
struct wlr_buffer *buffer);
/**
- * Get the preferred format for reading pixels.
- * This function might change the current rendering context.
- */
-uint32_t wlr_output_preferred_read_format(struct wlr_output *output);
-/**
* Set the damage region for the frame to be submitted. This is the region of
* the screen that has changed since the last frame.
*