aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-07 14:30:23 +0100
committerSimon Ser <contact@emersion.fr>2023-04-25 17:26:35 +0200
commit6830bfc17fd94709e2cdd4da0af989f102a26e59 (patch)
treec3454a0bc42ea3e41c145e3cd3cf1c28165f2301 /include
parent6ce371a317860f6d9f351cb00019a245085ef6e2 (diff)
render/pixman: implement render pass API
Diffstat (limited to 'include')
-rw-r--r--include/render/pixman.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/render/pixman.h b/include/render/pixman.h
index 417964f2..24a27055 100644
--- a/include/render/pixman.h
+++ b/include/render/pixman.h
@@ -1,9 +1,10 @@
#ifndef RENDER_PIXMAN_H
#define RENDER_PIXMAN_H
+#include <wlr/render/drm_format_set.h>
+#include <wlr/render/interface.h>
#include <wlr/render/pixman.h>
#include <wlr/render/wlr_renderer.h>
-#include <wlr/render/drm_format_set.h>
#include "render/pixel_format.h"
struct wlr_pixman_pixel_format {
@@ -48,6 +49,11 @@ struct wlr_pixman_texture {
struct wlr_buffer *buffer; // if created via texture_from_buffer
};
+struct wlr_pixman_render_pass {
+ struct wlr_render_pass base;
+ struct wlr_pixman_buffer *buffer;
+};
+
pixman_format_code_t get_pixman_format_from_drm(uint32_t fmt);
uint32_t get_drm_format_from_pixman(pixman_format_code_t fmt);
const uint32_t *get_pixman_drm_formats(size_t *len);
@@ -55,4 +61,7 @@ const uint32_t *get_pixman_drm_formats(size_t *len);
bool begin_pixman_data_ptr_access(struct wlr_buffer *buffer, pixman_image_t **image_ptr,
uint32_t flags);
+struct wlr_pixman_render_pass *begin_pixman_render_pass(
+ struct wlr_pixman_buffer *buffer);
+
#endif