Title: [294015] trunk/Source/WebCore
- Revision
- 294015
- Author
- [email protected]
- Date
- 2022-05-10 13:52:34 -0700 (Tue, 10 May 2022)
Log Message
[GPU Process] [Filters] FilterImages can be leaked
https://bugs.webkit.org/show_bug.cgi?id=240274
Reviewed by Simon Fraser.
When a FilterEffect is dynamically updated we clear its result FilterImage.
We also need to clear all the result FilterImages of all the FilterEffects
recursively which takes this changing FilterEffect as an input.
Clearing the result FilterImage of the changing FilterEffect happens by
removing the entry from FilterResults::m_results.
Clearing the FilterImages of the dependent FilterEffects happens by using
FilterResults::m_resultReferences.
What is missing is removing the FilterImage entry itself from
FilterResults::m_resultReferences.
* platform/graphics/filters/FilterResults.h:
(WebCore::FilterResults::clearEffectResult):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (294014 => 294015)
--- trunk/Source/WebCore/ChangeLog 2022-05-10 20:22:36 UTC (rev 294014)
+++ trunk/Source/WebCore/ChangeLog 2022-05-10 20:52:34 UTC (rev 294015)
@@ -1,3 +1,26 @@
+2022-05-10 Said Abou-Hallawa <[email protected]>
+
+ [GPU Process] [Filters] FilterImages can be leaked
+ https://bugs.webkit.org/show_bug.cgi?id=240274
+
+ Reviewed by Simon Fraser.
+
+ When a FilterEffect is dynamically updated we clear its result FilterImage.
+ We also need to clear all the result FilterImages of all the FilterEffects
+ recursively which takes this changing FilterEffect as an input.
+
+ Clearing the result FilterImage of the changing FilterEffect happens by
+ removing the entry from FilterResults::m_results.
+
+ Clearing the FilterImages of the dependent FilterEffects happens by using
+ FilterResults::m_resultReferences.
+
+ What is missing is removing the FilterImage entry itself from
+ FilterResults::m_resultReferences.
+
+ * platform/graphics/filters/FilterResults.h:
+ (WebCore::FilterResults::clearEffectResult):
+
2022-05-10 Tim Nguyen <[email protected]>
Fix inertness of pseudo-elements
Modified: trunk/Source/WebCore/platform/graphics/filters/FilterResults.h (294014 => 294015)
--- trunk/Source/WebCore/platform/graphics/filters/FilterResults.h 2022-05-10 20:22:36 UTC (rev 294014)
+++ trunk/Source/WebCore/platform/graphics/filters/FilterResults.h 2022-05-10 20:52:34 UTC (rev 294015)
@@ -63,6 +63,8 @@
for (auto& reference : m_resultReferences.get(result))
clearEffectResult(reference);
+
+ m_resultReferences.remove(result);
}
private:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes