Diff
Modified: trunk/Source/WTF/ChangeLog (288351 => 288352)
--- trunk/Source/WTF/ChangeLog 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WTF/ChangeLog 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1,3 +1,19 @@
+2022-01-20 Said Abou-Hallawa <[email protected]>
+
+ [Cocoa] Accelerated filters are enabled by the wrong setting
+ https://bugs.webkit.org/show_bug.cgi?id=235376
+
+ Reviewed by Simon Fraser.
+
+ Delete ENABLE_CORE_IMAGE_ACCELERATED_FILTER_RENDER and use USE_CORE_IMAGE
+ instead since CoreImage is only used for filters right now. Besides
+ CoreImage filters will be enabled by the internal feature control flag
+ AcceleratedFiltersEnabled.
+
+ * Scripts/Preferences/WebPreferencesExperimental.yaml:
+ * Scripts/Preferences/WebPreferencesInternal.yaml:
+ * wtf/PlatformEnableCocoa.h:
+
2022-01-19 Yusuke Suzuki <[email protected]>
[JSC] Implement Temporal.Now.instant()
Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml (288351 => 288352)
--- trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml 2022-01-21 06:15:14 UTC (rev 288352)
@@ -409,20 +409,6 @@
WebCore:
default: false
-CoreImageAcceleratedFilterRenderEnabled:
- type: bool
- webcoreOnChange: setNeedsRelayoutAllFrames
- humanReadableName: "CoreImage-Accelerated Filter Rendering"
- humanReadableDescription: "Accelerated CSS and SVG filter rendering using CoreImage"
- condition: ENABLE(CORE_IMAGE_ACCELERATED_FILTER_RENDER)
- defaultValue:
- WebKitLegacy:
- default: false
- WebKit:
- default: false
- WebCore:
- default: false
-
CoreMathMLEnabled:
type: bool
webcoreOnChange: setNeedsRecalcStyleInAllFrames
Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml (288351 => 288352)
--- trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml 2022-01-21 06:15:14 UTC (rev 288352)
@@ -26,6 +26,20 @@
# They must include a humanReadableName and humanReadableDescription. This is
# the text exposed to the user from the WebKit client.
+AcceleratedFiltersEnabled:
+ type: bool
+ webcoreOnChange: setNeedsRelayoutAllFrames
+ humanReadableName: "Accelerated Filter Rendering"
+ humanReadableDescription: "Accelerated CSS and SVG filter rendering"
+ condition: USE(CORE_IMAGE)
+ defaultValue:
+ WebKitLegacy:
+ default: false
+ WebKit:
+ default: false
+ WebCore:
+ default: false
+
# FIXME: This is not relevent for WebKitLegacy, so should be excluded from WebKitLegacy entirely.
AllowViewportShrinkToFitContent:
type: bool
Modified: trunk/Source/WTF/wtf/PlatformEnableCocoa.h (288351 => 288352)
--- trunk/Source/WTF/wtf/PlatformEnableCocoa.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WTF/wtf/PlatformEnableCocoa.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -171,10 +171,6 @@
#define ENABLE_CONTEXT_MENU_EVENT 0
#endif
-#if !defined(ENABLE_CORE_IMAGE_ACCELERATED_FILTER_RENDER)
-#define ENABLE_CORE_IMAGE_ACCELERATED_FILTER_RENDER 1
-#endif
-
#if !defined(ENABLE_CSS_COMPOSITING)
#define ENABLE_CSS_COMPOSITING 1
#endif
Modified: trunk/Source/WebCore/ChangeLog (288351 => 288352)
--- trunk/Source/WebCore/ChangeLog 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/ChangeLog 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1,3 +1,141 @@
+2022-01-20 Said Abou-Hallawa <[email protected]>
+
+ [Cocoa] Accelerated filters are enabled by the wrong setting
+ https://bugs.webkit.org/show_bug.cgi?id=235376
+
+ Reviewed by Simon Fraser.
+
+ This patch does the following:
+
+ 1. Delete the setting AcceleratedFiltersEnabled since it has not been
+ enabled by any port.
+ 2. Delete CoreImageAcceleratedFilterRenderEnabled from the experimental
+ features list because CoreImage filters are not ready to be run in
+ the layout tests.
+ 3. Add AcceleratedFiltersEnabled as an internal feature and use it to
+ enable CoreImage filters for Cocoa ports.
+ and SourceGraphic::createApplier().
+ 4. Use "Accelerated" instead of using "CoreImage" in the methods of
+ Filter and FilterEffect. The implementation of these methods will be
+ guarded by #if USE(CORE_IMAGE) for Cocoa ports.
+ 6. Split the method createApplier() to two methods: createSoftwareApplier()
+ and createAcceleratedApplier() and make FilterEffect::createApplier()
+ decide which one to call.
+
+ * Headers.cmake:
+ * WebCore.xcodeproj/project.pbxproj:
+ * css/CSSFilterImageValue.cpp:
+ (WebCore::CSSFilterImageValue::image):
+ * page/Page.cpp:
+ (WebCore::Page::acceleratedFiltersEnabled const):
+ * page/Page.h:
+ * page/Settings.yaml:
+ * platform/graphics/coreimage/FEColorMatrixCoreImageApplier.h:
+ * platform/graphics/coreimage/FEComponentTransferCoreImageApplier.h:
+ * platform/graphics/coreimage/SourceGraphicCoreImageApplier.h:
+ * platform/graphics/filters/FEBlend.cpp:
+ (WebCore::FEBlend::createSoftwareApplier const):
+ (WebCore::FEBlend::createApplier const): Deleted.
+ * platform/graphics/filters/FEBlend.h:
+ * platform/graphics/filters/FEColorMatrix.cpp:
+ (WebCore::FEColorMatrix::resultIsAlphaImage const):
+ (WebCore::FEColorMatrix::supportsAcceleratedRendering const):
+ (WebCore::FEColorMatrix::createAcceleratedApplier const):
+ (WebCore::FEColorMatrix::createSoftwareApplier const):
+ (WebCore::FEColorMatrix::supportsCoreImageRendering const): Deleted.
+ (WebCore::FEColorMatrix::createApplier const): Deleted.
+ * platform/graphics/filters/FEColorMatrix.h:
+ * platform/graphics/filters/FEComponentTransfer.cpp:
+ (WebCore::FEComponentTransfer::supportsAcceleratedRendering const):
+ (WebCore::FEComponentTransfer::createAcceleratedApplier const):
+ (WebCore::FEComponentTransfer::createSoftwareApplier const):
+ (WebCore::FEComponentTransfer::supportsCoreImageRendering const): Deleted.
+ (WebCore::FEComponentTransfer::createApplier const): Deleted.
+ * platform/graphics/filters/FEComponentTransfer.h:
+ * platform/graphics/filters/FEComposite.cpp:
+ (WebCore::FEComposite::createSoftwareApplier const):
+ (WebCore::FEComposite::createApplier const): Deleted.
+ * platform/graphics/filters/FEComposite.h:
+ * platform/graphics/filters/FEConvolveMatrix.cpp:
+ (WebCore::FEConvolveMatrix::createSoftwareApplier const):
+ (WebCore::FEConvolveMatrix::createApplier const): Deleted.
+ * platform/graphics/filters/FEConvolveMatrix.h:
+ * platform/graphics/filters/FEDisplacementMap.cpp:
+ (WebCore::FEDisplacementMap::createSoftwareApplier const):
+ (WebCore::FEDisplacementMap::createApplier const): Deleted.
+ * platform/graphics/filters/FEDisplacementMap.h:
+ * platform/graphics/filters/FEDropShadow.cpp:
+ (WebCore::FEDropShadow::createSoftwareApplier const):
+ (WebCore::FEDropShadow::createApplier const): Deleted.
+ * platform/graphics/filters/FEDropShadow.h:
+ * platform/graphics/filters/FEFlood.cpp:
+ (WebCore::FEFlood::createSoftwareApplier const):
+ (WebCore::FEFlood::createApplier const): Deleted.
+ * platform/graphics/filters/FEFlood.h:
+ * platform/graphics/filters/FEGaussianBlur.cpp:
+ (WebCore::FEGaussianBlur::createSoftwareApplier const):
+ (WebCore::FEGaussianBlur::createApplier const): Deleted.
+ * platform/graphics/filters/FEGaussianBlur.h:
+ * platform/graphics/filters/FELighting.cpp:
+ (WebCore::FELighting::createSoftwareApplier const):
+ (WebCore::FELighting::createApplier const): Deleted.
+ * platform/graphics/filters/FELighting.h:
+ * platform/graphics/filters/FEMerge.cpp:
+ (WebCore::FEMerge::createSoftwareApplier const):
+ (WebCore::FEMerge::createApplier const): Deleted.
+ * platform/graphics/filters/FEMerge.h:
+ * platform/graphics/filters/FEMorphology.cpp:
+ (WebCore::FEMorphology::createSoftwareApplier const):
+ (WebCore::FEMorphology::createApplier const): Deleted.
+ * platform/graphics/filters/FEMorphology.h:
+ * platform/graphics/filters/FEOffset.cpp:
+ (WebCore::FEOffset::createSoftwareApplier const):
+ (WebCore::FEOffset::createApplier const): Deleted.
+ * platform/graphics/filters/FEOffset.h:
+ * platform/graphics/filters/FETile.cpp:
+ (WebCore::FETile::createSoftwareApplier const):
+ (WebCore::FETile::createApplier const): Deleted.
+ * platform/graphics/filters/FETile.h:
+ * platform/graphics/filters/FETurbulence.cpp:
+ (WebCore::FETurbulence::createSoftwareApplier const):
+ (WebCore::FETurbulence::createApplier const): Deleted.
+ * platform/graphics/filters/FETurbulence.h:
+ * platform/graphics/filters/FilterEffect.cpp:
+ (WebCore::FilterEffect::createApplier const):
+ * platform/graphics/filters/FilterEffect.h:
+ (WebCore::FilterEffect::createAcceleratedApplier const):
+ * platform/graphics/filters/FilterFunction.h:
+ (WebCore::FilterFunction::supportsAcceleratedRendering const):
+ (WebCore::FilterFunction::supportsCoreImageRendering const): Deleted.
+ * platform/graphics/filters/SourceAlpha.cpp:
+ (WebCore::SourceAlpha::createSoftwareApplier const):
+ (WebCore::SourceAlpha::createApplier const): Deleted.
+ * platform/graphics/filters/SourceAlpha.h:
+ * platform/graphics/filters/SourceGraphic.cpp:
+ (WebCore::SourceGraphic::supportsAcceleratedRendering const):
+ (WebCore::SourceGraphic::createAcceleratedApplier const):
+ (WebCore::SourceGraphic::createSoftwareApplier const):
+ (WebCore::SourceGraphic::createApplier const): Deleted.
+ * platform/graphics/filters/SourceGraphic.h:
+ * rendering/CSSFilter.cpp:
+ (WebCore::CSSFilter::create):
+ (WebCore::CSSFilter::supportsAcceleratedRendering const):
+ (WebCore::CSSFilter::supportsCoreImageRendering const): Deleted.
+ * rendering/CSSFilter.h:
+ * rendering/RenderLayer.cpp:
+ (WebCore::RenderLayer::calculateClipRects const):
+ * rendering/svg/RenderSVGResourceFilter.cpp:
+ (WebCore::RenderSVGResourceFilter::applyResource):
+ * svg/graphics/filters/SVGFEImage.cpp:
+ (WebCore::FEImage::createSoftwareApplier const):
+ (WebCore::FEImage::createApplier const): Deleted.
+ * svg/graphics/filters/SVGFEImage.h:
+ * svg/graphics/filters/SVGFilter.cpp:
+ (WebCore::SVGFilter::create):
+ (WebCore::SVGFilter::supportsAcceleratedRendering const):
+ (WebCore::SVGFilter::supportsCoreImageRendering const): Deleted.
+ * svg/graphics/filters/SVGFilter.h:
+
2022-01-20 Alan Bujtas <[email protected]>
[LFC][IFC] Implement TextUtil::directionForTextContent
Modified: trunk/Source/WebCore/Headers.cmake (288351 => 288352)
--- trunk/Source/WebCore/Headers.cmake 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/Headers.cmake 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1607,6 +1607,7 @@
platform/graphics/filters/FETurbulence.h
platform/graphics/filters/Filter.h
platform/graphics/filters/FilterEffect.h
+ platform/graphics/filters/FilterEffectApplier.h
platform/graphics/filters/FilterEffectGeometry.h
platform/graphics/filters/FilterEffectVector.h
platform/graphics/filters/FilterFunction.h
Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (288351 => 288352)
--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2022-01-21 06:15:14 UTC (rev 288352)
@@ -241,6 +241,7 @@
083DAEA70F01A7FB00342754 /* RenderTextControlMultiLine.h in Headers */ = {isa = PBXBuildFile; fileRef = 083DAEA30F01A7FB00342754 /* RenderTextControlMultiLine.h */; };
083DAEA90F01A7FB00342754 /* RenderTextControlSingleLine.h in Headers */ = {isa = PBXBuildFile; fileRef = 083DAEA50F01A7FB00342754 /* RenderTextControlSingleLine.h */; };
0844B01D1255B4E600B9CDD0 /* SVGBoundingBoxComputation.h in Headers */ = {isa = PBXBuildFile; fileRef = 0844B01D1255E4E600B9CDD0 /* SVGBoundingBoxComputation.h */; };
+ 0844B01D1255B5A610B8AFD1 /* SVGContainerLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 0844B01D1255E5A610B8AFD1 /* SVGContainerLayout.h */; };
0845680812B90DA600960A9F /* FontMetrics.h in Headers */ = {isa = PBXBuildFile; fileRef = 0845680712B90DA600960A9F /* FontMetrics.h */; settings = {ATTRIBUTES = (Private, ); }; };
0854B0151255E4E600B9CDD0 /* RenderSVGInline.h in Headers */ = {isa = PBXBuildFile; fileRef = 0854B0031255E4E600B9CDD0 /* RenderSVGInline.h */; };
0854B0171255E4E600B9CDD0 /* RenderSVGInlineText.h in Headers */ = {isa = PBXBuildFile; fileRef = 0854B0051255E4E600B9CDD0 /* RenderSVGInlineText.h */; };
@@ -247,8 +248,6 @@
0854B0191255E4E600B9CDD0 /* RenderSVGText.h in Headers */ = {isa = PBXBuildFile; fileRef = 0854B0071255E4E600B9CDD0 /* RenderSVGText.h */; };
0854B01B1255E4E600B9CDD0 /* RenderSVGTextPath.h in Headers */ = {isa = PBXBuildFile; fileRef = 0854B0091255E4E600B9CDD0 /* RenderSVGTextPath.h */; };
0854B01D1255E4E600B9CDD0 /* RenderSVGTSpan.h in Headers */ = {isa = PBXBuildFile; fileRef = 0854B00B1255E4E600B9CDD0 /* RenderSVGTSpan.h */; };
- 0844B01D1255B4E600B9CDD0 /* SVGBoundingBoxComputation.h in Headers */ = {isa = PBXBuildFile; fileRef = 0844B01D1255E4E600B9CDD0 /* SVGBoundingBoxComputation.h */; };
- 0844B01D1255B5A610B8AFD1 /* SVGContainerLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 0844B01D1255E5A610B8AFD1 /* SVGContainerLayout.h */; };
0854B01F1255E4E600B9CDD0 /* SVGInlineFlowBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 0854B00D1255E4E600B9CDD0 /* SVGInlineFlowBox.h */; };
0854B0211255E4E600B9CDD0 /* SVGInlineTextBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 0854B00F1255E4E600B9CDD0 /* SVGInlineTextBox.h */; };
0854B0231255E4E600B9CDD0 /* SVGRootInlineBox.h in Headers */ = {isa = PBXBuildFile; fileRef = 0854B0111255E4E600B9CDD0 /* SVGRootInlineBox.h */; };
@@ -1239,8 +1238,8 @@
4358E8811360A31700E4748C /* FEDropShadow.h in Headers */ = {isa = PBXBuildFile; fileRef = 4358E87F1360A31700E4748C /* FEDropShadow.h */; settings = {ATTRIBUTES = (Private, ); }; };
4358E8861360A33B00E4748C /* SVGFEDropShadowElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 4358E8831360A33B00E4748C /* SVGFEDropShadowElement.h */; };
436708C112D9CA4B00044234 /* RenderSVGBlock.h in Headers */ = {isa = PBXBuildFile; fileRef = 4367088212D9CA4A00044234 /* RenderSVGBlock.h */; };
+ 436708C312D9CA4B00044234 /* LegacyRenderSVGContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 4367088412D9CA4A00044234 /* LegacyRenderSVGContainer.h */; };
436708C433F8CA4C10044234 /* RenderSVGContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 4367077412D9BC4A00044234 /* RenderSVGContainer.h */; };
- 436708C312D9CA4B00044234 /* LegacyRenderSVGContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 4367088412D9CA4A00044234 /* LegacyRenderSVGContainer.h */; };
436708C512D9CA4B00044234 /* RenderSVGGradientStop.h in Headers */ = {isa = PBXBuildFile; fileRef = 4367088612D9CA4A00044234 /* RenderSVGGradientStop.h */; };
436708C712D9CA4B00044234 /* RenderSVGHiddenContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 4367088812D9CA4A00044234 /* RenderSVGHiddenContainer.h */; };
436708C912D9CA4B00044234 /* RenderSVGImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 4367088A12D9CA4A00044234 /* RenderSVGImage.h */; };
@@ -2328,6 +2327,7 @@
726D56E2253AE28D0002EF90 /* PlatformImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 726D56E1253AE0430002EF90 /* PlatformImage.h */; settings = {ATTRIBUTES = (Private, ); }; };
726D56E3253AE3660002EF90 /* NativeImage.h in Headers */ = {isa = PBXBuildFile; fileRef = 55A336F61D8209F40022C4C7 /* NativeImage.h */; settings = {ATTRIBUTES = (Private, ); }; };
727A7F3A24078B84004D2931 /* ImageBufferIOSurfaceBackend.h in Headers */ = {isa = PBXBuildFile; fileRef = 72BAC3AB23E1E544008D741C /* ImageBufferIOSurfaceBackend.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 728D4791279A48B700BA7C0E /* FilterEffectApplier.h in Headers */ = {isa = PBXBuildFile; fileRef = 72A13A9F274C5CC700E2A88E /* FilterEffectApplier.h */; settings = {ATTRIBUTES = (Private, ); }; };
7299BC6723D6A53200CC6883 /* AlphaPremultiplication.h in Headers */ = {isa = PBXBuildFile; fileRef = 7299BC6423D686A600CC6883 /* AlphaPremultiplication.h */; settings = {ATTRIBUTES = (Private, ); }; };
7299BC6823D6A53E00CC6883 /* RenderingMode.h in Headers */ = {isa = PBXBuildFile; fileRef = 7299BC6623D686C600CC6883 /* RenderingMode.h */; settings = {ATTRIBUTES = (Private, ); }; };
729D05302531424300422098 /* RenderingResourceIdentifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 729D052E25313E2600422098 /* RenderingResourceIdentifier.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -6201,11 +6201,13 @@
081EBF380FD34F4100DA7559 /* SVGFilterBuilder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGFilterBuilder.cpp; sourceTree = "<group>"; };
081EBF390FD34F4100DA7559 /* SVGFilterBuilder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGFilterBuilder.h; sourceTree = "<group>"; };
0834B00C1244E4E600B9CDD0 /* SVGBoundingBoxComputation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGBoundingBoxComputation.cpp; sourceTree = "<group>"; };
+ 0834B00C1244E5A610B8AFD1 /* SVGContainerLayout.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGContainerLayout.cpp; sourceTree = "<group>"; };
083DAEA20F01A7FB00342754 /* RenderTextControlMultiLine.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderTextControlMultiLine.cpp; sourceTree = "<group>"; };
083DAEA30F01A7FB00342754 /* RenderTextControlMultiLine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderTextControlMultiLine.h; sourceTree = "<group>"; };
083DAEA40F01A7FB00342754 /* RenderTextControlSingleLine.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderTextControlSingleLine.cpp; sourceTree = "<group>"; };
083DAEA50F01A7FB00342754 /* RenderTextControlSingleLine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderTextControlSingleLine.h; sourceTree = "<group>"; };
0844B01D1255E4E600B9CDD0 /* SVGBoundingBoxComputation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGBoundingBoxComputation.h; sourceTree = "<group>"; };
+ 0844B01D1255E5A610B8AFD1 /* SVGContainerLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGContainerLayout.h; sourceTree = "<group>"; };
0845680712B90DA600960A9F /* FontMetrics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FontMetrics.h; sourceTree = "<group>"; };
0854B0021255E4E600B9CDD0 /* RenderSVGInline.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGInline.cpp; sourceTree = "<group>"; };
0854B0031255E4E600B9CDD0 /* RenderSVGInline.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGInline.h; sourceTree = "<group>"; };
@@ -6216,10 +6218,6 @@
0854B0081255E4E600B9CDD0 /* RenderSVGTextPath.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGTextPath.cpp; sourceTree = "<group>"; };
0854B0091255E4E600B9CDD0 /* RenderSVGTextPath.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGTextPath.h; sourceTree = "<group>"; };
0854B00B1255E4E600B9CDD0 /* RenderSVGTSpan.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGTSpan.h; sourceTree = "<group>"; };
- 0834B00C1244E4E600B9CDD0 /* SVGBoundingBoxComputation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGBoundingBoxComputation.cpp; sourceTree = "<group>"; };
- 0834B00C1244E5A610B8AFD1 /* SVGContainerLayout.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGContainerLayout.cpp; sourceTree = "<group>"; };
- 0844B01D1255E4E600B9CDD0 /* SVGBoundingBoxComputation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGBoundingBoxComputation.h; sourceTree = "<group>"; };
- 0844B01D1255E5A610B8AFD1 /* SVGContainerLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGContainerLayout.h; sourceTree = "<group>"; };
0854B00C1255E4E600B9CDD0 /* SVGInlineFlowBox.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGInlineFlowBox.cpp; sourceTree = "<group>"; };
0854B00D1255E4E600B9CDD0 /* SVGInlineFlowBox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGInlineFlowBox.h; sourceTree = "<group>"; };
0854B00E1255E4E600B9CDD0 /* SVGInlineTextBox.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGInlineTextBox.cpp; sourceTree = "<group>"; };
@@ -9003,12 +9001,12 @@
4358E8821360A33B00E4748C /* SVGFEDropShadowElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SVGFEDropShadowElement.cpp; sourceTree = "<group>"; };
4358E8831360A33B00E4748C /* SVGFEDropShadowElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVGFEDropShadowElement.h; sourceTree = "<group>"; };
4358E8841360A33B00E4748C /* SVGFEDropShadowElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SVGFEDropShadowElement.idl; sourceTree = "<group>"; };
+ 4367077412D9BC4A00044234 /* RenderSVGContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGContainer.h; sourceTree = "<group>"; };
4367088112D9CA4A00044234 /* RenderSVGBlock.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGBlock.cpp; sourceTree = "<group>"; };
4367088212D9CA4A00044234 /* RenderSVGBlock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGBlock.h; sourceTree = "<group>"; };
- 4367088442A9AC3B10044234 /* RenderSVGContainer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGContainer.cpp; sourceTree = "<group>"; };
4367088312D9CA4A00044234 /* LegacyRenderSVGContainer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LegacyRenderSVGContainer.cpp; sourceTree = "<group>"; };
4367088412D9CA4A00044234 /* LegacyRenderSVGContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LegacyRenderSVGContainer.h; sourceTree = "<group>"; };
- 4367077412D9BC4A00044234 /* RenderSVGContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGContainer.h; sourceTree = "<group>"; };
+ 4367088442A9AC3B10044234 /* RenderSVGContainer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGContainer.cpp; sourceTree = "<group>"; };
4367088512D9CA4A00044234 /* RenderSVGGradientStop.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGGradientStop.cpp; sourceTree = "<group>"; };
4367088612D9CA4A00044234 /* RenderSVGGradientStop.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGGradientStop.h; sourceTree = "<group>"; };
4367088712D9CA4A00044234 /* RenderSVGHiddenContainer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGHiddenContainer.cpp; sourceTree = "<group>"; };
@@ -34432,6 +34430,7 @@
712BE4831FE865DD002031CC /* FillMode.h in Headers */,
845E72F80FD261EE00A87D79 /* Filter.h in Headers */,
08C9251A0FCC7C4A00480DEC /* FilterEffect.h in Headers */,
+ 728D4791279A48B700BA7C0E /* FilterEffectApplier.h in Headers */,
726CDE202759735000A445B2 /* FilterEffectGeometry.h in Headers */,
7246963D275C614400A9156A /* FilterEffectVector.h in Headers */,
72B8B0352753438600F752AA /* FilterFunction.h in Headers */,
@@ -36114,7 +36113,6 @@
DF9AFD7213FC31D80015FEB7 /* MediaPlayerPrivateAVFoundationObjC.h in Headers */,
CDC8B5A3180463470016E685 /* MediaPlayerPrivateMediaSourceAVFObjC.h in Headers */,
150524F41B712FF600696AA9 /* MediaPlayerPrivateMediaStreamAVFObjC.h in Headers */,
- 7B4410E127958FC5000B4F8A /* MediaSampleVideoFrame.h in Headers */,
077BA576260FADF60072F19F /* MediaPositionState.h in Headers */,
52E2CAFC19FF0207001EEB4F /* MediaProducer.h in Headers */,
4E19592A0A39DACC00220FE5 /* MediaQuery.h in Headers */,
@@ -36137,6 +36135,7 @@
CEEFCD7A19DB31F7003876D7 /* MediaResourceLoader.h in Headers */,
1BF9DB3C1D3973AD0026AEB7 /* MediaSample.h in Headers */,
1B124D8D1D380B7000ECDFB0 /* MediaSampleAVFObjC.h in Headers */,
+ 7B4410E127958FC5000B4F8A /* MediaSampleVideoFrame.h in Headers */,
CDBEAEAD19D92B6C00BEBA88 /* MediaSelectionGroupAVFObjC.h in Headers */,
A17D275E1EAC579800BF01E7 /* MediaSelectionOption.h in Headers */,
077BA575260FA5FE0072F19F /* MediaSession.h in Headers */,
Modified: trunk/Source/WebCore/css/CSSFilterImageValue.cpp (288351 => 288352)
--- trunk/Source/WebCore/css/CSSFilterImageValue.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/css/CSSFilterImageValue.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -115,8 +115,7 @@
return &Image::nullImage();
// Transform Image into ImageBuffer.
- // FIXME (149424): This buffer should not be unconditionally unaccelerated.
- auto renderingMode = RenderingMode::Unaccelerated;
+ auto renderingMode = renderer.page().acceleratedFiltersEnabled() ? RenderingMode::Accelerated : RenderingMode::Unaccelerated;
auto sourceImage = ImageBuffer::create(size, renderingMode, ShouldUseDisplayList::No, RenderingPurpose::DOM, 1, DestinationColorSpace::SRGB(), PixelFormat::BGRA8, renderer.hostWindow());
if (!sourceImage)
return &Image::nullImage();
Modified: trunk/Source/WebCore/page/Page.cpp (288351 => 288352)
--- trunk/Source/WebCore/page/Page.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/page/Page.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -3654,6 +3654,15 @@
#endif
+bool Page::acceleratedFiltersEnabled() const
+{
+#if USE(CORE_IMAGE)
+ return settings().acceleratedFiltersEnabled();
+#else
+ return false;
+#endif
+}
+
bool Page::shouldDisableCorsForRequestTo(const URL& url) const
{
return WTF::anyOf(m_corsDisablingPatterns, [&] (const auto& pattern) {
Modified: trunk/Source/WebCore/page/Page.h (288351 => 288352)
--- trunk/Source/WebCore/page/Page.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/page/Page.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -490,6 +490,8 @@
WEBCORE_EXPORT void recomputeTextAutoSizingInAllFrames();
#endif
+ bool acceleratedFiltersEnabled() const;
+
const FloatBoxExtent& fullscreenInsets() const { return m_fullscreenInsets; }
WEBCORE_EXPORT void setFullscreenInsets(const FloatBoxExtent&);
Modified: trunk/Source/WebCore/page/Settings.yaml (288351 => 288352)
--- trunk/Source/WebCore/page/Settings.yaml 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/page/Settings.yaml 2022-01-21 06:15:14 UTC (rev 288352)
@@ -29,12 +29,6 @@
WebCore:
default: true
-AcceleratedFiltersEnabled:
- type: bool
- defaultValue:
- WebCore:
- default: false
-
AnimatedImageDebugCanvasDrawingEnabled:
type: bool
defaultValue:
Modified: trunk/Source/WebCore/platform/graphics/coreimage/FEColorMatrixCoreImageApplier.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/coreimage/FEColorMatrixCoreImageApplier.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/coreimage/FEColorMatrixCoreImageApplier.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -25,6 +25,8 @@
#pragma once
+#if USE(CORE_IMAGE)
+
#import "FilterEffectApplier.h"
namespace WebCore {
@@ -44,3 +46,5 @@
};
} // namespace WebCore
+
+#endif // USE(CORE_IMAGE)
Modified: trunk/Source/WebCore/platform/graphics/coreimage/FEComponentTransferCoreImageApplier.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/coreimage/FEComponentTransferCoreImageApplier.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/coreimage/FEComponentTransferCoreImageApplier.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -25,6 +25,8 @@
#pragma once
+#if USE(CORE_IMAGE)
+
#import "FilterEffectApplier.h"
namespace WebCore {
@@ -44,3 +46,5 @@
};
} // namespace WebCore
+
+#endif // USE(CORE_IMAGE)
Modified: trunk/Source/WebCore/platform/graphics/coreimage/SourceGraphicCoreImageApplier.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/coreimage/SourceGraphicCoreImageApplier.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/coreimage/SourceGraphicCoreImageApplier.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -25,6 +25,8 @@
#pragma once
+#if USE(CORE_IMAGE)
+
#import "FilterEffectApplier.h"
namespace WebCore {
@@ -42,3 +44,5 @@
};
} // namespace WebCore
+
+#endif // USE(CORE_IMAGE)
Modified: trunk/Source/WebCore/platform/graphics/filters/FEBlend.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEBlend.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEBlend.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -5,7 +5,7 @@
* Copyright (C) 2009 Dirk Schulze <[email protected]>
* Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
* Copyright (C) 2014 Adobe Systems Incorporated. All rights reserved.
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -52,7 +52,7 @@
return true;
}
-std::unique_ptr<FilterEffectApplier> FEBlend::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEBlend::createSoftwareApplier() const
{
return FilterEffectApplier::create<FEBlendSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEBlend.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEBlend.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEBlend.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -3,7 +3,7 @@
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2014 Adobe Systems Incorporated. All rights reserved.
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -43,7 +43,7 @@
unsigned numberOfEffectInputs() const override { return 2; }
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
void platformApplyNEON(unsigned char* srcPixelArrayA, unsigned char* srcPixelArrayB, unsigned char* dstPixelArray,
unsigned colorArrayLength);
Modified: trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -3,7 +3,7 @@
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -98,26 +98,31 @@
return normalizedValues;
}
-#if USE(CORE_IMAGE)
-bool FEColorMatrix::supportsCoreImageRendering() const
+bool FEColorMatrix::resultIsAlphaImage(const FilterImageVector&) const
{
- return FEColorMatrixCoreImageApplier::supportsCoreImageRendering(*this);
+ return m_type == FECOLORMATRIX_TYPE_LUMINANCETOALPHA;
}
-#endif
-bool FEColorMatrix::resultIsAlphaImage(const FilterImageVector&) const
+bool FEColorMatrix::supportsAcceleratedRendering() const
{
- return m_type == FECOLORMATRIX_TYPE_LUMINANCETOALPHA;
+#if USE(CORE_IMAGE)
+ return FEColorMatrixCoreImageApplier::supportsCoreImageRendering(*this);
+#else
+ return false;
+#endif
}
-std::unique_ptr<FilterEffectApplier> FEColorMatrix::createApplier(const Filter& filter) const
+std::unique_ptr<FilterEffectApplier> FEColorMatrix::createAcceleratedApplier() const
{
#if USE(CORE_IMAGE)
- if (filter.renderingMode() == RenderingMode::Accelerated)
- return FilterEffectApplier::create<FEColorMatrixCoreImageApplier>(*this);
+ return FilterEffectApplier::create<FEColorMatrixCoreImageApplier>(*this);
#else
- UNUSED_PARAM(filter);
+ return nullptr;
#endif
+}
+
+std::unique_ptr<FilterEffectApplier> FEColorMatrix::createSoftwareApplier() const
+{
return FilterEffectApplier::create<FEColorMatrixSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEColorMatrix.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -55,13 +55,11 @@
private:
FEColorMatrix(ColorMatrixType, Vector<float>&&);
-#if USE(CORE_IMAGE)
- bool supportsCoreImageRendering() const override;
-#endif
-
bool resultIsAlphaImage(const FilterImageVector& inputs) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ bool supportsAcceleratedRendering() const override;
+ std::unique_ptr<FilterEffectApplier> createAcceleratedApplier() const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FEComponentTransfer.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEComponentTransfer.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEComponentTransfer.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -4,7 +4,7 @@
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -49,21 +49,26 @@
{
}
+bool FEComponentTransfer::supportsAcceleratedRendering() const
+{
#if USE(CORE_IMAGE)
-bool FEComponentTransfer::supportsCoreImageRendering() const
-{
return FEComponentTransferCoreImageApplier::supportsCoreImageRendering(*this);
+#else
+ return false;
+#endif
}
-#endif
-std::unique_ptr<FilterEffectApplier> FEComponentTransfer::createApplier(const Filter& filter) const
+std::unique_ptr<FilterEffectApplier> FEComponentTransfer::createAcceleratedApplier() const
{
#if USE(CORE_IMAGE)
- if (filter.renderingMode() == RenderingMode::Accelerated)
- return FilterEffectApplier::create<FEComponentTransferCoreImageApplier>(*this);
+ return FilterEffectApplier::create<FEComponentTransferCoreImageApplier>(*this);
#else
- UNUSED_PARAM(filter);
+ return nullptr;
#endif
+}
+
+std::unique_ptr<FilterEffectApplier> FEComponentTransfer::createSoftwareApplier() const
+{
return FilterEffectApplier::create<FEComponentTransferSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEComponentTransfer.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEComponentTransfer.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEComponentTransfer.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -66,12 +66,10 @@
private:
FEComponentTransfer(const ComponentTransferFunction& redFunc, const ComponentTransferFunction& greenFunc, const ComponentTransferFunction& blueFunc, const ComponentTransferFunction& alphaFunc);
-#if USE(CORE_IMAGE)
- bool supportsCoreImageRendering() const override;
-#endif
+ bool supportsAcceleratedRendering() const override;
+ std::unique_ptr<FilterEffectApplier> createAcceleratedApplier() const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
-
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
ComponentTransferFunction m_redFunction;
Modified: trunk/Source/WebCore/platform/graphics/filters/FEComposite.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEComposite.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEComposite.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -4,7 +4,7 @@
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -106,7 +106,7 @@
}
}
-std::unique_ptr<FilterEffectApplier> FEComposite::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEComposite::createSoftwareApplier() const
{
return FilterEffectApplier::create<FECompositeSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEComposite.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEComposite.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEComposite.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -69,7 +69,7 @@
bool resultIsValidPremultiplied() const override { return m_type != FECOMPOSITE_OPERATOR_ARITHMETIC; }
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -4,7 +4,7 @@
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
* Copyright (C) 2010 Zoltan Herczeg <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -119,7 +119,7 @@
return filter.maxEffectRect(primitiveSubregion);
}
-std::unique_ptr<FilterEffectApplier> FEConvolveMatrix::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEConvolveMatrix::createSoftwareApplier() const
{
return FilterEffectApplier::create<FEConvolveMatrixSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -3,7 +3,7 @@
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2010 Zoltan Herczeg <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -72,7 +72,7 @@
FloatRect calculateImageRect(const Filter&, const FilterImageVector& inputs, const FloatRect& primitiveSubregion) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FEDisplacementMap.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEDisplacementMap.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEDisplacementMap.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -4,7 +4,7 @@
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -89,7 +89,7 @@
inputs[1]->transformToColorSpace(operatingColorSpace());
}
-std::unique_ptr<FilterEffectApplier> FEDisplacementMap::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEDisplacementMap::createSoftwareApplier() const
{
return FilterEffectApplier::create<FEDisplacementMapSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEDisplacementMap.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEDisplacementMap.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEDisplacementMap.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -61,7 +61,7 @@
const DestinationColorSpace& resultColorSpace(const FilterImageVector&) const override;
void transformInputsColorSpace(const FilterImageVector& inputs) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FEDropShadow.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEDropShadow.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEDropShadow.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1,6 +1,6 @@
/*
* Copyright (C) Research In Motion Limited 2011. All rights reserved.
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -72,7 +72,7 @@
};
}
-std::unique_ptr<FilterEffectApplier> FEDropShadow::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEDropShadow::createSoftwareApplier() const
{
return FilterEffectApplier::create<FEDropShadowSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEDropShadow.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEDropShadow.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEDropShadow.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1,6 +1,6 @@
/*
* Copyright (C) Research In Motion Limited 2011. All rights reserved.
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -57,7 +57,7 @@
IntOutsets outsets(const Filter&) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FEFlood.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEFlood.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEFlood.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -3,7 +3,7 @@
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -64,7 +64,7 @@
return filter.maxEffectRect(primitiveSubregion);
}
-std::unique_ptr<FilterEffectApplier> FEFlood::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEFlood::createSoftwareApplier() const
{
return FilterEffectApplier::create<FEFloodSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEFlood.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEFlood.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEFlood.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -53,7 +53,7 @@
FloatRect calculateImageRect(const Filter&, const FilterImageVector& inputs, const FloatRect& primitiveSubregion) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FEGaussianBlur.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEGaussianBlur.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEGaussianBlur.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -5,7 +5,7 @@
* Copyright (C) 2009 Dirk Schulze <[email protected]>
* Copyright (C) 2010 Igalia, S.L.
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) 2015-2021 Apple, Inc. All rights reserved.
+ * Copyright (C) 2015-2022 Apple, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -131,7 +131,7 @@
return inputs[0]->isAlphaImage();
}
-std::unique_ptr<FilterEffectApplier> FEGaussianBlur::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEGaussianBlur::createSoftwareApplier() const
{
return FilterEffectApplier::create<FEGaussianBlurSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEGaussianBlur.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEGaussianBlur.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEGaussianBlur.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -56,7 +56,7 @@
bool resultIsAlphaImage(const FilterImageVector& inputs) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FELighting.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FELighting.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FELighting.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2010 University of Szeged
* Copyright (C) 2010 Zoltan Herczeg
- * Copyright (C) 2018-2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2018-2022 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -87,7 +87,7 @@
return filter.maxEffectRect(primitiveSubregion);
}
-std::unique_ptr<FilterEffectApplier> FELighting::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FELighting::createSoftwareApplier() const
{
return FilterEffectApplier::create<FELightingSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FELighting.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FELighting.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FELighting.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2010 University of Szeged
* Copyright (C) 2010 Zoltan Herczeg
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -65,7 +65,7 @@
FloatRect calculateImageRect(const Filter&, const FilterImageVector& inputs, const FloatRect& primitiveSubregion) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
#if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_COMPATIBLE)
static int getPowerCoefficients(float exponent);
Modified: trunk/Source/WebCore/platform/graphics/filters/FEMerge.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEMerge.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEMerge.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) Apple Inc. 2021 All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -40,7 +40,7 @@
{
}
-std::unique_ptr<FilterEffectApplier> FEMerge::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEMerge::createSoftwareApplier() const
{
return FilterEffectApplier::create<FEMergeSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEMerge.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEMerge.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEMerge.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) Apple Inc. 2021 All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -38,7 +38,7 @@
private:
FEMerge(unsigned numberOfEffectInputs);
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FEMorphology.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEMorphology.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEMorphology.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -4,7 +4,7 @@
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) Apple Inc. 2017-2021 All rights reserved.
+ * Copyright (C) 2017-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -80,7 +80,7 @@
return inputs[0]->isAlphaImage();
}
-std::unique_ptr<FilterEffectApplier> FEMorphology::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEMorphology::createSoftwareApplier() const
{
return FilterEffectApplier::create<FEMorphologySoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEMorphology.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEMorphology.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEMorphology.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) Apple Inc. 2021 All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -55,7 +55,7 @@
bool resultIsAlphaImage(const FilterImageVector& inputs) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FEOffset.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEOffset.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEOffset.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -4,7 +4,7 @@
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -82,7 +82,7 @@
return inputs[0]->isAlphaImage();
}
-std::unique_ptr<FilterEffectApplier> FEOffset::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEOffset::createSoftwareApplier() const
{
return FilterEffectApplier::create<FEOffsetSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FEOffset.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FEOffset.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FEOffset.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -48,7 +48,7 @@
bool resultIsAlphaImage(const FilterImageVector& inputs) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FETile.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FETile.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FETile.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2008 Alex Mathews <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -48,7 +48,7 @@
return inputs[0]->isAlphaImage();
}
-std::unique_ptr<FilterEffectApplier> FETile::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FETile::createSoftwareApplier() const
{
return FilterEffectApplier::create<FETileSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FETile.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FETile.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FETile.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -2,7 +2,7 @@
* Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <[email protected]>
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -37,7 +37,7 @@
bool resultIsAlphaImage(const FilterImageVector& inputs) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
};
Modified: trunk/Source/WebCore/platform/graphics/filters/FETurbulence.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FETurbulence.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FETurbulence.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -5,7 +5,7 @@
* Copyright (C) 2009 Dirk Schulze <[email protected]>
* Copyright (C) 2010 Renata Hodovan <[email protected]>
* Copyright (C) 2011 Gabor Loki <[email protected]>
- * Copyright (C) 2017-2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2017-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -101,7 +101,7 @@
return filter.maxEffectRect(primitiveSubregion);
}
-std::unique_ptr<FilterEffectApplier> FETurbulence::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FETurbulence::createSoftwareApplier() const
{
return FilterEffectApplier::create<FETurbulenceSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/FETurbulence.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FETurbulence.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FETurbulence.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -4,7 +4,7 @@
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
* Copyright (C) 2010 Renata Hodovan <[email protected]>
- * Copyright (C) 2017-2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2017-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -67,7 +67,7 @@
FloatRect calculateImageRect(const Filter&, const FilterImageVector& inputs, const FloatRect& primitiveSubregion) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
Modified: trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -85,6 +85,13 @@
return filter.clipToMaxEffectRect(imageRect, primitiveSubregion);
}
+std::unique_ptr<FilterEffectApplier> FilterEffect::createApplier(const Filter& filter) const
+{
+ if (filter.renderingMode() == RenderingMode::Accelerated)
+ return createAcceleratedApplier();
+ return createSoftwareApplier();
+}
+
void FilterEffect::transformInputsColorSpace(const FilterImageVector& inputs) const
{
for (auto& input : inputs)
Modified: trunk/Source/WebCore/platform/graphics/filters/FilterEffect.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FilterEffect.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FilterEffect.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -23,6 +23,7 @@
#pragma once
#include "DestinationColorSpace.h"
+#include "FilterEffectApplier.h"
#include "FilterFunction.h"
#include "FilterImageVector.h"
@@ -33,7 +34,6 @@
namespace WebCore {
class Filter;
-class FilterEffectApplier;
class FilterEffectGeometry;
class FilterResults;
@@ -70,8 +70,11 @@
void correctPremultipliedInputs(const FilterImageVector& inputs) const;
- virtual std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const = 0;
+ std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const;
+ virtual std::unique_ptr<FilterEffectApplier> createAcceleratedApplier() const { return nullptr; }
+ virtual std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const = 0;
+
RefPtr<FilterImage> apply(const Filter&, FilterImage& input, FilterResults&) override;
DestinationColorSpace m_operatingColorSpace { DestinationColorSpace::SRGB() };
Modified: trunk/Source/WebCore/platform/graphics/filters/FilterFunction.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/FilterFunction.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/FilterFunction.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -93,10 +93,7 @@
static AtomString sourceGraphicName() { return filterName(Type::SourceGraphic); }
AtomString filterName() const { return filterName(m_filterType); }
-#if USE(CORE_IMAGE)
- virtual bool supportsCoreImageRendering() const { return false; }
-#endif
-
+ virtual bool supportsAcceleratedRendering() const { return false; }
virtual RefPtr<FilterImage> apply(const Filter&, FilterImage&, FilterResults&) { return nullptr; }
virtual IntOutsets outsets(const Filter&) const { return { }; }
Modified: trunk/Source/WebCore/platform/graphics/filters/SourceAlpha.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/SourceAlpha.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/SourceAlpha.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -38,7 +38,7 @@
setOperatingColorSpace(colorSpace);
}
-std::unique_ptr<FilterEffectApplier> SourceAlpha::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> SourceAlpha::createSoftwareApplier() const
{
return FilterEffectApplier::create<SourceAlphaSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/SourceAlpha.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/SourceAlpha.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/SourceAlpha.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2009 Dirk Schulze <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -33,7 +33,7 @@
private:
explicit SourceAlpha(const DestinationColorSpace&);
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
};
Modified: trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.cpp (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2009 Dirk Schulze <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -41,15 +41,26 @@
{
}
-std::unique_ptr<FilterEffectApplier> SourceGraphic::createApplier(const Filter& filter) const
+bool SourceGraphic::supportsAcceleratedRendering() const
{
#if USE(CORE_IMAGE)
- // FIXME: return SourceGraphicCoreImageApplier.
- if (filter.renderingMode() == RenderingMode::Accelerated)
- return FilterEffectApplier::create<SourceGraphicCoreImageApplier>(*this);
+ return true;
#else
- UNUSED_PARAM(filter);
+ return false;
#endif
+}
+
+std::unique_ptr<FilterEffectApplier> SourceGraphic::createAcceleratedApplier() const
+{
+#if USE(CORE_IMAGE)
+ return FilterEffectApplier::create<SourceGraphicCoreImageApplier>(*this);
+#else
+ return nullptr;
+#endif
+}
+
+std::unique_ptr<FilterEffectApplier> SourceGraphic::createSoftwareApplier() const
+{
return FilterEffectApplier::create<SourceGraphicSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.h (288351 => 288352)
--- trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/platform/graphics/filters/SourceGraphic.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2008 Alex Mathews <[email protected]>
* Copyright (C) 2009 Dirk Schulze <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -34,13 +34,11 @@
private:
SourceGraphic();
-#if USE(CORE_IMAGE)
- bool supportsCoreImageRendering() const override { return true; }
-#endif
-
unsigned numberOfEffectInputs() const override { return 0; }
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const override;
+ bool supportsAcceleratedRendering() const override;
+ std::unique_ptr<FilterEffectApplier> createAcceleratedApplier() const override;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const override;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const override;
};
Modified: trunk/Source/WebCore/rendering/CSSFilter.cpp (288351 => 288352)
--- trunk/Source/WebCore/rendering/CSSFilter.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/rendering/CSSFilter.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -52,10 +52,9 @@
if (!filter->buildFilterFunctions(renderer, operations, targetBoundingBox))
return nullptr;
-#if USE(CORE_IMAGE)
- if (!filter->supportsCoreImageRendering())
+ if (renderingMode == RenderingMode::Accelerated && !filter->supportsAcceleratedRendering())
filter->setRenderingMode(RenderingMode::Unaccelerated);
-#endif
+
return filter;
}
@@ -337,20 +336,18 @@
return effects;
}
-#if USE(CORE_IMAGE)
-bool CSSFilter::supportsCoreImageRendering() const
+bool CSSFilter::supportsAcceleratedRendering() const
{
if (renderingMode() == RenderingMode::Unaccelerated)
return false;
for (auto& function : m_functions) {
- if (!function->supportsCoreImageRendering())
+ if (!function->supportsAcceleratedRendering())
return false;
}
return true;
}
-#endif
RefPtr<FilterImage> CSSFilter::apply(FilterImage* sourceImage, FilterResults& results)
{
Modified: trunk/Source/WebCore/rendering/CSSFilter.h (288351 => 288352)
--- trunk/Source/WebCore/rendering/CSSFilter.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/rendering/CSSFilter.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -59,9 +59,7 @@
bool buildFilterFunctions(RenderElement&, const FilterOperations&, const FloatRect& targetBoundingBox);
-#if USE(CORE_IMAGE)
- bool supportsCoreImageRendering() const final;
-#endif
+ bool supportsAcceleratedRendering() const final;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const final;
Modified: trunk/Source/WebCore/rendering/RenderLayer.cpp (288351 => 288352)
--- trunk/Source/WebCore/rendering/RenderLayer.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -5603,7 +5603,7 @@
}
ensureLayerFilters();
- m_filters->buildFilter(renderer(), page().deviceScaleFactor(), renderer().settings().acceleratedFiltersEnabled() ? RenderingMode::Accelerated : RenderingMode::Unaccelerated);
+ m_filters->buildFilter(renderer(), page().deviceScaleFactor(), renderer().page().acceleratedFiltersEnabled() ? RenderingMode::Accelerated : RenderingMode::Unaccelerated);
}
IntOutsets RenderLayer::filterOutsets() const
Modified: trunk/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp (288351 => 288352)
--- trunk/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -125,7 +125,7 @@
ImageBuffer::sizeNeedsClamping(filterData->drawingRegion.size(), filterScale);
// Set the rendering mode from the page's settings.
- auto renderingMode = renderer.settings().acceleratedFiltersEnabled() ? RenderingMode::Accelerated : RenderingMode::Unaccelerated;
+ auto renderingMode = renderer.page().acceleratedFiltersEnabled() ? RenderingMode::Accelerated : RenderingMode::Unaccelerated;
// Create the SVGFilter object.
filterData->builder = makeUnique<SVGFilterBuilder>();
Modified: trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp (288351 => 288352)
--- trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -3,7 +3,7 @@
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2010 Dirk Schulze <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -114,7 +114,7 @@
return true;
}
-std::unique_ptr<FilterEffectApplier> FEImage::createApplier(const Filter&) const
+std::unique_ptr<FilterEffectApplier> FEImage::createSoftwareApplier() const
{
return FilterEffectApplier::create<FEImageSoftwareApplier>(*this);
}
Modified: trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.h (288351 => 288352)
--- trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -3,7 +3,7 @@
* Copyright (C) 2004, 2005 Rob Buis <[email protected]>
* Copyright (C) 2005 Eric Seidel <[email protected]>
* Copyright (C) 2010 Dirk Schulze <[email protected]>
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -62,7 +62,7 @@
FloatRect calculateImageRect(const Filter&, const FilterImageVector& inputs, const FloatRect& primitiveSubregion) const override;
- std::unique_ptr<FilterEffectApplier> createApplier(const Filter&) const final;
+ std::unique_ptr<FilterEffectApplier> createSoftwareApplier() const final;
WTF::TextStream& externalRepresentation(WTF::TextStream&, FilterRepresentation) const final;
Modified: trunk/Source/WebCore/svg/graphics/filters/SVGFilter.cpp (288351 => 288352)
--- trunk/Source/WebCore/svg/graphics/filters/SVGFilter.cpp 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/svg/graphics/filters/SVGFilter.cpp 2022-01-21 06:15:14 UTC (rev 288352)
@@ -48,10 +48,9 @@
ASSERT(!_expression_.isEmpty());
filter->setExpression(WTFMove(_expression_));
-#if USE(CORE_IMAGE)
- if (!filter->supportsCoreImageRendering())
+ if (renderingMode == RenderingMode::Accelerated && !filter->supportsAcceleratedRendering())
filter->setRenderingMode(RenderingMode::Unaccelerated);
-#endif
+
return filter;
}
@@ -80,8 +79,7 @@
return m_primitiveUnits == SVGUnitTypes::SVG_UNIT_TYPE_OBJECTBOUNDINGBOX ? size * m_targetBoundingBox.size() : size;
}
-#if USE(CORE_IMAGE)
-bool SVGFilter::supportsCoreImageRendering() const
+bool SVGFilter::supportsAcceleratedRendering() const
{
if (renderingMode() == RenderingMode::Unaccelerated)
return false;
@@ -88,13 +86,12 @@
ASSERT(!m_expression.isEmpty());
for (auto& term : m_expression) {
- if (!term.effect->supportsCoreImageRendering())
+ if (!term.effect->supportsAcceleratedRendering())
return false;
}
return true;
}
-#endif
FilterEffectVector SVGFilter::effectsOfType(FilterFunction::Type filterType) const
{
Modified: trunk/Source/WebCore/svg/graphics/filters/SVGFilter.h (288351 => 288352)
--- trunk/Source/WebCore/svg/graphics/filters/SVGFilter.h 2022-01-21 04:54:27 UTC (rev 288351)
+++ trunk/Source/WebCore/svg/graphics/filters/SVGFilter.h 2022-01-21 06:15:14 UTC (rev 288352)
@@ -56,11 +56,10 @@
void setExpression(SVGFilterExpression&& _expression_) { m_expression = WTFMove(_expression_); }
-#if USE(CORE_IMAGE)
- bool supportsCoreImageRendering() const final;
-#endif
FloatSize resolvedSize(const FloatSize&) const final;
+ bool supportsAcceleratedRendering() const final;
+
RefPtr<FilterImage> apply(const Filter&, FilterImage& sourceImage, FilterResults&) final;
IntOutsets outsets(const Filter&) const final { return outsets(); }