Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 66eb479d335a74770f939936286a48ae68dca5a7
https://github.com/WebKit/WebKit/commit/66eb479d335a74770f939936286a48ae68dca5a7
Author: Matt Woodrow <[email protected]>
Date: 2024-11-04 (Mon, 04 Nov 2024)
Changed paths:
M Source/WebCore/platform/graphics/GraphicsLayer.h
M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h
M Source/WebCore/rendering/RenderLayerBacking.cpp
M Source/WebCore/rendering/RenderViewTransitionCapture.h
M
Source/WebKit/Shared/RemoteLayerTree/RemoteLayerWithRemoteRenderingBackingStore.mm
M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.h
M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.mm
Log Message:
-----------
RenderViewTransitionCapture should be able to use its ImageBuffer directly as
layer contents.
https://bugs.webkit.org/show_bug.cgi?id=282424
<rdar://139050217>
Reviewed by Kimmo Kinnunen.
The existing setContentsToImage path is disabled for UI-side compositing, due to
lack of support for a remote NativeImage. Adds a new option that is supported
with UI-side compositing, setContentsToImageBuffer.
Change RenderLayerBacking to detect RenderViewTransitionCapture as a suitable
image source, and pass the ImageBuffer through to the GraphicsLayer.
* Source/WebCore/platform/graphics/GraphicsLayer.h:
(WebCore::GraphicsLayer::setContentsToImageBuffer):
(WebCore::GraphicsLayer::shouldDirectlyCompositeImageBuffer const):
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::setContentsToImage):
(WebCore::GraphicsLayerCA::setContentsToImageBuffer):
(WebCore::GraphicsLayerCA::platformCALayerDelegatesDisplay const):
(WebCore::GraphicsLayerCA::platformCALayerLayerDisplay):
(WebCore::GraphicsLayerCA::updateContentsImage):
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h:
(WebCore::GraphicsLayerCA::setLayerContentsToImageBuffer):
* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateConfiguration):
(WebCore::RenderLayerBacking::updateContentsRects):
(WebCore::RenderLayerBacking::isDirectlyCompositedImage const):
(WebCore::RenderLayerBacking::updateImageContents):
(WebCore::RenderLayerBacking::contentsBox const):
* Source/WebCore/rendering/RenderViewTransitionCapture.h:
*
Source/WebKit/Shared/RemoteLayerTree/RemoteLayerWithRemoteRenderingBackingStore.mm:
(WebKit::RemoteLayerWithRemoteRenderingBackingStore::ensureBackingStore):
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.h:
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.mm:
(WebKit::GraphicsLayerCARemote::shouldDirectlyCompositeImageBuffer const):
(WebKit::GraphicsLayerCARemote::setLayerContentsToImageBuffer):
Canonical link: https://commits.webkit.org/286139@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes