Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ed9d590b465dd9512c9097a31f94904703ff5895
https://github.com/WebKit/WebKit/commit/ed9d590b465dd9512c9097a31f94904703ff5895
Author: Gerald Squelart <[email protected]>
Date: 2026-07-13 (Mon, 13 Jul 2026)
Changed paths:
M Source/WebCore/Headers.cmake
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/WebCoreJSBindingsPrefix.h
M Source/WebCore/bindings/js/SerializedScriptValue.cpp
M Source/WebCore/html/CanvasBase.cpp
M Source/WebCore/html/CanvasNoiseInjection.cpp
M Source/WebCore/html/ImageData.h
M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h
M Source/WebCore/html/canvas/WebGLRenderingContextBase.h
R Source/WebCore/platform/graphics/ByteArrayPixelBuffer.cpp
R Source/WebCore/platform/graphics/ByteArrayPixelBuffer.h
R Source/WebCore/platform/graphics/Float16ArrayPixelBuffer.cpp
R Source/WebCore/platform/graphics/Float16ArrayPixelBuffer.h
M Source/WebCore/platform/graphics/ImageBufferAllocator.cpp
A Source/WebCore/platform/graphics/TypedArrayPixelBuffer.cpp
A Source/WebCore/platform/graphics/TypedArrayPixelBuffer.h
M Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp
M Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGL.cpp
Log Message:
-----------
Refactor {Byte,Float16}ArrayPixelBuffer into a TypedArrayPixelBuffer template
https://bugs.webkit.org/show_bug.cgi?id=319208
rdar://182060488
Reviewed by Mike Wyrzykowski.
ByteArrayPixelBuffer and Float16ArrayPixelBuffer had nearly identical
implementations that differed only in their PixelBuffer::Type tag, their
backing JSC typed-array type, and the set of accepted PixelFormats.
Replace both with a single class template TypedArrayPixelBuffer<...>.
The existing type names are preserved as aliases, so callers are unchanged
apart from their include.
The classes can be `final`.
And WEBCORE_EXPORT is not needed anymore.
No expected changes in behavior; covered by existing tests.
* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/WebCoreJSBindingsPrefix.h:
* Source/WebCore/bindings/js/SerializedScriptValue.cpp:
* Source/WebCore/html/CanvasBase.cpp:
* Source/WebCore/html/CanvasNoiseInjection.cpp:
* Source/WebCore/html/ImageData.h:
* Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h:
* Source/WebCore/html/canvas/WebGLRenderingContextBase.h:
* Source/WebCore/platform/graphics/ByteArrayPixelBuffer.cpp: Removed.
* Source/WebCore/platform/graphics/ByteArrayPixelBuffer.h: Removed.
* Source/WebCore/platform/graphics/Float16ArrayPixelBuffer.cpp: Removed.
* Source/WebCore/platform/graphics/Float16ArrayPixelBuffer.h: Removed.
* Source/WebCore/platform/graphics/ImageBufferAllocator.cpp:
* Source/WebCore/platform/graphics/TypedArrayPixelBuffer.cpp: Renamed from
Source/WebCore/platform/graphics/ByteArrayPixelBuffer.cpp.
(WebCore::>::create):
(WebCore::>::tryCreate):
(WebCore::>::TypedArrayPixelBuffer):
(WebCore::>::createScratchPixelBuffer const):
* Source/WebCore/platform/graphics/TypedArrayPixelBuffer.h: Renamed from
Source/WebCore/platform/graphics/ByteArrayPixelBuffer.h.
(isType):
* Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp:
* Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGL.cpp:
Canonical link: https://commits.webkit.org/317108@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications