Bug 961289 - Log APZC tree parent links on compositor side for APZ testing. r=kats

--HG--
extra : source : e39af36df0d1d79a039bdd0f79a1fd3f61a544d0
This commit is contained in:
Botond Ballo 2014-04-21 17:47:33 -04:00
parent e60052ea65
commit 3e1e08d369

View File

@ -267,6 +267,17 @@ APZCTreeManager::UpdatePanZoomControllerTree(CompositorParent* aCompositor,
apzc->MakeRoot();
}
// For testing, log the parent scroll id of every APZC that has a
// parent. This allows test code to reconstruct the APZC tree.
// Note that we currently only do this for APZCs in the layer tree
// that originated the update, because the only identifying information
// we are logging about APZCs is the scroll id, and otherwise we could
// confuse APZCs from different layer trees with the same scroll id.
if (aLayersId == aOriginatingLayersId && apzc->GetParent()) {
aPaintLogger.LogTestData(metrics.GetScrollId(), "parentScrollId",
apzc->GetParent()->GetGuid().mScrollId);
}
// Let this apzc be the parent of other controllers when we recurse downwards
aParent = apzc;