-
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.
Implement layer hosting for WebKit extension processes
rdar://119381400 https://bugs.webkit.org/show_bug.cgi?id=266078 Reviewed by Andy Estes and Brent Fulgham. Implement layer hosting for WebKit extension processes. In this implementation, the remote context is represented by an object of type _SEHostable. In this implementation, the _SEHostable object is created in the GPU process. The remote context is shared by extracting the context ID from the XPC representation of the _SEHostable object, and sent to the UI process via the WebContent process as in the former implementation. In the UI process, a _SEHostingHandle is created from the received context ID and attached to the new view type we create in the UI process, _SEHostingView. Fencing is implemented with the new object type _SEHostingUpdateCoordinator. This object is created in the UI process, and shared with the GPU process from its XPC representation, which contains a Mach send right. * Source/WebKit/GPUProcess/media/cocoa/RemoteMediaPlayerProxyCocoa.mm: (WebKit::RemoteMediaPlayerProxy::mediaPlayerRenderingModeChanged): (WebKit::RemoteMediaPlayerProxy::setVideoLayerSizeFenced): * Source/WebKit/Platform/ExtraPrivateSymbolsForTAPI.h: * Source/WebKit/Platform/cocoa/LayerHostingContext.h: * Source/WebKit/Platform/cocoa/LayerHostingContext.mm: (WebKit::LayerHostingContext::createForExternalHostingProcess): (WebKit::LayerHostingContext::~LayerHostingContext): (WebKit::LayerHostingContext::setRootLayer): (WebKit::LayerHostingContext::rootLayer const): (WebKit::LayerHostingContext::contextID const): (WebKit::LayerHostingContext::setFencePort): (WebKit::LayerHostingContext::xpcRepresentation const): (WebKit::LayerHostingContext::commit): * Source/WebKit/Platform/spi/Cocoa/ExtensionKitSPI.h: * Source/WebKit/Shared/Cocoa/ExtensionKitSoftLink.h: * Source/WebKit/Shared/Cocoa/ExtensionKitSoftLink.mm: * Source/WebKit/Shared/Cocoa/WKProcessExtension.mm: * Source/WebKit/UIProcess/Cocoa/VideoPresentationManagerProxy.mm: (-[WKLayerHostView dealloc]): (WebKit::VideoPresentationManagerProxy::createLayerHostViewWithID): (WebKit::VideoPresentationManagerProxy::setVideoLayerFrame): Canonical link: https://commits.webkit.org/272703@main
- Loading branch information
Showing
9 changed files
with
183 additions
and
5 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
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
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