Title: [282117] trunk/Source/WebCore
Revision
282117
Author
[email protected]
Date
2021-09-07 17:08:35 -0700 (Tue, 07 Sep 2021)

Log Message

Ensure ImageBuffers are destroyed on the main thread
https://bugs.webkit.org/show_bug.cgi?id=229906
<rdar://problem/82745925>

Reviewed by Ryosuke Niwa.

* platform/graphics/ImageBuffer.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (282116 => 282117)


--- trunk/Source/WebCore/ChangeLog	2021-09-07 23:58:03 UTC (rev 282116)
+++ trunk/Source/WebCore/ChangeLog	2021-09-08 00:08:35 UTC (rev 282117)
@@ -1,5 +1,15 @@
 2021-09-07  Cameron McCormack  <[email protected]>
 
+        Ensure ImageBuffers are destroyed on the main thread
+        https://bugs.webkit.org/show_bug.cgi?id=229906
+        <rdar://problem/82745925>
+
+        Reviewed by Ryosuke Niwa.
+
+        * platform/graphics/ImageBuffer.h:
+
+2021-09-07  Cameron McCormack  <[email protected]>
+
         Add an IPCMessages channel to log all IPC messages
         https://bugs.webkit.org/show_bug.cgi?id=229664
         <rdar://problem/82511640>

Modified: trunk/Source/WebCore/platform/graphics/ImageBuffer.h (282116 => 282117)


--- trunk/Source/WebCore/platform/graphics/ImageBuffer.h	2021-09-07 23:58:03 UTC (rev 282116)
+++ trunk/Source/WebCore/platform/graphics/ImageBuffer.h	2021-09-08 00:08:35 UTC (rev 282117)
@@ -42,7 +42,7 @@
 struct ItemBufferHandle;
 }
 
-class ImageBuffer : public ThreadSafeRefCounted<ImageBuffer>, public CanMakeWeakPtr<ImageBuffer> {
+class ImageBuffer : public ThreadSafeRefCounted<ImageBuffer, WTF::DestructionThread::Main>, public CanMakeWeakPtr<ImageBuffer> {
 public:
     // Will return a null pointer on allocation failure.
     WEBCORE_EXPORT static RefPtr<ImageBuffer> create(const FloatSize&, RenderingMode, ShouldUseDisplayList, RenderingPurpose, float resolutionScale, const DestinationColorSpace&, PixelFormat, const HostWindow* = nullptr);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to