aboutsummaryrefslogtreecommitdiff
path: root/include/ui/egl-helpers.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-06-06 15:56:51 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-06-27 17:08:56 +0200
commitda9eb580b7e28d70d344bb03e0fe5703c8d1892c (patch)
tree5964d330aafbb191cbbb9b86566f62725d4009ca /include/ui/egl-helpers.h
parentafe8e0b6db2debeaf35f5bd43efa1ada90ba0847 (diff)
downloadqemu-da9eb580b7e28d70d344bb03e0fe5703c8d1892c.zip
qemu-da9eb580b7e28d70d344bb03e0fe5703c8d1892c.tar.gz
qemu-da9eb580b7e28d70d344bb03e0fe5703c8d1892c.tar.bz2
ui: add egl_fb_read_rect()
Similar to egl_fb_read(), same limitations, but with extra arguments to read a subset of the framebuffer. Used in following commits. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20230606115658.677673-15-marcandre.lureau@redhat.com>
Diffstat (limited to 'include/ui/egl-helpers.h')
-rw-r--r--include/ui/egl-helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h
index 6c4eb5d..6e2f0c4 100644
--- a/include/ui/egl-helpers.h
+++ b/include/ui/egl-helpers.h
@@ -31,6 +31,7 @@ void egl_fb_setup_for_tex(egl_fb *fb, int width, int height,
void egl_fb_setup_new_tex(egl_fb *fb, int width, int height);
void egl_fb_blit(egl_fb *dst, egl_fb *src, bool flip);
void egl_fb_read(DisplaySurface *dst, egl_fb *src);
+void egl_fb_read_rect(DisplaySurface *dst, egl_fb *src, int x, int y, int w, int h);
void egl_texture_blit(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool flip);
void egl_texture_blend(QemuGLShader *gls, egl_fb *dst, egl_fb *src, bool flip,