Bug 1244684 - Call PostPresent after ClientLayerManager::EndTransactionInternal to fix busted FX_TAB_SWITCH_TOTAL_MS probe. r?BenWa draft
authorMike Conley <mconley@mozilla.com>
Fri, 19 Feb 2016 19:49:37 -0500
changeset 332689 1fb17d48b29d0f9c1880a5812f0751e74403546f
parent 332688 d3d8c9d175f96214e4c87082ab632f20ea1338a4
child 514584 b604ee85fd99b0a6287f0b60abc589f31fcf9847
push id11205
push usermconley@mozilla.com
push dateSat, 20 Feb 2016 01:45:17 +0000
reviewersBenWa
bugs1244684
milestone47.0a1
Bug 1244684 - Call PostPresent after ClientLayerManager::EndTransactionInternal to fix busted FX_TAB_SWITCH_TOTAL_MS probe. r?BenWa MozReview-Commit-ID: Cnce3M1l4zl
gfx/layers/client/ClientLayerManager.cpp
--- a/gfx/layers/client/ClientLayerManager.cpp
+++ b/gfx/layers/client/ClientLayerManager.cpp
@@ -290,16 +290,18 @@ ClientLayerManager::EndTransactionIntern
 
   mPaintedLayerCallback = nullptr;
   mPaintedLayerCallbackData = nullptr;
 
   // Go back to the construction phase if the transaction isn't complete.
   // Layout will update the layer tree and call EndTransaction().
   mPhase = mTransactionIncomplete ? PHASE_CONSTRUCTION : PHASE_NONE;
 
+  PostPresent();
+
   NS_ASSERTION(!aCallback || !mTransactionIncomplete,
                "If callback is not null, transaction must be complete");
 
   if (gfxPlatform::GetPlatform()->DidRenderingDeviceReset()) {
     FrameLayerBuilder::InvalidateAllLayers(this);
   }
 
   return !mTransactionIncomplete;