Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 25a7365ce4b9bae775219e8f31a9804055357308 https://github.com/WebKit/WebKit/commit/25a7365ce4b9bae775219e8f31a9804055357308 Author: Gerald Squelart <g_squel...@apple.com> Date: 2025-07-30 (Wed, 30 Jul 2025)
Changed paths: M Source/WebCore/Modules/WebGPU/GPUQueue.cpp M Source/WebCore/html/HTMLCanvasElement.cpp M Source/WebCore/html/ImageBitmap.cpp M Source/WebCore/html/ImageData.cpp M Source/WebCore/html/ImageData.h M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp M Source/WebCore/page/PageConsoleClient.cpp Log Message: ----------- Rename ImageData::pixelBuffer() to byteArrayPixelBuffer() https://bugs.webkit.org/show_bug.cgi?id=296670 rdar://157072852 Reviewed by Sam Weinig. This is only a name change. Now that there also exists a `Float16ArrayPixelBuffer`, this name better reflects what this function actually does: Return a `ByteArrayPixelBuffer` regardless of what the ImageData contains. Some future work will: - Add back a `pixelBuffer()` function that actually returns a generic `PixelBuffer`. - Go through all callers, and if appropriate update them to use the new generic `pixelBuffer()`, in order to handle either byte or float16 array buffers. * Source/WebCore/Modules/WebGPU/GPUQueue.cpp: (WebCore::imageBytesForSource): * Source/WebCore/html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::toDataURL): (WebCore::HTMLCanvasElement::toBlob): * Source/WebCore/html/ImageBitmap.cpp: (WebCore::ImageBitmap::createCompletionHandler): * Source/WebCore/html/ImageData.cpp: (WebCore::ImageData::byteArrayPixelBuffer const): (WebCore::ImageData::pixelBuffer const): Deleted. * Source/WebCore/html/ImageData.h: * Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp: (WebCore::CanvasRenderingContext2DBase::putImageData): * Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::texImageSource): * Source/WebCore/page/PageConsoleClient.cpp: (WebCore::PageConsoleClient::screenshot): Canonical link: https://commits.webkit.org/298058@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes