Title: [188989] trunk/Source/WebCore
- Revision
- 188989
- Author
- ander...@apple.com
- Date
- 2015-08-26 14:37:43 -0700 (Wed, 26 Aug 2015)
Log Message
Fix failing tests.
Add fallback code for the case when iterations is 0.
* platform/graphics/filters/FEConvolveMatrix.cpp:
(WebCore::FEConvolveMatrix::platformApplySoftware):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (188988 => 188989)
--- trunk/Source/WebCore/ChangeLog 2015-08-26 21:15:49 UTC (rev 188988)
+++ trunk/Source/WebCore/ChangeLog 2015-08-26 21:37:43 UTC (rev 188989)
@@ -1,5 +1,14 @@
2015-08-26 Anders Carlsson <ander...@apple.com>
+ Fix failing tests.
+
+ Add fallback code for the case when iterations is 0.
+
+ * platform/graphics/filters/FEConvolveMatrix.cpp:
+ (WebCore::FEConvolveMatrix::platformApplySoftware):
+
+2015-08-26 Anders Carlsson <ander...@apple.com>
+
Use WorkQueue::concurrentApply in FEConvolveMatrix
https://bugs.webkit.org/show_bug.cgi?id=148490
Modified: trunk/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.cpp (188988 => 188989)
--- trunk/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.cpp 2015-08-26 21:15:49 UTC (rev 188988)
+++ trunk/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.cpp 2015-08-26 21:37:43 UTC (rev 188989)
@@ -448,6 +448,11 @@
}
int iterations = (absolutePaintRect().width() * absolutePaintRect().height()) / s_minimalRectDimension;
+ if (!iterations) {
+ setInteriorPixels(paintingData, clipRight, clipBottom, 0, clipBottom);
+ return;
+ }
+
int stride = clipBottom / iterations;
int chunkCount = (clipBottom + stride - 1) / stride;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes