Changeset 250903 in webkit


Ignore:
Timestamp:
Oct 9, 2019 1:45:39 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Wayland: do not use EGL_PLATFORM_WAYLAND_KHR with eglGetPlatformDisplayEXT
https://bugs.webkit.org/show_bug.cgi?id=202689

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2019-10-09
Reviewed by Žan Doberšek.

Use EGL_PLATFORM_WAYLAND_EXT instead. It shouldn't really matter because both are the same value.

  • platform/graphics/wayland/PlatformDisplayWayland.cpp:

(WebCore::PlatformDisplayWayland::initialize):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r250902 r250903  
     12019-10-09  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Wayland: do not use EGL_PLATFORM_WAYLAND_KHR with eglGetPlatformDisplayEXT
     4        https://bugs.webkit.org/show_bug.cgi?id=202689
     5
     6        Reviewed by Žan Doberšek.
     7
     8        Use EGL_PLATFORM_WAYLAND_EXT instead. It shouldn't really matter because both are the same value.
     9
     10        * platform/graphics/wayland/PlatformDisplayWayland.cpp:
     11        (WebCore::PlatformDisplayWayland::initialize):
     12
    1132019-10-09  Antti Koivisto  <antti@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp

    r243163 r250903  
    9494
    9595#if USE(EGL)
     96#if defined(EGL_KHR_platform_wayland) || defined(EGL_EXT_platform_wayland)
     97    const char* extensions = eglQueryString(nullptr, EGL_EXTENSIONS);
    9698#if defined(EGL_KHR_platform_wayland)
    97     const char* extensions = eglQueryString(nullptr, EGL_EXTENSIONS);
    9899    if (GLContext::isExtensionSupported(extensions, "EGL_KHR_platform_base")) {
    99100        if (auto* getPlatformDisplay = reinterpret_cast<PFNEGLGETPLATFORMDISPLAYEXTPROC>(eglGetProcAddress("eglGetPlatformDisplay")))
    100101            m_eglDisplay = getPlatformDisplay(EGL_PLATFORM_WAYLAND_KHR, m_display, nullptr);
    101     } else if (GLContext::isExtensionSupported(extensions, "EGL_EXT_platform_base")) {
     102    }
     103#endif
     104#if defined(EGL_EXT_platform_wayland)
     105    if (m_eglDisplay == EGL_NO_DISPLAY && GLContext::isExtensionSupported(extensions, "EGL_EXT_platform_base")) {
    102106        if (auto* getPlatformDisplay = reinterpret_cast<PFNEGLGETPLATFORMDISPLAYEXTPROC>(eglGetProcAddress("eglGetPlatformDisplayEXT")))
    103             m_eglDisplay = getPlatformDisplay(EGL_PLATFORM_WAYLAND_KHR, m_display, nullptr);
    104     } else
     107            m_eglDisplay = getPlatformDisplay(EGL_PLATFORM_WAYLAND_EXT, m_display, nullptr);
     108    }
    105109#endif
     110#endif
     111    if (m_eglDisplay == EGL_NO_DISPLAY)
    106112        m_eglDisplay = eglGetDisplay(m_display);
    107113
Note: See TracChangeset for help on using the changeset viewer.