Bug 1105832 - Also dump inactive layer managers when display list dumping is enabled. r=mattwoodrow

--HG--
extra : source : 882bae94b575a31209a6c4b2864a9daf5b027f76
This commit is contained in:
Markus Stange 2015-09-25 18:37:30 -04:00
Родитель ad8a9d47f3
Коммит d2decdaaf6
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -4484,6 +4484,15 @@ FrameLayerBuilder::AddPaintedDisplayItem(PaintedLayerData* aLayerData,
layerBuilder->WillEndTransaction(); layerBuilder->WillEndTransaction();
tempManager->AbortTransaction(); tempManager->AbortTransaction();
#ifdef MOZ_DUMP_PAINTING
if (gfxUtils::DumpDisplayList() || gfxUtils::sDumpPainting) {
fprintf_stderr(gfxUtils::sDumpPaintFile, "Basic layer tree for painting contents of display item %s(%p):\n", aItem->Name(), aItem->Frame());
std::stringstream stream;
tempManager->Dump(stream, "", gfxUtils::sDumpPaintingToFile);
fprint_stderr(gfxUtils::sDumpPaintFile, stream); // not a typo, fprint_stderr declared in LayersLogging.h
}
#endif
nsIntPoint offset = GetLastPaintOffset(layer) - GetTranslationForPaintedLayer(layer); nsIntPoint offset = GetLastPaintOffset(layer) - GetTranslationForPaintedLayer(layer);
props->MoveBy(-offset); props->MoveBy(-offset);
nsIntRegion invalid = props->ComputeDifferences(tmpLayer, nullptr); nsIntRegion invalid = props->ComputeDifferences(tmpLayer, nullptr);