# HG changeset patch # User Miko Mynttinen # Date 1523369268 -7200 # Node ID bb1d1bcb3e0683a4b05b2270717d8432e490cc66 # Parent 6ae0ed5773639a45c1bc29c97251e6ab1630e6c1 Bug 1452791 - Update WebRenderLayerManager mAnimationReadyTime in empty transactions r=kats MozReview-Commit-ID: 898pemO7YxO diff --git a/gfx/layers/wr/WebRenderLayerManager.cpp b/gfx/layers/wr/WebRenderLayerManager.cpp --- a/gfx/layers/wr/WebRenderLayerManager.cpp +++ b/gfx/layers/wr/WebRenderLayerManager.cpp @@ -187,16 +187,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 &&