-
- Downloads
xwayland: simplify xwl_glamor_pixmap_get_wl_buffer()
When retrieving the Wayland buffer from a pixmap, if the buffer already
exists, the GBM backend will return that existing buffer.
However, as seen with the Present issues, if the call had previously
passed a wrong size, that buffer will remain at the wrong size for as
long as the buffer exists, which is error prone.
Considering that the width/height passed to get_wl_buffer() is always the
actual pixmap drawable size, and considering that the EGLStream backend
makes no use of the size either, there is really no point in passing the
width/height around.
Simplify the xwl_glamor_pixmap_get_wl_buffer() and EGL backends API by
removing the pixmap size, and use the drawable size instead.
Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com>
Showing
- hw/xwayland/xwayland-glamor-eglstream.c 0 additions, 2 deletionshw/xwayland/xwayland-glamor-eglstream.c
- hw/xwayland/xwayland-glamor-gbm.c 2 additions, 2 deletionshw/xwayland/xwayland-glamor-gbm.c
- hw/xwayland/xwayland-glamor.c 1 addition, 5 deletionshw/xwayland/xwayland-glamor.c
- hw/xwayland/xwayland-present.c 1 addition, 4 deletionshw/xwayland/xwayland-present.c
- hw/xwayland/xwayland.c 0 additions, 2 deletionshw/xwayland/xwayland.c
- hw/xwayland/xwayland.h 0 additions, 4 deletionshw/xwayland/xwayland.h
Please register or sign in to comment