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
Родитель 1b1fed738d
Коммит 2e3b0912f5
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -1121,6 +1121,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;