From 505e516ded94d39b8cddeb2cd3974c8cd57eadf6 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Fri, 23 May 2014 17:06:24 -0400 Subject: [PATCH] Bug 946879 - Guard compositable dumping with an environment variable. r=BenWa --- gfx/layers/Layers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/layers/Layers.cpp b/gfx/layers/Layers.cpp index 8a086247236e..a9d76cec4dcd 100644 --- a/gfx/layers/Layers.cpp +++ b/gfx/layers/Layers.cpp @@ -1262,7 +1262,7 @@ Layer::Dump(FILE* aFile, const char* aPrefix, bool aDumpHtml) DumpSelf(aFile, aPrefix); #ifdef MOZ_DUMP_PAINTING - if (AsLayerComposite() && AsLayerComposite()->GetCompositableHost()) { + if (gfxUtils::sDumpPainting && AsLayerComposite() && AsLayerComposite()->GetCompositableHost()) { AsLayerComposite()->GetCompositableHost()->Dump(aFile, aPrefix, aDumpHtml); } #endif