Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 073ef61115aaf34ff86f43c902237c474255fe10
https://github.com/WebKit/WebKit/commit/073ef61115aaf34ff86f43c902237c474255fe10
Author: Gerald Squelart <[email protected]>
Date: 2026-08-15 (Sat, 15 Aug 2026)
Changed paths:
A LayoutTests/fast/webgpu/float16-2dcanvas-drawimage-webgpu-expected.txt
A LayoutTests/fast/webgpu/float16-2dcanvas-drawimage-webgpu.html
M Source/WebCore/html/canvas/GPUCanvasContextCocoa.mm
Log Message:
-----------
Implement CanvasRenderingContext2DBase::drawImage() for a WebGPU source
https://bugs.webkit.org/show_bug.cgi?id=321778
rdar://problem/184900228
Reviewed by Mike Wyrzykowski.
Most of the plumbing was already in place.
GPUCanvasContextCocoa::surfaceBufferToImageBuffer() and
transferToImageBuffer() just needed to return an ImageBuffer with the
WebGPU canvas color space, and PixelFormat::RGBA16F if it was configured
to show an extended color range.
The new test also revealed a small latent issue, where an obsolete
compositing result was output in the image buffer despite
m_compositingResultsNeedsUpdating being true.
* LayoutTests/fast/webgpu/float16-2dcanvas-drawimage-webgpu-expected.txt: Added.
* LayoutTests/fast/webgpu/float16-2dcanvas-drawimage-webgpu.html: Added.
* Source/WebCore/html/canvas/GPUCanvasContextCocoa.mm:
(WebCore::readbackPixelFormat):
(WebCore::GPUCanvasContextCocoa::surfaceBufferToImageBuffer):
(WebCore::GPUCanvasContextCocoa::transferToImageBuffer):
Canonical link: https://commits.webkit.org/319231@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications