Changeset 207658 in webkit
- Timestamp:
- Oct 20, 2016 10:30:53 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r207617 r207658 1 2016-10-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] Configures but fails to link with ENABLE_OPENGL=OFF 4 https://bugs.webkit.org/show_bug.cgi?id=163449 5 6 Reviewed by Michael Catanzaro. 7 8 Remove wrong dependency of Wayland on OpenGL introduced in r190615, it should be possible to build for Wayland 9 without GL. 10 11 * Source/cmake/OptionsGTK.cmake: 12 1 13 2016-10-20 Fujii Hironori <Hironori.Fujii@sony.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r207653 r207658 1 2016-10-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] Configures but fails to link with ENABLE_OPENGL=OFF 4 https://bugs.webkit.org/show_bug.cgi?id=163449 5 6 Reviewed by Michael Catanzaro. 7 8 Only define sharingGLContext in PlatformDisplay if EGL or GLX are enabled. 9 10 * platform/graphics/PlatformDisplay.cpp: 11 * platform/graphics/PlatformDisplay.h: 12 * platform/graphics/wayland/PlatformDisplayWayland.cpp: 13 (WebCore::PlatformDisplayWayland::initialize): 14 * platform/graphics/x11/PlatformDisplayX11.cpp: 15 (WebCore::PlatformDisplayX11::~PlatformDisplayX11): 16 1 17 2016-10-20 Filip Pizlo <fpizlo@apple.com> 2 18 -
trunk/Source/WebCore/platform/graphics/PlatformDisplay.cpp
r205116 r207658 133 133 } 134 134 135 #if !PLATFORM(EFL) 135 #if !PLATFORM(EFL) && (USE(EGL) || USE(GLX)) 136 136 GLContext* PlatformDisplay::sharingGLContext() 137 137 { -
trunk/Source/WebCore/platform/graphics/PlatformDisplay.h
r205852 r207658 59 59 virtual Type type() const = 0; 60 60 61 #if !PLATFORM(EFL) 61 #if !PLATFORM(EFL) && (USE(EGL) || USE(GLX)) 62 62 // FIXME: This should not have any platform ifdef, but EFL has its own EGLContext class 63 63 // instead of using the GLContext common API. … … 81 81 #endif 82 82 83 #if USE(EGL) || USE(GLX) 83 84 std::unique_ptr<GLContext> m_sharingGLContext; 85 #endif 84 86 85 87 private: -
trunk/Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp
r207619 r207658 67 67 wl_display_roundtrip(m_display); 68 68 69 #if USE(EGL) 69 70 #if defined(EGL_KHR_platform_wayland) 70 71 const char* extensions = eglQueryString(nullptr, EGL_EXTENSIONS); … … 80 81 81 82 PlatformDisplay::initializeEGLDisplay(); 83 #endif 82 84 } 83 85 -
trunk/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp
r207619 r207658 57 57 PlatformDisplayX11::~PlatformDisplayX11() 58 58 { 59 #if USE(EGL) || USE(GLX) 59 60 // Clear the sharing context before releasing the display. 60 61 m_sharingGLContext = nullptr; 62 #endif 61 63 if (m_ownedDisplay) 62 64 XCloseDisplay(m_display); -
trunk/Source/WebKit2/ChangeLog
r207648 r207658 1 2016-10-20 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] Configures but fails to link with ENABLE_OPENGL=OFF 4 https://bugs.webkit.org/show_bug.cgi?id=163449 5 6 Reviewed by Michael Catanzaro. 7 8 * UIProcess/API/gtk/WebKitWebViewBase.cpp: 9 (webkitWebViewBaseRealize): Check TEXTURE_MAPPER_GL instead of TEXTURE_MAPPER and also ensure the current 10 display is X11. 11 (webkitWebViewBaseUnrealize): Ditto. 12 (webkitWebViewBaseDidRelaunchWebProcess): Check TEXTURE_MAPPER_GL instead of TEXTURE_MAPPER. 13 (webkitWebViewBasePageClosed): Ditto. 14 * UIProcess/AcceleratedDrawingAreaProxy.cpp: 15 (WebKit::AcceleratedDrawingAreaProxy::didUpdateBackingStoreState): Ditto. 16 (WebKit::AcceleratedDrawingAreaProxy::waitForAndDispatchDidUpdateBackingStoreState): Check EGL is enabled before 17 trying to use the WaylandCompositor. 18 * UIProcess/AcceleratedDrawingAreaProxy.h: 19 * UIProcess/WebProcessPool.cpp: 20 (WebKit::WebProcessPool::createNewWebProcess): Ditto. 21 * UIProcess/gtk/AcceleratedBackingStore.cpp: 22 (WebKit::AcceleratedBackingStore::create): Ditto. 23 * UIProcess/gtk/AcceleratedBackingStoreWayland.cpp: 24 * UIProcess/gtk/WaylandCompositor.cpp: 25 * UIProcess/gtk/WaylandCompositor.h: 26 * WebProcess/WebPage/AcceleratedDrawingArea.cpp: 27 (WebKit::AcceleratedDrawingArea::enterAcceleratedCompositingMode): Check TEXTURE_MAPPER_GL instead of TEXTURE_MAPPER. 28 * WebProcess/WebPage/AcceleratedDrawingArea.h: 29 * WebProcess/WebPage/DrawingArea.h: 30 * WebProcess/WebPage/DrawingArea.messages.in: 31 * WebProcess/WebPage/LayerTreeHost.h: 32 1 33 2016-10-20 Chris Dumez <cdumez@apple.com> 2 34 -
trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp
r206985 r207658 378 378 gdk_window_set_user_data(window, widget); 379 379 380 #if USE(TEXTURE_MAPPER) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 381 if (DrawingAreaProxyImpl* drawingArea = static_cast<DrawingAreaProxyImpl*>(priv->pageProxy->drawingArea())) 382 drawingArea->setNativeSurfaceHandleForCompositing(GDK_WINDOW_XID(window)); 380 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 381 if (PlatformDisplay::sharedDisplay().type() == PlatformDisplay::Type::X11) { 382 if (DrawingAreaProxyImpl* drawingArea = static_cast<DrawingAreaProxyImpl*>(priv->pageProxy->drawingArea())) 383 drawingArea->setNativeSurfaceHandleForCompositing(GDK_WINDOW_XID(window)); 384 } 383 385 #endif 384 386 … … 391 393 { 392 394 WebKitWebViewBase* webView = WEBKIT_WEB_VIEW_BASE(widget); 393 #if USE(TEXTURE_MAPPER) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 394 if (DrawingAreaProxyImpl* drawingArea = static_cast<DrawingAreaProxyImpl*>(webView->priv->pageProxy->drawingArea())) 395 drawingArea->destroyNativeSurfaceHandleForCompositing(); 395 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 396 if (PlatformDisplay::sharedDisplay().type() == PlatformDisplay::Type::X11) { 397 if (DrawingAreaProxyImpl* drawingArea = static_cast<DrawingAreaProxyImpl*>(webView->priv->pageProxy->drawingArea())) 398 drawingArea->destroyNativeSurfaceHandleForCompositing(); 399 } 396 400 #endif 397 401 gtk_im_context_set_client_window(webView->priv->inputMethodFilter.context(), nullptr); … … 1477 1481 gtk_widget_queue_resize_no_redraw(GTK_WIDGET(webkitWebViewBase)); 1478 1482 1479 #if PLATFORM(X11) && USE(TEXTURE_MAPPER ) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)1483 #if PLATFORM(X11) && USE(TEXTURE_MAPPER_GL) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 1480 1484 if (PlatformDisplay::sharedDisplay().type() != PlatformDisplay::Type::X11) 1481 1485 return; … … 1499 1503 if (webkitWebViewBase->priv->acceleratedBackingStore) 1500 1504 webkitWebViewBase->priv->acceleratedBackingStore->update(LayerTreeContext()); 1501 #if PLATFORM(X11) && USE(TEXTURE_MAPPER ) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)1505 #if PLATFORM(X11) && USE(TEXTURE_MAPPER_GL) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 1502 1506 if (PlatformDisplay::sharedDisplay().type() != PlatformDisplay::Type::X11) 1503 1507 return; -
trunk/Source/WebKit2/UIProcess/AcceleratedDrawingAreaProxy.cpp
r206806 r207658 140 140 m_hasReceivedFirstUpdate = true; 141 141 142 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)142 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 143 143 if (m_pendingNativeSurfaceHandleForCompositing) { 144 144 setNativeSurfaceHandleForCompositing(m_pendingNativeSurfaceHandleForCompositing); … … 224 224 return; 225 225 226 #if PLATFORM(WAYLAND) 226 #if PLATFORM(WAYLAND) && USE(EGL) 227 227 // Never block the UI process in Wayland when waiting for DidUpdateBackingStoreState after a resize, 228 228 // because the nested compositor needs to handle the web process requests that happens while resizing. … … 264 264 } 265 265 266 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)266 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 267 267 void AcceleratedDrawingAreaProxy::setNativeSurfaceHandleForCompositing(uint64_t handle) 268 268 { -
trunk/Source/WebKit2/UIProcess/AcceleratedDrawingAreaProxy.h
r205431 r207658 47 47 #endif 48 48 49 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)49 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 50 50 void setNativeSurfaceHandleForCompositing(uint64_t); 51 51 void destroyNativeSurfaceHandleForCompositing(); … … 100 100 bool m_hasReceivedFirstUpdate { false }; 101 101 102 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)102 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 103 103 uint64_t m_pendingNativeSurfaceHandleForCompositing { 0 }; 104 104 #endif -
trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp
r207648 r207658 648 648 #endif 649 649 650 #if PLATFORM(WAYLAND) 650 #if PLATFORM(WAYLAND) && USE(EGL) 651 651 if (PlatformDisplay::sharedDisplay().type() == PlatformDisplay::Type::Wayland) 652 652 parameters.waylandCompositorDisplayName = WaylandCompositor::singleton().displayName(); -
trunk/Source/WebKit2/UIProcess/gtk/AcceleratedBackingStore.cpp
r205116 r207658 45 45 std::unique_ptr<AcceleratedBackingStore> AcceleratedBackingStore::create(WebPageProxy& webPage) 46 46 { 47 #if PLATFORM(WAYLAND) 47 #if PLATFORM(WAYLAND) && USE(EGL) 48 48 if (PlatformDisplay::sharedDisplay().type() == PlatformDisplay::Type::Wayland) 49 49 return AcceleratedBackingStoreWayland::create(webPage); -
trunk/Source/WebKit2/UIProcess/gtk/AcceleratedBackingStoreWayland.cpp
r206424 r207658 27 27 #include "AcceleratedBackingStoreWayland.h" 28 28 29 #if PLATFORM(WAYLAND) 29 #if PLATFORM(WAYLAND) && USE(EGL) 30 30 31 31 #include "WaylandCompositor.h" … … 163 163 } // namespace WebKit 164 164 165 #endif // PLATFORM(WAYLAND) 165 #endif // PLATFORM(WAYLAND) && USE(EGL) -
trunk/Source/WebKit2/UIProcess/gtk/WaylandCompositor.cpp
r207614 r207658 27 27 #include "WaylandCompositor.h" 28 28 29 #if PLATFORM(WAYLAND) 29 #if PLATFORM(WAYLAND) && USE(EGL) 30 30 31 31 #include "WebKit2WaylandServerProtocol.h" … … 517 517 } // namespace WebKit 518 518 519 #endif // PLATFORM(WAYLAND) 519 #endif // PLATFORM(WAYLAND) && USE(EGL) -
trunk/Source/WebKit2/UIProcess/gtk/WaylandCompositor.h
r206961 r207658 26 26 #pragma once 27 27 28 #if PLATFORM(WAYLAND) 28 #if PLATFORM(WAYLAND) && USE(EGL) 29 29 30 30 #include "WebPageProxy.h" … … 127 127 } // namespace WebKit 128 128 129 #endif // PLATFORM(WAYLAND) 129 #endif // PLATFORM(WAYLAND) && USE(EGL) -
trunk/Source/WebKit2/WebProcess/WebPage/AcceleratedDrawingArea.cpp
r205431 r207658 321 321 ASSERT(!m_layerTreeHost); 322 322 m_layerTreeHost = LayerTreeHost::create(m_webPage); 323 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)323 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 324 324 if (m_nativeSurfaceHandleForCompositing) 325 325 m_layerTreeHost->setNativeSurfaceHandleForCompositing(m_nativeSurfaceHandleForCompositing); … … 353 353 #endif 354 354 355 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)355 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 356 356 void AcceleratedDrawingArea::setNativeSurfaceHandleForCompositing(uint64_t handle) 357 357 { -
trunk/Source/WebKit2/WebProcess/WebPage/AcceleratedDrawingArea.h
r205431 r207658 64 64 #endif 65 65 66 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)66 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 67 67 void setNativeSurfaceHandleForCompositing(uint64_t) override; 68 68 void destroyNativeSurfaceHandleForCompositing(bool&) override; -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.h
r205431 r207658 147 147 WebPage& m_webPage; 148 148 149 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)149 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 150 150 uint64_t m_nativeSurfaceHandleForCompositing { 0 }; 151 151 #endif … … 173 173 #endif 174 174 175 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)175 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 176 176 virtual void setNativeSurfaceHandleForCompositing(uint64_t) = 0; 177 177 virtual void destroyNativeSurfaceHandleForCompositing(bool&) = 0; -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.messages.in
r205431 r207658 41 41 #endif 42 42 43 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)43 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 44 44 SetNativeSurfaceHandleForCompositing(uint64_t handle) 45 45 DestroyNativeSurfaceHandleForCompositing() -> (bool handled) -
trunk/Source/WebKit2/WebProcess/WebPage/LayerTreeHost.h
r205369 r207658 93 93 #endif 94 94 95 #if USE(TEXTURE_MAPPER ) && PLATFORM(GTK)95 #if USE(TEXTURE_MAPPER_GL) && PLATFORM(GTK) 96 96 virtual void setNativeSurfaceHandleForCompositing(uint64_t) { }; 97 97 #endif -
trunk/Source/cmake/OptionsGTK.cmake
r206731 r207658 111 111 WEBKIT_OPTION_DEPEND(USE_GSTREAMER_GL ENABLE_VIDEO) 112 112 WEBKIT_OPTION_DEPEND(USE_GSTREAMER_MPEGTS ENABLE_VIDEO) 113 WEBKIT_OPTION_DEPEND(ENABLE_WAYLAND_TARGET ENABLE_OPENGL)114 113 115 114 SET_AND_EXPOSE_TO_BUILD(ENABLE_DEVELOPER_MODE ${DEVELOPER_MODE})
Note: See TracChangeset
for help on using the changeset viewer.