⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 207619 in webkit


Ignore:
Timestamp:
Oct 20, 2016, 8:57:25 AM (10 years ago)
Author:
clopez@igalia.com
Message:

[GTK] Build fix after r207616
​https://bugs.webkit.org/show_bug.cgi?id=163333

Reviewed by Carlos Garcia Campos.

EGL_PLATFORM_X11_KHR and EGL_PLATFORM_WAYLAND_KHR are not defined
on the EGL headers shipped by Mesa 10.3 (shipped by Debian 8)

  • platform/graphics/wayland/PlatformDisplayWayland.cpp:

(WebCore::PlatformDisplayWayland::initialize):

  • platform/graphics/x11/PlatformDisplayX11.cpp:

(WebCore::PlatformDisplayX11::initializeEGLDisplay):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r207617 r207619  
     12016-10-20  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        [GTK] Build fix after r207616
     4        https://bugs.webkit.org/show_bug.cgi?id=163333
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        EGL_PLATFORM_X11_KHR and EGL_PLATFORM_WAYLAND_KHR are not defined
     9        on the EGL headers shipped by Mesa 10.3 (shipped by Debian 8)
     10
     11        * platform/graphics/wayland/PlatformDisplayWayland.cpp:
     12        (WebCore::PlatformDisplayWayland::initialize):
     13        * platform/graphics/x11/PlatformDisplayX11.cpp:
     14        (WebCore::PlatformDisplayX11::initializeEGLDisplay):
     15
    1162016-10-20  Fujii Hironori  <Hironori.Fujii@sony.com>
    217
  • trunk/Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp

    r207616 r207619  
    6767    wl_display_roundtrip(m_display);
    6868
     69#if defined(EGL_KHR_platform_wayland)
    6970    const char* extensions = eglQueryString(nullptr, EGL_EXTENSIONS);
    7071    if (GLContext::isExtensionSupported(extensions, "EGL_KHR_platform_base")) {
    … …  
    7576            m_eglDisplay = getPlatformDisplay(EGL_PLATFORM_WAYLAND_KHR, m_display, nullptr);
    7677    } else
     78#endif
    7779        m_eglDisplay = eglGetDisplay(m_display);
    7880
  • trunk/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp

    r207616 r207619  
    6666void PlatformDisplayX11::initializeEGLDisplay()
    6767{
     68#if defined(EGL_KHR_platform_x11)
    6869    const char* extensions = eglQueryString(nullptr, EGL_EXTENSIONS);
    6970    if (GLContext::isExtensionSupported(extensions, "EGL_KHR_platform_base")) {
    … …  
    7475            m_eglDisplay = getPlatformDisplay(EGL_PLATFORM_X11_KHR, m_display, nullptr);
    7576    } else
     77#endif
    7678        m_eglDisplay = eglGetDisplay(m_display);
    7779
    7880    PlatformDisplay::initializeEGLDisplay();
    7981}
    80 #endif
     82#endif // USE(EGL)
    8183
    8284bool PlatformDisplayX11::supportsXComposite() const
Note: See TracChangeset for help on using the changeset viewer.