Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[GPU Process] Make FilterEffect appliers take FilterImages in their a…
…pply() methods https://bugs.webkit.org/show_bug.cgi?id=233487 Reviewed by Cameron McCormack. Eventually the FilterImage will be removed from FilterEffect. So this is a step towards making the FilterEffect hold the effect data only. To do his change, FilterImage needs to hold two new members: primitiveSubregion and isAlphaImage. FilterEffect::setIsAlphaImage() is not needed and isAlphaImage() will be a virtual function but it will be renamed resultIsAlphaImage(). The result of this function will be stored in the result FilterImage. FEGaussianBlurSoftwareApplier::apply() is the only user of isAlphaImage. * WebCore.xcodeproj/project.pbxproj: * platform/graphics/filters/FEBlend.cpp: (WebCore::FEBlend::platformApplySoftware): * platform/graphics/filters/FEColorMatrix.cpp: (WebCore::FEColorMatrix::resultIsAlphaImage const): (WebCore::FEColorMatrix::platformApplySoftware): * platform/graphics/filters/FEColorMatrix.h: * platform/graphics/filters/FEComponentTransfer.cpp: (WebCore::FEComponentTransfer::platformApplySoftware): * platform/graphics/filters/FEComposite.cpp: (WebCore::FEComposite::platformApplySoftware): * platform/graphics/filters/FEConvolveMatrix.cpp: (WebCore::FEConvolveMatrix::platformApplySoftware): * platform/graphics/filters/FEDisplacementMap.cpp: (WebCore::FEDisplacementMap::platformApplySoftware): * platform/graphics/filters/FEDropShadow.cpp: (WebCore::FEDropShadow::platformApplySoftware): * platform/graphics/filters/FEFlood.cpp: (WebCore::FEFlood::platformApplySoftware): * platform/graphics/filters/FEGaussianBlur.cpp: (WebCore::FEGaussianBlur::resultIsAlphaImage const): (WebCore::FEGaussianBlur::platformApplySoftware): * platform/graphics/filters/FEGaussianBlur.h: * platform/graphics/filters/FELighting.cpp: (WebCore::FELighting::platformApplySoftware): * platform/graphics/filters/FEMerge.cpp: (WebCore::FEMerge::platformApplySoftware): * platform/graphics/filters/FEMorphology.cpp: (WebCore::FEMorphology::resultIsAlphaImage const): (WebCore::FEMorphology::platformApplySoftware): * platform/graphics/filters/FEMorphology.h: * platform/graphics/filters/FEOffset.cpp: (WebCore::FEOffset::resultIsAlphaImage const): (WebCore::FEOffset::platformApplySoftware): * platform/graphics/filters/FEOffset.h: * platform/graphics/filters/FETile.cpp: (WebCore::FETile::resultIsAlphaImage const): (WebCore::FETile::platformApplySoftware): * platform/graphics/filters/FETile.h: * platform/graphics/filters/FETurbulence.cpp: (WebCore::FETurbulence::platformApplySoftware): * platform/graphics/filters/Filter.h: (WebCore::Filter::maxEffectRect const): * platform/graphics/filters/FilterEffect.cpp: (WebCore::FilterEffect::apply): (WebCore::FilterEffect::inputFilterImages const): (WebCore::FilterEffect::externalRepresentation const): (WebCore::FilterEffect::createResult): Deleted. (WebCore::FilterEffect::imageBufferResult): Deleted. (WebCore::FilterEffect::pixelBufferResult): Deleted. (WebCore::FilterEffect::getPixelBufferResult): Deleted. (WebCore::FilterEffect::copyPixelBufferResult const): Deleted. * platform/graphics/filters/FilterEffect.h: (WebCore::FilterEffect::filterImage const): (WebCore::FilterEffect::resultIsAlphaImage const): (WebCore::FilterEffect::isAlphaImage const): Deleted. (WebCore::FilterEffect::setIsAlphaImage): Deleted. (WebCore::FilterEffect::normalizedFloats): Deleted. * platform/graphics/filters/FilterEffectApplier.h: * platform/graphics/filters/FilterImage.cpp: (WebCore::FilterImage::create): (WebCore::FilterImage::FilterImage): * platform/graphics/filters/FilterImage.h: (WebCore::FilterImage::primitiveSubregion const): (WebCore::FilterImage::isAlphaImage const): * platform/graphics/filters/FilterImageVector.h: Copied from Source/WebCore/platform/graphics/filters/FilterEffectApplier.h. * platform/graphics/filters/SourceAlpha.cpp: (WebCore::SourceAlpha::platformApplySoftware): * platform/graphics/filters/SourceGraphic.cpp: (WebCore::SourceGraphic::platformApplySoftware): * platform/graphics/filters/software/FEBlendSoftwareApplier.cpp: (WebCore::FEBlendSoftwareApplier::apply): * platform/graphics/filters/software/FEBlendSoftwareApplier.h: * platform/graphics/filters/software/FEColorMatrixSoftwareApplier.cpp: (WebCore::FEColorMatrixSoftwareApplier::apply): * platform/graphics/filters/software/FEColorMatrixSoftwareApplier.h: * platform/graphics/filters/software/FEComponentTransferSoftwareApplier.cpp: (WebCore::FEComponentTransferSoftwareApplier::apply): * platform/graphics/filters/software/FEComponentTransferSoftwareApplier.h: * platform/graphics/filters/software/FECompositeSoftwareApplier.cpp: (WebCore::FECompositeSoftwareApplier::applyArithmetic): (WebCore::FECompositeSoftwareApplier::applyNonArithmetic): (WebCore::FECompositeSoftwareApplier::apply): * platform/graphics/filters/software/FECompositeSoftwareApplier.h: * platform/graphics/filters/software/FEConvolveMatrixSoftwareApplier.cpp: (WebCore::FEConvolveMatrixSoftwareApplier::apply): * platform/graphics/filters/software/FEConvolveMatrixSoftwareApplier.h: * platform/graphics/filters/software/FEDisplacementMapSoftwareApplier.cpp: (WebCore::FEDisplacementMapSoftwareApplier::apply): * platform/graphics/filters/software/FEDisplacementMapSoftwareApplier.h: * platform/graphics/filters/software/FEDropShadowSoftwareApplier.cpp: (WebCore::FEDropShadowSoftwareApplier::apply): * platform/graphics/filters/software/FEDropShadowSoftwareApplier.h: * platform/graphics/filters/software/FEFloodSoftwareApplier.cpp: (WebCore::FEFloodSoftwareApplier::apply): * platform/graphics/filters/software/FEFloodSoftwareApplier.h: * platform/graphics/filters/software/FEGaussianBlurSoftwareApplier.cpp: (WebCore::FEGaussianBlurSoftwareApplier::apply): * platform/graphics/filters/software/FEGaussianBlurSoftwareApplier.h: * platform/graphics/filters/software/FELightingSoftwareApplier.cpp: (WebCore::FELightingSoftwareApplier::apply): * platform/graphics/filters/software/FELightingSoftwareApplier.h: * platform/graphics/filters/software/FEMergeSoftwareApplier.cpp: (WebCore::FEMergeSoftwareApplier::apply): * platform/graphics/filters/software/FEMergeSoftwareApplier.h: * platform/graphics/filters/software/FEMorphologySoftwareApplier.cpp: (WebCore::FEMorphologySoftwareApplier::apply): * platform/graphics/filters/software/FEMorphologySoftwareApplier.h: * platform/graphics/filters/software/FEOffsetSoftwareApplier.cpp: (WebCore::FEOffsetSoftwareApplier::apply): * platform/graphics/filters/software/FEOffsetSoftwareApplier.h: * platform/graphics/filters/software/FETileSoftwareApplier.cpp: (WebCore::FETileSoftwareApplier::apply): * platform/graphics/filters/software/FETileSoftwareApplier.h: * platform/graphics/filters/software/FETurbulenceSoftwareApplier.cpp: (WebCore::FETurbulenceSoftwareApplier::apply): * platform/graphics/filters/software/FETurbulenceSoftwareApplier.h: * platform/graphics/filters/software/SourceAlphaSoftwareApplier.cpp: (WebCore::SourceAlphaSoftwareApplier::apply): * platform/graphics/filters/software/SourceAlphaSoftwareApplier.h: * platform/graphics/filters/software/SourceGraphicSoftwareApplier.cpp: (WebCore::SourceGraphicSoftwareApplier::apply): * platform/graphics/filters/software/SourceGraphicSoftwareApplier.h: * rendering/CSSFilter.cpp: (WebCore::CSSFilter::output): * rendering/svg/RenderSVGResourceFilter.cpp: (WebCore::RenderSVGResourceFilter::postApplyResource): * svg/graphics/filters/SVGFEImage.cpp: (WebCore::FEImageSoftwareApplier::apply): (WebCore::FEImage::platformApplySoftware): Canonical link: https://commits.webkit.org/244547@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@286164 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
68 changed files
with
471 additions
and
288 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.