Changeset 260244 in webkit


Ignore:
Timestamp:
Apr 17, 2020 5:53:09 AM (4 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] UI process crash when entering compositing mode when WPE_RENDERER is enabled
https://bugs.webkit.org/show_bug.cgi?id=209118

Reviewed by Michael Catanzaro.

Check if EGL_WL_bind_wayland_display extension is available when using WPE_RENDERER, since we don't suport the
SHM interface.

  • UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:

(WebKit::AcceleratedBackingStoreWayland::checkRequirements): Return false if EGL_WL_bind_wayland_display is not present.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r260239 r260244  
     12020-04-17  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] UI process crash when entering compositing mode when WPE_RENDERER is enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=209118
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Check if EGL_WL_bind_wayland_display extension is available when using WPE_RENDERER, since we don't suport the
     9        SHM interface.
     10
     11        * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp:
     12        (WebKit::AcceleratedBackingStoreWayland::checkRequirements): Return false if EGL_WL_bind_wayland_display is not present.
     13
    1142020-04-17  Rob Buis  <rbuis@igalia.com>
    215
  • trunk/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreWayland.cpp

    r252851 r260244  
    9393#if USE(WPE_RENDERER)
    9494    if (!glImageTargetTexture2D) {
    95         if (!wpe_fdo_initialize_for_egl_display(PlatformDisplay::sharedDisplay().eglDisplay()))
     95        auto* eglDisplay = PlatformDisplay::sharedDisplay().eglDisplay();
     96        const char* extensions = eglQueryString(eglDisplay, EGL_EXTENSIONS);
     97        if (!GLContext::isExtensionSupported(extensions, "EGL_WL_bind_wayland_display"))
     98            return false;
     99
     100        if (!wpe_fdo_initialize_for_egl_display(eglDisplay))
    96101            return false;
    97102
Note: See TracChangeset for help on using the changeset viewer.