Title: [291342] trunk/Source/WebCore
Revision
291342
Author
[email protected]
Date
2022-03-16 06:03:44 -0700 (Wed, 16 Mar 2022)

Log Message

[GTK][WPE] Debug build assertion, TextureMapperPlatformLayerProxyGL asserts when going back in the minibrowser
https://bugs.webkit.org/show_bug.cgi?id=237948

We are not initializing m_compositorThread properly with the
invalidation and the ThreadedCompositor is destroyed after a
navigation, and when going back the browser asserts because the
ThreadedCompositor is a different one. This is just for debug
builds.

Patch by Alejandro G. Castro <[email protected]> on 2022-03-16
Reviewed by Carlos Garcia Campos.

Not clear how to reproduce this situation with tests because we
need to navigate back with different origins. I'm opening a bug
connected to this one to check how to do it.

* platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.cpp:
(WebCore::TextureMapperPlatformLayerProxyGL::invalidate):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (291341 => 291342)


--- trunk/Source/WebCore/ChangeLog	2022-03-16 12:54:06 UTC (rev 291341)
+++ trunk/Source/WebCore/ChangeLog	2022-03-16 13:03:44 UTC (rev 291342)
@@ -1,3 +1,23 @@
+2022-03-16  Alejandro G. Castro  <[email protected]>
+
+        [GTK][WPE] Debug build assertion, TextureMapperPlatformLayerProxyGL asserts when going back in the minibrowser
+        https://bugs.webkit.org/show_bug.cgi?id=237948
+
+        We are not initializing m_compositorThread properly with the
+        invalidation and the ThreadedCompositor is destroyed after a
+        navigation, and when going back the browser asserts because the
+        ThreadedCompositor is a different one. This is just for debug
+        builds.
+
+        Reviewed by Carlos Garcia Campos.
+
+        Not clear how to reproduce this situation with tests because we
+        need to navigate back with different origins. I'm opening a bug
+        connected to this one to check how to do it.
+
+        * platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.cpp:
+        (WebCore::TextureMapperPlatformLayerProxyGL::invalidate):
+
 2022-03-16  Youenn Fablet  <[email protected]>
 
         Make MIMETypeRegistry::mimeTypeForPath take a StringView

Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.cpp (291341 => 291342)


--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.cpp	2022-03-16 12:54:06 UTC (rev 291341)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.cpp	2022-03-16 13:03:44 UTC (rev 291342)
@@ -91,6 +91,9 @@
     {
         Locker locker { m_lock };
         m_compositor = nullptr;
+#ifndef NDEBUG
+        m_compositorThread = nullptr;
+#endif
         m_targetLayer = nullptr;
 
         m_currentBuffer = nullptr;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to