[webkit-changes] [WebKit/WebKit] 6a5f94: [GTK][WPE][Skia] Refactor threaded CPU rendering c...
Nikolas Zimmermann
noreply at github.com
Mon Sep 30 10:21:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6a5f94ce1b5592e092f9e9aa3070dd81c357e9a8
https://github.com/WebKit/WebKit/commit/6a5f94ce1b5592e092f9e9aa3070dd81c357e9a8
Author: Nikolas Zimmermann <nzimmermann at igalia.com>
Date: 2024-09-30 (Mon, 30 Sep 2024)
Changed paths:
M Source/WebCore/platform/Skia.cmake
M Source/WebCore/platform/SourcesSkia.txt
M Source/WebCore/platform/graphics/GraphicsLayer.cpp
M Source/WebCore/platform/graphics/GraphicsLayer.h
A Source/WebCore/platform/graphics/skia/SkiaThreadedPaintingPool.cpp
A Source/WebCore/platform/graphics/skia/SkiaThreadedPaintingPool.h
M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp
M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h
M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerCairo.cpp
M Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerSkia.cpp
M Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.h
M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp
M Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.h
Log Message:
-----------
[GTK][WPE][Skia] Refactor threaded CPU rendering code into its own class SkiaThreadedPaintingPool
https://bugs.webkit.org/show_bug.cgi?id=280589
Reviewed by Carlos Garcia Campos.
This is a first step towards threaded GPU painting -- refactor the
threaded CPU rendering code (including display list recording tools)
into its own class: SkiaThreadedPaintingPool. Leave the GPU rendering
code as-is.
Covered by existing tests.
* Source/WebCore/platform/Skia.cmake:
* Source/WebCore/platform/SourcesSkia.txt:
* Source/WebCore/platform/graphics/GraphicsLayer.cpp:
(WebCore::GraphicsLayer::paintGraphicsLayerContents const):
(WebCore::GraphicsLayer::paintGraphicsLayerContents): Deleted.
* Source/WebCore/platform/graphics/GraphicsLayer.h:
(WebCore::GraphicsLayer::paintGraphicsLayerContents):
* Source/WebCore/platform/graphics/skia/SkiaThreadedPaintingPool.cpp: Added.
(WebCore::SkiaThreadedPaintingPool::SkiaThreadedPaintingPool):
(WebCore::SkiaThreadedPaintingPool::create):
(WebCore::SkiaThreadedPaintingPool::recordDisplayList const):
(WebCore::SkiaThreadedPaintingPool::postPaintingTask):
(WebCore::SkiaThreadedPaintingPool::numberOfPaintingThreads):
* Source/WebCore/platform/graphics/skia/SkiaThreadedPaintingPool.h: Added.
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::updateContentBuffers):
(WebCore::CoordinatedGraphicsLayer::paintIntoGraphicsContext const):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerCairo.cpp:
(WebCore::CoordinatedGraphicsLayer::paintTile):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayerSkia.cpp:
(WebCore::CoordinatedGraphicsLayer::paintTile):
* Source/WebCore/platform/graphics/texmap/coordinated/TiledBackingStore.h:
(WebCore::TiledBackingStore::contentsScale const):
(WebCore::TiledBackingStore::contentsScale): Deleted.
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp:
(WebKit::CompositingCoordinator::CompositingCoordinator):
(WebKit::CompositingCoordinator::invalidate):
(WebKit::skiaNumberOfCpuPaintingThreads): Deleted.
* Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.h:
Canonical link: https://commits.webkit.org/284457@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list