[webkit-changes] [WebKit/WebKit] 301f23: [WebGPU] Support ImageData, HTMLImageElement, HTML...
mwyrzykowski
noreply at github.com
Sun Nov 5 21:15:39 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 301f2352a75e07c99143650e37e15239f00b9078
https://github.com/WebKit/WebKit/commit/301f2352a75e07c99143650e37e15239f00b9078
Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
Date: 2023-11-05 (Sun, 05 Nov 2023)
Changed paths:
M Source/WebCore/Modules/WebGPU/GPUQueue.cpp
Log Message:
-----------
[WebGPU] Support ImageData, HTMLImageElement, HTMLVideoElement, and WebCodecsVideoFrame in GPUImageCopyExternalImage.source
https://bugs.webkit.org/show_bug.cgi?id=261567
<radar://115515260>
Reviewed by Dan Glastonbury.
Support other possible source formats for GPUQueue.copyExternalImageToTexture
This is still being done inefficiently in the web process.
https://bugs.webkit.org/show_bug.cgi?id=263692 tracks moving this to the
GPU process to avoid roundtrips and copies.
* Source/WebCore/Modules/WebGPU/GPUQueue.cpp:
(WebCore::getImageBytesFromImageBuffer):
(WebCore::getImageBytesFromVideoFrame):
(WebCore::imageBytesForSource):
(WebCore::copyToDestinationFormat):
(WebCore::GPUQueue::copyExternalImageToTexture):
(WebCore::imageBufferForSource): Deleted.
Canonical link: https://commits.webkit.org/270252@main
More information about the webkit-changes
mailing list