Bug 1452791 - Update WebRenderLayerManager mAnimationReadyTime in empty transactions r=kats
authorMiko Mynttinen <mikokm@gmail.com>
Tue, 10 Apr 2018 16:07:48 +0200
changeset 412606 bb1d1bcb3e0683a4b05b2270717d8432e490cc66
parent 412605 4c4719645fd9a93150e65911e5ed14ec1727e4e7
child 412607 704d18830c6d0776423b25a5d1ad49b75d0c94f7
push id33813
push userccoroiu@mozilla.com
push dateTue, 10 Apr 2018 21:54:55 +0000
treeherdermozilla-central@d42671c2e69d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1452791
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1452791 - Update WebRenderLayerManager mAnimationReadyTime in empty transactions r=kats MozReview-Commit-ID: 898pemO7YxO
gfx/layers/wr/WebRenderLayerManager.cpp
--- a/gfx/layers/wr/WebRenderLayerManager.cpp
+++ b/gfx/layers/wr/WebRenderLayerManager.cpp
@@ -186,16 +186,19 @@ WebRenderLayerManager::EndEmptyTransacti
     // because we need to repaint the window overlay which we only currently
     // support in a full transaction.
     // XXX If we end up hitting this branch a lot we can probably optimize it
     // by just sending an updated window overlay image instead of rebuilding
     // the entire WR display list.
     return false;
   }
 
+  // Since we don't do repeat transactions right now, just set the time
+  mAnimationReadyTime = TimeStamp::Now();
+
   // With the WebRenderLayerManager we reject attempts to set most kind of
   // "pending data" for empty transactions. Any place that attempts to update
   // transforms or scroll offset, for example, will get failure return values
   // back, and will fall back to a full transaction. Therefore the only piece
   // of "pending" information we need to send in an empty transaction are the
   // APZ focus state and canvases's CompositableOperations.
 
   if (aFlags & EndTransactionFlags::END_NO_COMPOSITE &&