Bug 1410183 - Replace the useless layers-dump call with a slightly more useful if-0 block. r?jrmuizel
MozReview-Commit-ID: AEqJEiLZjmx
--- a/gfx/layers/wr/WebRenderLayerManager.cpp
+++ b/gfx/layers/wr/WebRenderLayerManager.cpp
@@ -246,19 +246,21 @@ WebRenderLayerManager::EndTransactionWit
nsDisplayListBuilder* aDisplayListBuilder)
{
MOZ_ASSERT(aDisplayList && aDisplayListBuilder);
WrBridge()->RemoveExpiredFontKeys();
AUTO_PROFILER_TRACING("Paint", "RenderLayers");
mTransactionIncomplete = false;
- if (gfxPrefs::LayersDump()) {
- this->Dump();
- }
+#if 0
+ // Useful for debugging, it dumps the display list *before* we try to build
+ // WR commands from it
+ nsFrame::PrintDisplayList(aDisplayListBuilder, *aDisplayList);
+#endif
// Since we don't do repeat transactions right now, just set the time
mAnimationReadyTime = TimeStamp::Now();
WrBridge()->BeginTransaction();
DiscardCompositorAnimations();
LayoutDeviceIntSize size = mWidget->GetClientSize();