Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5fb0c86557b33c96da7978716151e0aca920d166
https://github.com/WebKit/WebKit/commit/5fb0c86557b33c96da7978716151e0aca920d166
Author: Simon Fraser <[email protected]>
Date: 2026-01-04 (Sun, 04 Jan 2026)
Changed paths:
M Source/WebCore/platform/graphics/ColorMatrix.h
M
Source/WebCore/platform/graphics/coreimage/FEColorMatrixCoreImageApplier.mm
M
Source/WebCore/platform/graphics/filters/software/FEColorMatrixSoftwareApplier.cpp
Log Message:
-----------
[CI Filters] Implement all the FEColorMatrix options in Core Image
https://bugs.webkit.org/show_bug.cgi?id=304890
rdar://167484500
Reviewed by Mike Wyrzykowski.
Add support for the `luminanceToAlpha` type of FEColorMatrix, by defining a
function
in ColorMatrix.h to return the relevant matrix. The coefficients are from the
spec,
but slightly different from what we use in `FEColorMatrixSoftwareApplier` for
unknown reasons. Also clamp the output from the color matrix filter.
* Source/WebCore/platform/graphics/ColorMatrix.h:
(WebCore::luminanceToAlphaColorMatrix):
* Source/WebCore/platform/graphics/coreimage/FEColorMatrixCoreImageApplier.mm:
(WebCore::FEColorMatrixCoreImageApplier::FEColorMatrixCoreImageApplier):
(WebCore::FEColorMatrixCoreImageApplier::supportsCoreImageRendering):
(WebCore::FEColorMatrixCoreImageApplier::apply const):
*
Source/WebCore/platform/graphics/filters/software/FEColorMatrixSoftwareApplier.cpp:
(WebCore::FEColorMatrixSoftwareApplier::applyPlatformAccelerated const):
Canonical link: https://commits.webkit.org/305085@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications