Skip to content

Commit

Permalink
Remove ENABLE_THREADED_COMPOSITOR build option
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=168606

Reviewed by Michael Catanzaro.

.:

* Source/cmake/OptionsGTK.cmake:
* Source/cmake/WebKitFeatures.cmake:

Source/WebCore:

* platform/TextureMapper.cmake:

Source/WebKit2:

Now that we have AC mode on demand with the threaded compositor there's no reason to keep the old AC code.

* PlatformGTK.cmake:
* WebProcess/WebPage/LayerTreeHost.cpp:
(WebKit::LayerTreeHost::create):
* WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp: Removed.
* WebProcess/WebPage/gtk/LayerTreeHostGtk.h: Removed.

Tools:

* Scripts/webkitperl/FeatureList.pm:

Canonical link: https://commits.webkit.org/185641@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
carlosgcampos committed Feb 21, 2017
1 parent b58680b commit 9a0bd86
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 595 deletions.
10 changes: 10 additions & 0 deletions ChangeLog
@@ -1,3 +1,13 @@
2017-02-20 Carlos Garcia Campos <cgarcia@igalia.com>

Remove ENABLE_THREADED_COMPOSITOR build option
https://bugs.webkit.org/show_bug.cgi?id=168606

Reviewed by Michael Catanzaro.

* Source/cmake/OptionsGTK.cmake:
* Source/cmake/WebKitFeatures.cmake:

2017-02-20 Manuel Rego Casasnovas <rego@igalia.com>

[css-grid] Remove compilation flag ENABLE_CSS_GRID_LAYOUT
Expand Down
9 changes: 9 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,12 @@
2017-02-20 Carlos Garcia Campos <cgarcia@igalia.com>

Remove ENABLE_THREADED_COMPOSITOR build option
https://bugs.webkit.org/show_bug.cgi?id=168606

Reviewed by Michael Catanzaro.

* platform/TextureMapper.cmake:

2017-02-20 Alex Christensen <achristensen@webkit.org>

Fix some 32-bit builds after r212699
Expand Down
13 changes: 6 additions & 7 deletions Source/WebCore/platform/TextureMapper.cmake
Expand Up @@ -4,15 +4,13 @@ list(APPEND WebCore_INCLUDE_DIRECTORIES
list(APPEND WebCore_SOURCES
platform/graphics/texmap/BitmapTexture.cpp
platform/graphics/texmap/BitmapTexturePool.cpp
platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
platform/graphics/texmap/TextureMapper.cpp
platform/graphics/texmap/TextureMapperAnimation.cpp
platform/graphics/texmap/TextureMapperBackingStore.cpp
platform/graphics/texmap/TextureMapperFPSCounter.cpp
platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp
platform/graphics/texmap/TextureMapperLayer.cpp
platform/graphics/texmap/TextureMapperTile.cpp
platform/graphics/texmap/TextureMapperTiledBackingStore.cpp
)

if (USE_TEXTURE_MAPPER_GL)
Expand All @@ -33,17 +31,18 @@ if (USE_COORDINATED_GRAPHICS)
page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp
page/scrolling/coordinatedgraphics/ScrollingStateNodeCoordinatedGraphics.cpp

platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp
platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp

platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
platform/graphics/texmap/coordinated/CoordinatedImageBacking.cpp
platform/graphics/texmap/coordinated/CoordinatedSurface.cpp
platform/graphics/texmap/coordinated/Tile.cpp
platform/graphics/texmap/coordinated/TiledBackingStore.cpp
)
endif ()

if (ENABLE_THREADED_COMPOSITOR)
else ()
list(APPEND WebCore_SOURCES
platform/graphics/texmap/TextureMapperPlatformLayerBuffer.cpp
platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp
platform/graphics/texmap/GraphicsLayerTextureMapper.cpp
platform/graphics/texmap/TextureMapperBackingStore.cpp
)
endif ()
15 changes: 15 additions & 0 deletions Source/WebKit2/ChangeLog
@@ -1,3 +1,18 @@
2017-02-20 Carlos Garcia Campos <cgarcia@igalia.com>

Remove ENABLE_THREADED_COMPOSITOR build option
https://bugs.webkit.org/show_bug.cgi?id=168606

Reviewed by Michael Catanzaro.

Now that we have AC mode on demand with the threaded compositor there's no reason to keep the old AC code.

* PlatformGTK.cmake:
* WebProcess/WebPage/LayerTreeHost.cpp:
(WebKit::LayerTreeHost::create):
* WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp: Removed.
* WebProcess/WebPage/gtk/LayerTreeHostGtk.h: Removed.

2017-02-20 Youenn Fablet <youenn@apple.com>

[WebRTC][Mac] Activate libwebrtc
Expand Down
45 changes: 18 additions & 27 deletions Source/WebKit2/PlatformGTK.cmake
Expand Up @@ -59,6 +59,14 @@ list(APPEND WebKit2_SOURCES

Shared/Authentication/soup/AuthenticationManagerSoup.cpp

Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp
Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp
Shared/CoordinatedGraphics/SimpleViewportController.cpp

Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp
Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.cpp
Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp

Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp

Shared/Plugins/unix/PluginSearchPath.cpp
Expand Down Expand Up @@ -471,6 +479,13 @@ list(APPEND WebKit2_SOURCES
WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp

WebProcess/WebPage/AcceleratedDrawingArea.cpp

WebProcess/WebPage/CoordinatedGraphics/AreaAllocator.cpp
WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp
WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp
WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.cpp

WebProcess/WebPage/DrawingAreaImpl.cpp

WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp
Expand Down Expand Up @@ -853,6 +868,8 @@ list(APPEND WebKit2_INCLUDE_DIRECTORIES
"${WEBKIT2_DIR}/NetworkProcess/unix"
"${WEBKIT2_DIR}/Platform/IPC/glib"
"${WEBKIT2_DIR}/Shared/API/c/gtk"
"${WEBKIT2_DIR}/Shared/CoordinatedGraphics"
"${WEBKIT2_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
"${WEBKIT2_DIR}/Shared/Plugins/unix"
"${WEBKIT2_DIR}/Shared/glib"
"${WEBKIT2_DIR}/Shared/gtk"
Expand All @@ -879,6 +896,7 @@ list(APPEND WebKit2_INCLUDE_DIRECTORIES
"${WEBKIT2_DIR}/WebProcess/unix"
"${WEBKIT2_DIR}/WebProcess/WebCoreSupport/gtk"
"${WEBKIT2_DIR}/WebProcess/WebCoreSupport/soup"
"${WEBKIT2_DIR}/WebProcess/WebPage/CoordinatedGraphics"
"${WEBKIT2_DIR}/WebProcess/WebPage/atk"
"${WEBKIT2_DIR}/WebProcess/WebPage/gtk"
)
Expand Down Expand Up @@ -1180,33 +1198,6 @@ list(APPEND PluginProcess_SOURCES
PluginProcess/EntryPoint/unix/PluginProcessMain.cpp
)

if (ENABLE_THREADED_COMPOSITOR)
list(APPEND WebKit2_SOURCES
Shared/CoordinatedGraphics/CoordinatedBackingStore.cpp
Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp
Shared/CoordinatedGraphics/SimpleViewportController.cpp

Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp
Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.cpp
Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp

WebProcess/WebPage/CoordinatedGraphics/AreaAllocator.cpp
WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp
WebProcess/WebPage/CoordinatedGraphics/ThreadedCoordinatedLayerTreeHost.cpp
WebProcess/WebPage/CoordinatedGraphics/UpdateAtlas.cpp
)
list(APPEND WebKit2_INCLUDE_DIRECTORIES
"${WEBKIT2_DIR}/Shared/CoordinatedGraphics"
"${WEBKIT2_DIR}/Shared/CoordinatedGraphics/threadedcompositor"
"${WEBKIT2_DIR}/WebProcess/WebPage/CoordinatedGraphics"
)
else (ENABLE_THREADED_COMPOSITOR)
list(APPEND WebKit2_SOURCES
WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp
)
endif ()

# Commands for building the built-in injected bundle.
include_directories(
"${WEBKIT2_DIR}/Platform"
Expand Down
4 changes: 0 additions & 4 deletions Source/WebKit2/WebProcess/WebPage/LayerTreeHost.cpp
Expand Up @@ -31,8 +31,6 @@

#if USE(COORDINATED_GRAPHICS_THREADED)
#include "ThreadedCoordinatedLayerTreeHost.h"
#elif PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL)
#include "LayerTreeHostGtk.h"
#endif

using namespace WebCore;
Expand All @@ -43,8 +41,6 @@ RefPtr<LayerTreeHost> LayerTreeHost::create(WebPage& webPage)
{
#if USE(COORDINATED_GRAPHICS_THREADED)
return ThreadedCoordinatedLayerTreeHost::create(webPage);
#elif PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL)
return LayerTreeHostGtk::create(webPage);
#else
UNUSED_PARAM(webPage);
return nullptr;
Expand Down

0 comments on commit 9a0bd86

Please sign in to comment.