Title: [291333] trunk/Source/WebKit
Revision
291333
Author
[email protected]
Date
2022-03-15 23:07:28 -0700 (Tue, 15 Mar 2022)

Log Message

REGRESSION (r291191): [iOS] ASSERTION FAILED: m_contentsBufferHandle in WebKit::RemoteLayerBackingStore::paintContents()
https://bugs.webkit.org/show_bug.cgi?id=237922

Reviewed by Geoffrey Garen.

The assertion added in r291191 is incorrect. With that change, we end up calling
RemoteLayerBackingStore::paintContents() on WebGL layers (which use delegated display)
when we used to just early return from display(). So it's OK for m_frontBuffer.imageBuffer
to be null on these layers.

* Shared/RemoteLayerTree/RemoteLayerBackingStore.mm:
(WebKit::RemoteLayerBackingStore::paintContents):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (291332 => 291333)


--- trunk/Source/WebKit/ChangeLog	2022-03-16 05:35:12 UTC (rev 291332)
+++ trunk/Source/WebKit/ChangeLog	2022-03-16 06:07:28 UTC (rev 291333)
@@ -1,3 +1,18 @@
+2022-03-15  Simon Fraser  <[email protected]>
+
+        REGRESSION (r291191): [iOS] ASSERTION FAILED: m_contentsBufferHandle in WebKit::RemoteLayerBackingStore::paintContents()
+        https://bugs.webkit.org/show_bug.cgi?id=237922
+
+        Reviewed by Geoffrey Garen.
+
+        The assertion added in r291191 is incorrect. With that change, we end up calling
+        RemoteLayerBackingStore::paintContents() on WebGL layers (which use delegated display)
+        when we used to just early return from display(). So it's OK for m_frontBuffer.imageBuffer
+        to be null on these layers.
+
+        * Shared/RemoteLayerTree/RemoteLayerBackingStore.mm:
+        (WebKit::RemoteLayerBackingStore::paintContents):
+
 2022-03-15  Eric Carlson  <[email protected]>
 
         Video poster disappears prematurely on play, leaving transparent video element.

Modified: trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm (291332 => 291333)


--- trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm	2022-03-16 05:35:12 UTC (rev 291332)
+++ trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm	2022-03-16 06:07:28 UTC (rev 291333)
@@ -351,10 +351,8 @@
 
 void RemoteLayerBackingStore::paintContents()
 {
-    if (!m_frontBuffer.imageBuffer) {
-        ASSERT(m_contentsBufferHandle);
+    if (!m_frontBuffer.imageBuffer)
         return;
-    }
 
     if (m_dirtyRegion.isEmpty() || m_size.isEmpty())
         return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to