Diff
Modified: trunk/Source/WebKit/ChangeLog (253156 => 253157)
--- trunk/Source/WebKit/ChangeLog 2019-12-05 18:56:26 UTC (rev 253156)
+++ trunk/Source/WebKit/ChangeLog 2019-12-05 19:26:29 UTC (rev 253157)
@@ -191,6 +191,27 @@
purposes. The equals methods allow the return vectors to use
appendIfNotContains.
+2019-12-04 Simon Fraser <[email protected]>
+
+ Minor RemoteLayerTree logging cleanup
+ https://bugs.webkit.org/show_bug.cgi?id=204865
+
+ Reviewed by Tim Horton.
+
+ Have the ::description() methods return Strings like everything else does.
+ Use LOG_WITH_STREAM() so we don't call description() unless the log channel is on.
+
+ * Shared/RemoteLayerTree/RemoteLayerTreeTransaction.h:
+ * Shared/RemoteLayerTree/RemoteLayerTreeTransaction.mm:
+ (WebKit::RemoteLayerTreeTransaction::dump const):
+ (WebKit::RemoteLayerTreeTransaction::description const):
+ * Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp:
+ (WebKit::RemoteScrollingCoordinatorTransaction::description const):
+ (WebKit::RemoteScrollingCoordinatorTransaction::dump const):
+ * Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.h:
+ * UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm:
+ (WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTree):
+
2019-12-04 Louie Livon-Bemel <[email protected]>
Add exclusion rule for text manipulation SPI to exclude based on element class
Modified: trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreeTransaction.h (253156 => 253157)
--- trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreeTransaction.h 2019-12-05 18:56:26 UTC (rev 253156)
+++ trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreeTransaction.h 2019-12-05 19:26:29 UTC (rev 253157)
@@ -193,7 +193,7 @@
void setLayerIDsWithNewlyUnreachableBackingStore(Vector<WebCore::GraphicsLayer::PlatformLayerID>);
#if !defined(NDEBUG) || !LOG_DISABLED
- WTF::CString description() const;
+ String description() const;
void dump() const;
#endif
Modified: trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreeTransaction.mm (253156 => 253157)
--- trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreeTransaction.mm 2019-12-05 18:56:26 UTC (rev 253156)
+++ trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreeTransaction.mm 2019-12-05 19:26:29 UTC (rev 253157)
@@ -893,10 +893,10 @@
void RemoteLayerTreeTransaction::dump() const
{
- fprintf(stderr, "%s", description().data());
+ fprintf(stderr, "%s", description().utf8().data());
}
-CString RemoteLayerTreeTransaction::description() const
+String RemoteLayerTreeTransaction::description() const
{
TextStream ts;
@@ -964,7 +964,7 @@
ts.endGroup();
- return ts.release().utf8();
+ return ts.release();
}
#endif // !defined(NDEBUG) || !LOG_DISABLED
Modified: trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp (253156 => 253157)
--- trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp 2019-12-05 18:56:26 UTC (rev 253156)
+++ trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp 2019-12-05 19:26:29 UTC (rev 253157)
@@ -768,7 +768,7 @@
recursiveDumpNodes(ts, *stateTree.rootStateNode(), changedPropertiesOnly);
}
-WTF::CString RemoteScrollingCoordinatorTransaction::description() const
+String RemoteScrollingCoordinatorTransaction::description() const
{
TextStream ts;
@@ -785,12 +785,12 @@
ts.endGroup();
- return ts.release().utf8();
+ return ts.release();
}
void RemoteScrollingCoordinatorTransaction::dump() const
{
- fprintf(stderr, "%s", description().data());
+ fprintf(stderr, "%s", description().utf8().data());
}
#endif
Modified: trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.h (253156 => 253157)
--- trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.h 2019-12-05 18:56:26 UTC (rev 253156)
+++ trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.h 2019-12-05 19:26:29 UTC (rev 253157)
@@ -45,7 +45,7 @@
static bool decode(IPC::Decoder&, RemoteScrollingCoordinatorTransaction&);
#if !defined(NDEBUG) || !LOG_DISABLED
- WTF::CString description() const;
+ String description() const;
void dump() const;
#endif
Modified: trunk/Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm (253156 => 253157)
--- trunk/Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm 2019-12-05 18:56:26 UTC (rev 253156)
+++ trunk/Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeDrawingAreaProxy.mm 2019-12-05 19:26:29 UTC (rev 253157)
@@ -192,8 +192,8 @@
{
TraceScope tracingScope(CommitLayerTreeStart, CommitLayerTreeEnd);
- LOG(RemoteLayerTree, "%s", layerTreeTransaction.description().data());
- LOG(RemoteLayerTree, "%s", scrollingTreeTransaction.description().data());
+ LOG_WITH_STREAM(RemoteLayerTree, stream << "RemoteLayerTreeDrawingAreaProxy::commitLayerTree transaction:" << layerTreeTransaction.description());
+ LOG_WITH_STREAM(RemoteLayerTree, stream << "RemoteLayerTreeDrawingAreaProxy::commitLayerTree scrolling tree:" << scrollingTreeTransaction.description());
ASSERT(layerTreeTransaction.transactionID() == m_lastVisibleTransactionID.next());
m_transactionIDForPendingCACommit = layerTreeTransaction.transactionID();