[Mesa-dev] [PATCH] wayland/egl: Assigning window size to window surface size property

Daniel Stone daniel at fooishbar.org
Mon Apr 25 14:16:40 UTC 2016


Hi Adrian,

On 25 April 2016 at 14:23, Adrian Pielech <adrian.pielech at intel.com> wrote:
> Till now window surface size on wayland was -1.
> It's better to assign windows size to proper surface property.

Hm. This will be done from update_buffers(), so will only be 'invalid'
before the first rendering has been done. I guess this is for querying
EGL_WIDTH/EGL_HEIGHT?

Note that this is symmetrical with wl_egl_window_resize() currently;
calling resize does not result in these values being updated until
updating the surface buffers (from get_back_bo, triggered after the
first rendering call after a swap). So we have the following behaviour
for eglQuerySurface:
  - querying dimensions after surface creation: invalid currently,
valid with this patch
  - querying dimensions after resize: stale/old size
  - querying dimensions after rendering: correct values

Do you have a real-world usecase which depends on this?

Cheers,
Daniel


More information about the mesa-dev mailing list