REGRESSION(309060@main): Gradient rendering performance regressed by not caching stop in device colorspace.#62945
Merged
webkit-commit-queue merged 1 commit intoApr 17, 2026
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 016cda2) Details
|
smfr
reviewed
Apr 17, 2026
Contributor
smfr
left a comment
There was a problem hiding this comment.
This could use a better title.
016cda2 to
c6cf873
Compare
Collaborator
|
EWS run on current version of this PR (hash c6cf873) Details
|
…not caching stop in device colorspace. https://bugs.webkit.org/show_bug.cgi?id=312535 <rdar://174044547> Reviewed by Dan Glastonbury. This change switched back to rendering gradients in sRGB instead of device colourspace. I think we can do this again, as long as the 'device' (destination ImageBuffer) colourspace isn't a linear one, and should be approximately equal to sRGB for interpolation. The regressing changeset added tests, so these should confirm this doesn't reintroduce the bug. * Source/WebCore/platform/graphics/Gradient.h: * Source/WebCore/platform/graphics/cg/GradientCG.cpp: (WebCore::nonLinearDestinationColorSpace): (WebCore::Gradient::paint): * Source/WebCore/platform/graphics/cg/GradientRendererCG.cpp: (WTF::RetainPtr<CGGradientRef>>::createValueForKey): (WebCore::GradientRendererCG::GradientRendererCG): (WebCore::GradientRendererCG::makeGradient const): (WebCore::GradientRendererCG::makeGradientBySampling const): (WebCore::GradientRendererCG::createGradientBySampling): * Source/WebCore/platform/graphics/cg/GradientRendererCG.h: (WebCore::GradientRendererCG::GradientRendererCG): (WebCore::GradientRendererCG::colorSpace const): (WebCore::GradientRendererCG::createGradientBySampling): Canonical link: https://commits.webkit.org/311433@main
c6cf873 to
f5492c8
Compare
Collaborator
|
Committed 311433@main (f5492c8): https://commits.webkit.org/311433@main Reviewed commits have been landed. Closing PR #62945 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠 ios-apple
f5492c8
c6cf873
🛠 win🧪 win-tests