Changeset 185198 in webkit
- Timestamp:
- Jun 4, 2015 3:55:31 AM (9 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r185197 r185198 1 2015-06-03 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 3 [GTK] [Wayland] Build is broken on trunk 4 https://bugs.webkit.org/show_bug.cgi?id=142879 5 6 Reviewed by Carlos Garcia Campos. 7 8 No new tests, no behavior changes. 9 10 Patch on GLContext.h picked from bug 136831 by 11 Iago Toral <itoral@igalia.com> and Zan Dobersek <zdobersek@igalia.com> 12 13 * platform/graphics/GLContext.h: Include wayland-egl.h before eglplatform.h 14 to use the Wayland platform when building for Wayland. 15 * platform/graphics/PlatformDisplay.cpp: Fix the include of GDK 16 headers for the different targets. 17 * platform/graphics/wayland/WaylandSurface.cpp: Fix build after r183731. 18 (WebCore::WaylandSurface::~WaylandSurface): 19 1 20 2015-06-04 Xabier Rodriguez Calvar <calvaris@igalia.com> and Youenn Fablet <youenn.fablet@crf.canon.fr> 2 21 -
trunk/Source/WebCore/platform/graphics/GLContext.h
r183432 r185198 27 27 #if USE(EGL) && !PLATFORM(GTK) 28 28 #include "eglplatform.h" 29 typedef EGLNativeWindowType GLNativeWindowType; 30 #elif PLATFORM(GTK) && PLATFORM(WAYLAND) && !defined(GTK_API_VERSION_2) 31 #include <wayland-egl.h> 32 #include <EGL/eglplatform.h> 29 33 typedef EGLNativeWindowType GLNativeWindowType; 30 34 #else -
trunk/Source/WebCore/platform/graphics/PlatformDisplay.cpp
r183892 r185198 43 43 44 44 #if PLATFORM(GTK) 45 #if PLATFORM(X11) 45 46 #include <gdk/gdkx.h> 46 47 #endif 48 #if PLATFORM(WAYLAND) && !defined(GTK_API_VERSION_2) 49 #include <gdk/gdkwayland.h> 50 #endif 51 #endif // PLATFORM(GTK) 47 52 48 53 #if PLATFORM(EFL) && defined(HAVE_ECORE_X) -
trunk/Source/WebCore/platform/graphics/wayland/WaylandSurface.cpp
r177786 r185198 31 31 #include "GLContextEGL.h" 32 32 #include "IntSize.h" 33 #include " WaylandDisplay.h"33 #include "PlatformDisplayWayland.h" 34 34 #include <EGL/egl.h> 35 35 … … 55 55 { 56 56 // The surface couldn't have been created in the first place if WaylandDisplay wasn't properly initialized. 57 ASSERT(WaylandDisplay::instance()); 58 eglMakeCurrent(WaylandDisplay::instance()->eglDisplay(), EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 57 const PlatformDisplayWayland& waylandDisplay = downcast<PlatformDisplayWayland>(PlatformDisplay::sharedDisplay()); 58 ASSERT(waylandDisplay.native()); 59 eglMakeCurrent(waylandDisplay.native(), EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 59 60 60 61 wl_egl_window_destroy(m_nativeWindow); -
trunk/Source/WebKit2/ChangeLog
r185190 r185198 1 2015-06-03 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 3 [GTK] [Wayland] Build is broken on trunk 4 https://bugs.webkit.org/show_bug.cgi?id=142879 5 6 Reviewed by Carlos Garcia Campos. 7 8 * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp: 9 (WebKit::LayerTreeHostGtk::makeContextCurrent): When Wayland target 10 is enabled GLNativeWindowType is not an u_int64 type. 11 Cast contextID to avoid a build failure. 12 1 13 2015-06-03 Dan Bernstein <mitz@apple.com> 2 14 -
trunk/Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
r183807 r185198 85 85 return false; 86 86 87 m_context = GLContext::createContextForWindow( m_layerTreeContext.contextID, GLContext::sharingContext());87 m_context = GLContext::createContextForWindow(reinterpret_cast<GLNativeWindowType>(m_layerTreeContext.contextID), GLContext::sharingContext()); 88 88 if (!m_context) 89 89 return false;
Note: See TracChangeset
for help on using the changeset viewer.