Bug 1507680 - Record detailed statistics about slow WebRender frames in about:support. r=jrmuizel
MozReview-Commit-ID: 84SjN1RvvAA Differential Revision: https://phabricator.services.mozilla.com/D12372
This commit is contained in:
@@ -236,7 +236,12 @@ WebRenderLayerManager::EndEmptyTransaction(EndTransactionFlags aFlags)
|
||||
|
||||
mWebRenderCommandBuilder.EmptyTransaction();
|
||||
|
||||
// Get the time of when the refresh driver start its tick (if available), otherwise
|
||||
// use the time of when LayerManager::BeginTransaction was called.
|
||||
TimeStamp refreshStart = mTransactionIdAllocator->GetTransactionStart();
|
||||
if (!refreshStart) {
|
||||
refreshStart = mTransactionStart;
|
||||
}
|
||||
|
||||
// Skip the synchronization for buffer since we also skip the painting during
|
||||
// device-reset status.
|
||||
@@ -342,7 +347,13 @@ WebRenderLayerManager::EndTransactionWithoutLayer(nsDisplayList* aDisplayList,
|
||||
ClearPendingScrollInfoUpdate();
|
||||
|
||||
mLatestTransactionId = mTransactionIdAllocator->GetTransactionId(/*aThrottle*/ true);
|
||||
|
||||
// Get the time of when the refresh driver start its tick (if available), otherwise
|
||||
// use the time of when LayerManager::BeginTransaction was called.
|
||||
TimeStamp refreshStart = mTransactionIdAllocator->GetTransactionStart();
|
||||
if (!refreshStart) {
|
||||
refreshStart = mTransactionStart;
|
||||
}
|
||||
|
||||
if (mAsyncResourceUpdates) {
|
||||
if (resourceUpdates.IsEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user