Bug 1145295 - Add some debug logging to try and trace an intermittent assertion. r=nical

This commit is contained in:
Kartikaya Gupta 2015-03-31 08:50:14 -04:00
parent 60135815cf
commit 80550010db

View File

@ -1249,6 +1249,14 @@ CompositorParent::ShadowLayersUpdated(LayerTransactionParent* aLayerTree,
mRootLayerTreeID, aPaintSequenceNumber);
}
#ifdef DEBUG
if (aTransactionId <= mPendingTransaction) {
// Logging added to help diagnose why we're triggering the assert below.
// See bug 1145295
printf_stderr("CRASH: aTransactionId %" PRIu64 " <= mPendingTransaction %" PRIu64 "\n",
aTransactionId, mPendingTransaction);
}
#endif
MOZ_ASSERT(aTransactionId > mPendingTransaction);
mPendingTransaction = aTransactionId;