diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2018-06-11 09:13:30 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-06-21 10:54:10 -0400 |
commit | 792359057bd54548555674d2d309c0cfeebac12d (patch) | |
tree | e9aefec1192aa33eedb521f2a6d31e3b3adb8c42 /os | |
parent | bdadaa25f5c1f62d30d8e76b4ebfcef414ed9c90 (diff) |
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>
Diffstat (limited to 'os')
0 files changed, 0 insertions, 0 deletions