Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Use X11 display to create EGL display #21796

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions shell/platform/linux/fl_renderer_x11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ static gboolean fl_renderer_x11_setup_window_attr(

// Implements FlRenderer::create_display.
static EGLDisplay fl_renderer_x11_create_display(FlRenderer* renderer) {
// Note the use of EGL_DEFAULT_DISPLAY rather than sharing the existing
// display connection from GTK. This is because this EGL display is going to
// be accessed by a thread from Flutter. The GTK/X11 display connection is not
// thread safe and would cause a crash.
return eglGetDisplay(EGL_DEFAULT_DISPLAY);
return eglGetDisplay(gdk_x11_get_default_xdisplay());
}

// Implements FlRenderer::create_surfaces.
Expand Down