9d7ef58b2b
Summary: KWin needs to support restarting the OpenGL compositor in case of a graphics reset event. On Wayland the tricky part is that the applications should not notice this. Most importantly KWin cannot just destroy the EGLDisplay and create a new one. But this is how a restart works: the complete compositor gets torn down and recreated - including the EGLDisplay. This change moves ownership of the EGLDisplay to the Platform. The AbstractEglBackend subclasses query the Platform whether there is already an EGLDisplay. Only if there is no EGLDisplay the EGLDisplay is created and only if no EGLDisplay is registered with Wayland the bind is performed. Another change is regarding the destruction: the AbstractEglDisplay does no longer unbind the Wayland display and does no longer destroy the EGLDisplay. The EGLDisplay is destroyed by the Platform - so very late on application exit. The Wayland display is unbound when the Compositor terminates. Test Plan: Limited testing with the added auto-test. This one needs to be extended to fully verify that OpenGL applications continue to work. But this requires build.kde.org to support OpenGL on Wayland. Reviewers: #kwin, #plasma_on_wayland Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D2202 |
||
---|---|---|
.. | ||
data/anim-data-delete-effect | ||
helper | ||
CMakeLists.txt | ||
debug_console_test.cpp | ||
decoration_input_test.cpp | ||
dont_crash_aurorae_destroy_deco.cpp | ||
dont_crash_cancel_animation.cpp | ||
dont_crash_empty_deco.cpp | ||
dont_crash_glxgears.cpp | ||
dont_crash_no_border.cpp | ||
input_stacking_order.cpp | ||
internal_window.cpp | ||
kwin_wayland_test.cpp | ||
kwin_wayland_test.h | ||
lockscreen.cpp | ||
maximize_test.cpp | ||
move_resize_window_test.cpp | ||
no_xdg_runtime_dir_test.cpp | ||
plasma_surface_test.cpp | ||
plasmawindow_test.cpp | ||
platformcursor.cpp | ||
pointer_input.cpp | ||
quick_tiling_test.cpp | ||
scene_opengl_test.cpp | ||
scene_qpainter_test.cpp | ||
screen_changes_test.cpp | ||
screenedge_client_show_test.cpp | ||
shade_test.cpp | ||
shell_client_test.cpp | ||
start_test.cpp | ||
struts_test.cpp | ||
test_helpers.cpp | ||
touch_input_test.cpp | ||
transient_no_input_test.cpp | ||
transient_placement.cpp | ||
xclipboardsync_test.cpp |