Changeset 286867 in webkit
- Timestamp:
- Dec 10, 2021, 11:55:25 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/filters/software/FEMorphologySoftwareApplier.cpp (modified) (1 diff)
-
rendering/RenderLayerFilters.cpp (modified) (2 diffs)
-
rendering/svg/RenderSVGResourceFilter.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r286866 r286867 1 2021-12-10 Said Abou-Hallawa <said@apple.com> 2 3 [GPU Process] [Filters] Address review comments after r285597 4 https://bugs.webkit.org/show_bug.cgi?id=234130 5 6 Reviewed by Darin Adler. 7 8 Most of the comments in https://bugs.webkit.org/show_bug.cgi?id=232457 9 have already been addressed. This patch covers the unaddressed ones. 10 11 * platform/graphics/filters/software/FEMorphologySoftwareApplier.cpp: 12 (WebCore::FEMorphologySoftwareApplier::apply const): 13 Remove wasteful ceilf() calls 14 15 * rendering/RenderLayerFilters.cpp: 16 (WebCore::RenderLayerFilters::buildFilter): 17 Capitalize the sentence in the FIXME comments. 18 19 * rendering/svg/RenderSVGResourceFilter.cpp: 20 (WebCore::RenderSVGResourceFilter::applyResource): 21 Use 'auto' in a few places where the type can be deduced. 22 1 23 2021-12-10 Gabriel Nava Marino <gnavamarino@apple.com> 2 24 -
trunk/Source/WebCore/platform/graphics/filters/software/FEMorphologySoftwareApplier.cpp
r286287 r286867 183 183 paintingData.srcPixelArray = &sourcePixelArray; 184 184 paintingData.dstPixelArray = &destinationPixelArray; 185 paintingData.width = ceilf(effectDrawingRect.width());186 paintingData.height = ceilf(effectDrawingRect.height());187 paintingData.radiusX = ceilf(radiusX);188 paintingData.radiusY = ceilf(radiusY);185 paintingData.width = effectDrawingRect.width(); 186 paintingData.height = effectDrawingRect.height(); 187 paintingData.radiusX = radiusX; 188 paintingData.radiusY = radiusY; 189 189 190 190 applyPlatform(paintingData); -
trunk/Source/WebCore/rendering/RenderLayerFilters.cpp
r286835 r286867 121 121 // If the filter fails to build, remove it from the layer. It will still attempt to 122 122 // go through regular processing (e.g. compositing), but never apply anything. 123 // FIXME: this rebuilds the entire effects chain even if the filter style didn't change.123 // FIXME: This rebuilds the entire effects chain even if the filter style didn't change. 124 124 m_filter = CSSFilter::create(renderer, renderer.style().filter(), renderingMode, FloatSize { scaleFactor, scaleFactor }, Filter::ClipOperation::Unite, m_targetBoundingBox); 125 125 } … … 159 159 if (m_targetBoundingBox != targetBoundingBox) { 160 160 m_targetBoundingBox = targetBoundingBox; 161 // FIXME: this rebuilds the entire effects chain even if the filter style didn't change.161 // FIXME: This rebuilds the entire effects chain even if the filter style didn't change. 162 162 m_filter = CSSFilter::create(renderer, renderer.style().filter(), m_filter->renderingMode(), m_filter->filterScale(), Filter::ClipOperation::Unite, m_targetBoundingBox); 163 163 } -
trunk/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp
r286864 r286867 109 109 110 110 // Determine absolute transformation matrix for filter. 111 AffineTransformabsoluteTransform = SVGRenderingContext::calculateTransformationToOutermostCoordinateSystem(renderer);111 auto absoluteTransform = SVGRenderingContext::calculateTransformationToOutermostCoordinateSystem(renderer); 112 112 if (!absoluteTransform.isInvertible()) { 113 113 m_rendererFilterDataMap.remove(&renderer); … … 148 148 149 149 // Change the coordinate transformation applied to the filtered element to reflect the resolution of the filter. 150 AffineTransformeffectiveTransform = AffineTransform(filterScale.width(), 0, 0, filterScale.height(), 0, 0);150 auto effectiveTransform = AffineTransform(filterScale.width(), 0, 0, filterScale.height(), 0, 0); 151 151 152 152 #if ENABLE(DESTINATION_COLOR_SPACE_LINEAR_SRGB) … … 162 162 } 163 163 164 GraphicsContext& sourceGraphicContext = sourceGraphic->context();164 auto& sourceGraphicContext = sourceGraphic->context(); 165 165 166 166 filterData->sourceGraphicBuffer = WTFMove(sourceGraphic);
Note:
See TracChangeset
for help on using the changeset viewer.