-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Filters] FilterEffect::calculatePrimitiveSubregion() and calculateImageRect() should take a span of the input image rects #6706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Filters] FilterEffect::calculatePrimitiveSubregion() and calculateImageRect() should take a span of the input image rects #6706
Conversation
EWS run on previous version of this PR (hash 1ae380a) |
EWS run on current version of this PR (hash 1ae380a) |
1ae380a
to
c30e2a1
Compare
EWS run on previous version of this PR (hash c30e2a1)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could write this as:
return inputs.map([] (auto& input) { return input->primitiveSubregion(); });
if you think it's clearer. (I'm always on the fence, given C++'s verbose lambda syntax.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And similarly here.
c30e2a1
to
e5d5317
Compare
EWS run on current version of this PR (hash e5d5317)
|
e5d5317
to
b362815
Compare
…ageRect() should take a span of the input image rects https://bugs.webkit.org/show_bug.cgi?id=248181 rdar://102586592 Reviewed by Cameron McCormack. Instead of passing a FilterImageVector to these functions we should pass a Vector<FloatRect> since they care about the FilterImage::imageRect() only. This work is towards supporting CoreGraphics filters since no FilterImage will be used while applying the FilterEffects. * Source/WebCore/platform/graphics/filters/FEComposite.cpp: (WebCore::FEComposite::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FEComposite.h: * Source/WebCore/platform/graphics/filters/FEConvolveMatrix.cpp: (WebCore::FEConvolveMatrix::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FEConvolveMatrix.h: * Source/WebCore/platform/graphics/filters/FEDisplacementMap.cpp: (WebCore::FEDisplacementMap::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FEDisplacementMap.h: * Source/WebCore/platform/graphics/filters/FEDropShadow.cpp: (WebCore::FEDropShadow::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FEDropShadow.h: * Source/WebCore/platform/graphics/filters/FEFlood.cpp: (WebCore::FEFlood::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FEFlood.h: * Source/WebCore/platform/graphics/filters/FEGaussianBlur.cpp: (WebCore::FEGaussianBlur::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FEGaussianBlur.h: * Source/WebCore/platform/graphics/filters/FEImage.cpp: (WebCore::FEImage::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FEImage.h: * Source/WebCore/platform/graphics/filters/FELighting.cpp: (WebCore::FELighting::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FELighting.h: * Source/WebCore/platform/graphics/filters/FEMorphology.cpp: (WebCore::FEMorphology::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FEMorphology.h: * Source/WebCore/platform/graphics/filters/FEOffset.cpp: (WebCore::FEOffset::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FEOffset.h: * Source/WebCore/platform/graphics/filters/FETile.cpp: (WebCore::FETile::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FETile.h: * Source/WebCore/platform/graphics/filters/FETurbulence.cpp: (WebCore::FETurbulence::calculateImageRect const): * Source/WebCore/platform/graphics/filters/FETurbulence.h: * Source/WebCore/platform/graphics/filters/FilterEffect.cpp: (WebCore::inputPrimitiveSubregions): (WebCore::FilterEffect::calculatePrimitiveSubregion const): (WebCore::inputImageRects): (WebCore::FilterEffect::calculateImageRect const): (WebCore::FilterEffect::apply): * Source/WebCore/platform/graphics/filters/FilterEffect.h: Canonical link: https://commits.webkit.org/256983@main
b362815
to
d4236a4
Compare
Committed 256983@main (d4236a4): https://commits.webkit.org/256983@main Reviewed commits have been landed. Closing PR #6706 and removing active labels. |
d4236a4
e5d5317
🧪 ios-wk2🧪 api-ios🧪 api-mac🧪 mac-wk1🧪 mac-wk2🧪 mac-AS-debug-wk2