Bug 1321885 - Show the number of OMT animations on a layer in the layer dump. r=mstange
MozReview-Commit-ID: KmG0TKEKZRR
--- a/gfx/layers/Layers.cpp
+++ b/gfx/layers/Layers.cpp
@@ -1966,16 +1966,19 @@ Layer::PrintInfo(std::stringstream& aStr
aStream << nsPrintfCString(" [mMaskLayer=%p]", mMaskLayer.get()).get();
}
for (uint32_t i = 0; i < mScrollMetadata.Length(); i++) {
if (!mScrollMetadata[i].IsDefault()) {
aStream << nsPrintfCString(" [metrics%d=", i).get();
AppendToString(aStream, mScrollMetadata[i], "", "]");
}
}
+ if (!mAnimations.IsEmpty()) {
+ aStream << nsPrintfCString(" [%d animations]", (int) mAnimations.Length()).get();
+ }
}
// The static helper function sets the transform matrix into the packet
static void
DumpTransform(layerscope::LayersPacket::Layer::Matrix* aLayerMatrix, const Matrix4x4& aMatrix)
{
aLayerMatrix->set_is2d(aMatrix.Is2D());
if (aMatrix.Is2D()) {