-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update RenderLayerBacking to store backingSharingLayers in a WeakList…
…HashSet https://bugs.webkit.org/show_bug.cgi?id=261449 Reviewed by Simon Fraser. Update RenderLayerBacking to store backingSharingLayers in a `WeakListHashSet<RenderLayer>` instead of a Vector<WeakPtr<RenderLayer>>. This is beneficial to performance as we keep doing linear searches in the vector otherwise. * Source/WebCore/rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): * Source/WebCore/rendering/RenderLayerBacking.cpp: (WebCore::clearBackingSharingLayerProviders): (WebCore::RenderLayerBacking::setBackingSharingLayers): (WebCore::RenderLayerBacking::removeBackingSharingLayer): (WebCore::RenderLayerBacking::updateCompositedBounds): (WebCore::RenderLayerBacking::paintIntoLayer): * Source/WebCore/rendering/RenderLayerBacking.h: * Source/WebCore/rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::BackingSharingState::endBackingSharingSequence): Canonical link: https://commits.webkit.org/267912@main
- Loading branch information
Showing
4 changed files
with
30 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters