Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 33127761563faf88ac93847845cafa35f49c9008
      
https://github.com/WebKit/WebKit/commit/33127761563faf88ac93847845cafa35f49c9008
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2024-07-26 (Fri, 26 Jul 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.cpp
    M Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.h

  Log Message:
  -----------
  [WPE] Do not connect ot the default EGL display in the UI process
https://bugs.webkit.org/show_bug.cgi?id=277070

Reviewed by Michael Catanzaro.

When using the old API, a PlatformDisplayLibWPE is created in the UI
process to query the drm render node to pass to the web process. The
display is not initialized with a backend, so the default
PlatformDisplay::initializeEGL is called and the default native display
is used to create the EGL display. The default display doesn't need to
be the right one, so we should try to use the current EGL display and
only connect to the default if there's no current display.

* Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.cpp:
(WebCore::PlatformDisplayLibWPE::initializeEGLDisplay):
(WebCore::PlatformDisplayLibWPE::PlatformDisplayLibWPE): Deleted.
* Source/WebCore/platform/graphics/libwpe/PlatformDisplayLibWPE.h:

Canonical link: https://commits.webkit.org/281389@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to