Changeset 190615 in webkit
- Timestamp:
- Oct 6, 2015 9:21:04 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r190451 r190615 1 2015-10-06 Emanuele Aina <emanuele.aina@collabora.com> 2 3 Fix ENABLE_OPENGL=OFF builds 4 https://bugs.webkit.org/show_bug.cgi?id=146511 5 6 Reviewed by Darin Adler. 7 8 * Source/cmake/OptionsGTK.cmake: Make ENABLE_WAYLAND_TARGET depend on 9 ENABLE_OPENGL due to EGL usage. 10 1 11 2015-10-01 Wenson Hsieh <wenson_hsieh@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r190614 r190615 1 2015-10-06 Emanuele Aina <emanuele.aina@collabora.com> 2 3 Fix ENABLE_OPENGL=OFF builds 4 https://bugs.webkit.org/show_bug.cgi?id=146511 5 6 Reviewed by Darin Adler. 7 8 * platform/graphics/texmap/BitmapTextureGL.h: 9 * platform/graphics/texmap/BitmapTextureGL.cpp: 10 * platform/graphics/texmap/TextureMapperGL.h: 11 * platform/graphics/texmap/TextureMapperGL.cpp: 12 * platform/graphics/texmap/TextureMapperShaderProgram.h: 13 * platform/graphics/texmap/TextureMapperShaderProgram.cpp: 14 Fix TEXTURE_MAPPER_GL vs. TEXTURE_MAPPER guards to make sure that 15 ENABLE_OPENGL=OFF only disables the GL-related parts. 16 1 17 2015-10-06 Alex Christensen <achristensen@webkit.org> 2 18 -
trunk/Source/WebCore/platform/graphics/texmap/BitmapTextureGL.cpp
r186279 r190615 22 22 #include "config.h" 23 23 #include "BitmapTextureGL.h" 24 25 #if USE(TEXTURE_MAPPER_GL) 24 26 25 27 #include "Extensions3D.h" … … 378 380 379 381 }; // namespace WebCore 382 383 #endif // USE(TEXTURE_MAPPER_GL) -
trunk/Source/WebCore/platform/graphics/texmap/BitmapTextureGL.h
r185518 r190615 21 21 #ifndef BitmapTextureGL_h 22 22 #define BitmapTextureGL_h 23 24 #if USE(TEXTURE_MAPPER_GL) 23 25 24 26 #include "BitmapTexture.h" … … 93 95 } 94 96 97 #endif // USE(TEXTURE_MAPPER_GL) 98 95 99 #endif // BitmapTextureGL_h -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
r186279 r190615 22 22 #include "config.h" 23 23 #include "TextureMapperGL.h" 24 25 #if USE(TEXTURE_MAPPER_GL) 24 26 25 27 #include "BitmapTextureGL.h" … … 52 54 #define GL_UNPACK_SKIP_ROWS 0x0CF3 53 55 #endif 54 55 #if USE(TEXTURE_MAPPER)56 56 57 57 namespace WebCore { … … 799 799 } 800 800 801 #if USE(TEXTURE_MAPPER_GL)802 801 std::unique_ptr<TextureMapper> TextureMapper::platformCreateAccelerated() 803 802 { 804 803 return std::make_unique<TextureMapperGL>(); 805 804 } 806 #endif807 805 808 806 }; 809 #endif 807 808 #endif // USE(TEXTURE_MAPPER_GL) -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperGL.h
r182101 r190615 22 22 #define TextureMapperGL_h 23 23 24 #if USE(TEXTURE_MAPPER )24 #if USE(TEXTURE_MAPPER_GL) 25 25 26 26 #include "FilterOperation.h" … … 139 139 } // namespace WebCore 140 140 141 #endif // USE(TEXTURE_MAPPER )141 #endif // USE(TEXTURE_MAPPER_GL) 142 142 143 143 #endif // TextureMapperGL_h -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.cpp
r189331 r190615 23 23 #include "TextureMapperShaderProgram.h" 24 24 25 #if USE(TEXTURE_MAPPER) 25 #if USE(TEXTURE_MAPPER_GL) 26 26 27 #include "LengthFunctions.h" 27 28 #include "Logging.h" … … 413 414 414 415 } 415 #endif 416 #endif // USE(TEXTURE_MAPPER_GL) -
trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderProgram.h
r173268 r190615 22 22 #define TextureMapperShaderProgram_h 23 23 24 #if USE(TEXTURE_MAPPER )24 #if USE(TEXTURE_MAPPER_GL) 25 25 #include "GraphicsContext3D.h" 26 26 #include "TransformationMatrix.h" … … 97 97 98 98 } 99 #endif 99 #endif // USE(TEXTURE_MAPPER_GL) 100 100 101 101 #endif // TextureMapperShaderProgram_h -
trunk/Source/WebKit2/ChangeLog
r190612 r190615 1 2015-10-06 Emanuele Aina <emanuele.aina@collabora.com> 2 3 Fix ENABLE_OPENGL=OFF builds 4 https://bugs.webkit.org/show_bug.cgi?id=146511 5 6 Reviewed by Darin Adler. 7 8 * UIProcess/API/gtk/WebKitWebViewBase.cpp: 9 (webkitWebViewBaseRealize): 10 (webkitWebViewBaseDraw): 11 (webkitWebViewBaseDidRelaunchWebProcess): 12 Replace USE(TEXTURE_MAPPER_GL) with USE(TEXTURE_MAPPER) around 13 webkitWebViewRenderAcceleratedCompositingResults() 14 * UIProcess/DrawingAreaProxyImpl.cpp: 15 * UIProcess/DrawingAreaProxyImpl.h: 16 * WebProcess/WebPage/DrawingArea.cpp: 17 (WebKit::DrawingArea::DrawingArea): 18 * WebProcess/WebPage/DrawingArea.h: 19 * WebProcess/WebPage/LayerTreeHost.h: 20 Replace USE(TEXTURE_MAPPER_GL) with USE(TEXTURE_MAPPER) around 21 setNativeSurfaceHandleForCompositing(). 22 * UIProcess/gtk/WebPreferencesGtk.cpp: 23 (WebKit::WebPreferences::platformInitializeStore): 24 Default to no AC if no GL support has been built. 25 * WebProcess/WebPage/DrawingArea.messages.in: 26 Replace USE(TEXTURE_MAPPER_GL) with USE(TEXTURE_MAPPER) around 27 SetNativeSurfaceHandleForCompositing. 28 * WebProcess/WebPage/DrawingAreaImpl.h: 29 * WebProcess/WebPage/DrawingAreaImpl.cpp: 30 (WebKit::DrawingAreaImpl::enterAcceleratedCompositingMode): 31 Replace USE(TEXTURE_MAPPER_GL) with USE(TEXTURE_MAPPER) around 32 setNativeSurfaceHandleForCompositing(). 33 (WebKit::DrawingAreaImpl::setNativeSurfaceHandleForCompositing): 34 Force setAcceleratedCompositingEnabled() only if a LayerTreeHost 35 implementation is available, to avoid crashing when building without 36 any GL support. 37 1 38 2015-10-06 Csaba Osztrogonác <ossy@webkit.org> 2 39 -
trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp
r190344 r190615 327 327 gdk_window_set_user_data(window, widget); 328 328 329 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW)329 #if USE(TEXTURE_MAPPER) && PLATFORM(X11) && !USE(REDIRECTED_XCOMPOSITE_WINDOW) 330 330 DrawingAreaProxyImpl* drawingArea = static_cast<DrawingAreaProxyImpl*>(priv->pageProxy->drawingArea()); 331 331 drawingArea->setNativeSurfaceHandleForCompositing(GDK_WINDOW_XID(window)); … … 473 473 } 474 474 475 #if USE(TEXTURE_MAPPER _GL)475 #if USE(TEXTURE_MAPPER) 476 476 static bool webkitWebViewRenderAcceleratedCompositingResults(WebKitWebViewBase* webViewBase, DrawingAreaProxyImpl* drawingArea, cairo_t* cr, GdkRectangle* clipRect) 477 477 { … … 519 519 return FALSE; 520 520 521 #if USE(TEXTURE_MAPPER _GL)521 #if USE(TEXTURE_MAPPER) 522 522 if (webkitWebViewRenderAcceleratedCompositingResults(webViewBase, drawingArea, cr, &clipRect)) 523 523 return GTK_WIDGET_CLASS(webkit_web_view_base_parent_class)->draw(widget, cr); … … 1370 1370 gtk_widget_queue_resize_no_redraw(GTK_WIDGET(webkitWebViewBase)); 1371 1371 1372 #if PLATFORM(X11) 1372 #if PLATFORM(X11) && USE(TEXTURE_MAPPER) 1373 1373 if (PlatformDisplay::sharedDisplay().type() != PlatformDisplay::Type::X11) 1374 1374 return; … … 1380 1380 if (!priv->redirectedWindow) 1381 1381 return; 1382 drawingArea->setNativeSurfaceHandleForCompositing(priv->redirectedWindow->windowID());1382 uint64_t windowID = priv->redirectedWindow->windowID(); 1383 1383 #else 1384 1384 if (!gtk_widget_get_realized(GTK_WIDGET(webkitWebViewBase))) 1385 1385 return; 1386 drawingArea->setNativeSurfaceHandleForCompositing(GDK_WINDOW_XID(gtk_widget_get_window(GTK_WIDGET(webkitWebViewBase)))); 1387 #endif 1386 uint64_t windowID = GDK_WINDOW_XID(gtk_widget_get_window(GTK_WIDGET(webkitWebViewBase))); 1387 #endif 1388 drawingArea->setNativeSurfaceHandleForCompositing(windowID); 1388 1389 #else 1389 1390 UNUSED_PARAM(webkitWebViewBase); -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp
r176954 r190615 301 301 } 302 302 303 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(GTK)303 #if USE(TEXTURE_MAPPER) && PLATFORM(GTK) 304 304 void DrawingAreaProxyImpl::setNativeSurfaceHandleForCompositing(uint64_t handle) 305 305 { -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h
r181324 r190615 49 49 bool hasReceivedFirstUpdate() const { return m_hasReceivedFirstUpdate; } 50 50 51 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(GTK)51 #if USE(TEXTURE_MAPPER) && PLATFORM(GTK) 52 52 void setNativeSurfaceHandleForCompositing(uint64_t); 53 53 #endif -
trunk/Source/WebKit2/UIProcess/gtk/WebPreferencesGtk.cpp
r187641 r190615 43 43 setPluginsEnabled(false); 44 44 } 45 #endif 46 #if !ENABLE(OPEN_GL) 47 setAcceleratedCompositingEnabled(false); 45 48 #endif 46 49 } -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.cpp
r183746 r190615 77 77 : m_type(type) 78 78 , m_webPage(webPage) 79 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(GTK)79 #if USE(TEXTURE_MAPPER) && PLATFORM(GTK) 80 80 , m_nativeSurfaceHandleForCompositing(0) 81 81 #endif -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.h
r190064 r190615 144 144 WebPage& m_webPage; 145 145 146 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(GTK)146 #if USE(TEXTURE_MAPPER) && PLATFORM(GTK) 147 147 uint64_t m_nativeSurfaceHandleForCompositing; 148 148 #endif … … 169 169 #endif 170 170 171 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(GTK)171 #if USE(TEXTURE_MAPPER) && PLATFORM(GTK) 172 172 virtual void setNativeSurfaceHandleForCompositing(uint64_t) = 0; 173 173 #endif -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingArea.messages.in
r186662 r190615 41 41 #endif 42 42 43 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(GTK)43 #if USE(TEXTURE_MAPPER) && PLATFORM(GTK) 44 44 SetNativeSurfaceHandleForCompositing(uint64_t handle) 45 45 #endif -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp
r190238 r190615 469 469 470 470 m_layerTreeHost = LayerTreeHost::create(&m_webPage); 471 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(GTK)471 #if USE(TEXTURE_MAPPER) && PLATFORM(GTK) 472 472 if (m_nativeSurfaceHandleForCompositing) 473 473 m_layerTreeHost->setNativeSurfaceHandleForCompositing(m_nativeSurfaceHandleForCompositing); … … 688 688 } 689 689 690 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(GTK)690 #if USE(TEXTURE_MAPPER) && PLATFORM(GTK) 691 691 void DrawingAreaImpl::setNativeSurfaceHandleForCompositing(uint64_t handle) 692 692 { 693 693 m_nativeSurfaceHandleForCompositing = handle; 694 m_webPage.corePage()->settings().setAcceleratedCompositingEnabled(true); 695 696 if (m_layerTreeHost)694 695 if (m_layerTreeHost) { 696 m_webPage.corePage()->settings().setAcceleratedCompositingEnabled(true); 697 697 m_layerTreeHost->setNativeSurfaceHandleForCompositing(handle); 698 } 698 699 } 699 700 #endif -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.h
r190238 r190615 71 71 virtual void attachViewOverlayGraphicsLayer(WebCore::Frame*, WebCore::GraphicsLayer*) override; 72 72 73 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(GTK)73 #if USE(TEXTURE_MAPPER) && PLATFORM(GTK) 74 74 virtual void setNativeSurfaceHandleForCompositing(uint64_t) override; 75 75 #endif -
trunk/Source/WebKit2/WebProcess/WebPage/LayerTreeHost.h
r188212 r190615 93 93 #endif 94 94 95 #if USE(TEXTURE_MAPPER _GL) && PLATFORM(GTK)95 #if USE(TEXTURE_MAPPER) && PLATFORM(GTK) 96 96 virtual void setNativeSurfaceHandleForCompositing(uint64_t) = 0; 97 97 #endif -
trunk/Source/cmake/OptionsGTK.cmake
r190025 r190615 96 96 WEBKIT_OPTION_DEPEND(USE_GSTREAMER_GL ENABLE_VIDEO) 97 97 WEBKIT_OPTION_DEPEND(USE_GSTREAMER_MPEGTS ENABLE_VIDEO) 98 WEBKIT_OPTION_DEPEND(ENABLE_WAYLAND_TARGET ENABLE_OPENGL) 98 99 99 100 SET_AND_EXPOSE_TO_BUILD(ENABLE_DEVELOPER_MODE ${DEVELOPER_MODE})
Note: See TracChangeset
for help on using the changeset viewer.