Bug 1662800 - Make the WebRenderScrollData dump nicer. r=botond

This makes the WebRenderScrollData dump more analogous to the layer tree dump,
in that it prints the layer entries one per line showing in-order nested tree
structure. It also omits printing things if they're not important.

Differential Revision: https://phabricator.services.mozilla.com/D96312
This commit is contained in:
Kartikaya Gupta
2020-11-07 19:41:45 +00:00
parent 2b54e54b5b
commit 4de43276e5
3 changed files with 91 additions and 33 deletions

View File

@@ -377,7 +377,9 @@ void WebRenderLayerManager::EndTransactionWithoutLayer(
}
mScrollData.SetPaintSequenceNumber(mPaintSequenceNumber);
if (dumpEnabled) {
mScrollData.Dump();
std::stringstream str;
str << mScrollData;
print_stderr(str);
}
}