Bug 1652986 - Restore ability to dump the WR display list interleaved with the the gecko DL. r=miko

The extra_data_offset wasn't being set properly in the built display list's
descriptor, so no items were being found. With that fixed it became evident
that we need to disable the display list item cache for dumping to work, since
we can't easily look up reuse items when doing the interleaved dumping. So
this patch also adds some machinery for that.

Differential Revision: https://phabricator.services.mozilla.com/D83778
This commit is contained in:
Kartikaya Gupta
2020-07-16 14:19:41 +00:00
parent 89434e38a2
commit a97d9d37f8
4 changed files with 42 additions and 2 deletions

View File

@@ -302,7 +302,9 @@ void WebRenderLayerManager::EndTransactionWithoutLayer(
bool containsSVGGroup = false;
bool dumpEnabled =
mWebRenderCommandBuilder.ShouldDumpDisplayList(aDisplayListBuilder);
Maybe<AutoDisplayItemCacheSuppressor> cacheSuppressor;
if (dumpEnabled) {
cacheSuppressor.emplace(&mDisplayItemCache);
printf_stderr("-- WebRender display list build --\n");
}