Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9fd8a9e199740bda96bb81e8140d4b14f900c2b8
https://github.com/WebKit/WebKit/commit/9fd8a9e199740bda96bb81e8140d4b14f900c2b8
Author: Adrian Perez de Castro <[email protected]>
Date: 2026-01-22 (Thu, 22 Jan 2026)
Changed paths:
M Source/WebCore/platform/graphics/skia/GradientSkia.cpp
Log Message:
-----------
[Skia] Stop using legacy functions from SkGradientShader.h
https://bugs.webkit.org/show_bug.cgi?id=305963
Reviewed by Nikolas Zimmermann.
Replace usage of the functionality defined in Skia's SkGradientShader.h
header, with equivalent functions from SkGradient.h: they are basically
equivalent, with the difference that the new API uses auxiliar Gradient
objects to specify some of the parameters and spans.
The old API has been guarded with SK_SUPPORT_LEGACY_UNSPANNED_GRADIENTS
for a while and has been already removed from upstream Skia. This change
prepares WebKit for the next Skia update that will not include them.
Covered by existing tests.
* Source/WebCore/platform/graphics/skia/GradientSkia.cpp:
(WebCore::toSkiaInterpolation): Rename SkGradientShader:: uses to SkGradient::.
(WebCore::Gradient::shader): Update to use functions from SkGradient.h
Canonical link: https://commits.webkit.org/306003@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications