mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
f2dd95dadb
We need to return correct EGLWindow from moz_container_wayland_get_egl_window() with correct scale/size and also keep the EGLWindow up to date. In this patch we do: - Implement moz_container_wayland_egl_window_needs_size_update() and use it in nsWindow::SetEGLNativeWindowSize(). Avoid redundant moz_container_wayland_egl_window_set_size()/moz_container_wayland_set_scale_factor() calls as it may lead to resize callback calls to MESA. - If wl_container::eglwindow is present, check its size/scale in moz_container_wayland_get_egl_window() and update size/scale if needed. - Use nsIntSize single param instead of width/height pairs in some moz_container_* functions. - Assert when gtk_widget_get_window(container) returns null. Differential Revision: https://phabricator.services.mozilla.com/D163698 |
||
---|---|---|
.. | ||
moz.build | ||
mozwayland.c | ||
mozwayland.h |