Title: [291780] trunk/Source/WebKit
- Revision
- 291780
- Author
- [email protected]
- Date
- 2022-03-23 19:28:47 -0700 (Wed, 23 Mar 2022)
Log Message
REGRESSION (248692@main?): [iOS] ASSERTION FAILED: m_layer->owner()->platformCALayerDelegatesDisplay(m_layer) in WebKit::RemoteLayerBackingStore::paintContents()
https://bugs.webkit.org/show_bug.cgi?id=238277
<rdar://problem/90715046>
Reviewed by Tim Horton.
Empty backing store (height or width of zero) never need display; ImageBuffer allocation
with empty sizes always returns null anyway.
* Shared/RemoteLayerTree/RemoteLayerBackingStore.mm:
(WebKit::RemoteLayerBackingStore::needsDisplay const):
* Shared/RemoteLayerTree/RemoteLayerBackingStoreCollection.mm:
(WebKit::RemoteLayerBackingStoreCollection::backingStoreNeedsDisplay):
* Shared/RemoteLayerTree/RemoteLayerWithRemoteRenderingBackingStoreCollection.mm:
(WebKit::RemoteLayerWithRemoteRenderingBackingStoreCollection::backingStoreNeedsDisplay):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (291779 => 291780)
--- trunk/Source/WebKit/ChangeLog 2022-03-24 01:40:35 UTC (rev 291779)
+++ trunk/Source/WebKit/ChangeLog 2022-03-24 02:28:47 UTC (rev 291780)
@@ -1,3 +1,21 @@
+2022-03-23 Simon Fraser <[email protected]>
+
+ REGRESSION (248692@main?): [iOS] ASSERTION FAILED: m_layer->owner()->platformCALayerDelegatesDisplay(m_layer) in WebKit::RemoteLayerBackingStore::paintContents()
+ https://bugs.webkit.org/show_bug.cgi?id=238277
+ <rdar://problem/90715046>
+
+ Reviewed by Tim Horton.
+
+ Empty backing store (height or width of zero) never need display; ImageBuffer allocation
+ with empty sizes always returns null anyway.
+
+ * Shared/RemoteLayerTree/RemoteLayerBackingStore.mm:
+ (WebKit::RemoteLayerBackingStore::needsDisplay const):
+ * Shared/RemoteLayerTree/RemoteLayerBackingStoreCollection.mm:
+ (WebKit::RemoteLayerBackingStoreCollection::backingStoreNeedsDisplay):
+ * Shared/RemoteLayerTree/RemoteLayerWithRemoteRenderingBackingStoreCollection.mm:
+ (WebKit::RemoteLayerWithRemoteRenderingBackingStoreCollection::backingStoreNeedsDisplay):
+
2022-03-23 Sihui Liu <[email protected]>
[ BigSur+ Debug wk2 EWS ] imported/w3c/web-platform-tests/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/quirks.window.html is a flaky crash
Modified: trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm (291779 => 291780)
--- trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm 2022-03-24 01:40:35 UTC (rev 291779)
+++ trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStore.mm 2022-03-24 02:28:47 UTC (rev 291780)
@@ -296,7 +296,7 @@
}
bool needsDisplay = collection->backingStoreNeedsDisplay(*this);
- LOG_WITH_STREAM(RemoteRenderingBufferVolatility, stream << "RemoteLayerBackingStore " << m_layer->layerID() << " needsDisplay() - needsDisplay " << needsDisplay);
+ LOG_WITH_STREAM(RemoteRenderingBufferVolatility, stream << "RemoteLayerBackingStore " << m_layer->layerID() << " size " << size() << " needsDisplay() - needsDisplay " << needsDisplay);
return needsDisplay;
}
Modified: trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStoreCollection.mm (291779 => 291780)
--- trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStoreCollection.mm 2022-03-24 01:40:35 UTC (rev 291779)
+++ trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerBackingStoreCollection.mm 2022-03-24 02:28:47 UTC (rev 291780)
@@ -49,6 +49,9 @@
bool RemoteLayerBackingStoreCollection::backingStoreNeedsDisplay(const RemoteLayerBackingStore& backingStore)
{
+ if (backingStore.size().isEmpty())
+ return false;
+
auto frontBuffer = backingStore.bufferForType(RemoteLayerBackingStore::BufferType::Front);
if (!frontBuffer)
return true;
Modified: trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerWithRemoteRenderingBackingStoreCollection.mm (291779 => 291780)
--- trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerWithRemoteRenderingBackingStoreCollection.mm 2022-03-24 01:40:35 UTC (rev 291779)
+++ trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerWithRemoteRenderingBackingStoreCollection.mm 2022-03-24 02:28:47 UTC (rev 291780)
@@ -46,6 +46,9 @@
bool RemoteLayerWithRemoteRenderingBackingStoreCollection::backingStoreNeedsDisplay(const RemoteLayerBackingStore& backingStore)
{
+ if (backingStore.size().isEmpty())
+ return false;
+
auto frontBuffer = backingStore.bufferForType(RemoteLayerBackingStore::BufferType::Front);
if (!frontBuffer)
return true;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes