Bug 1458414 - Call DiscardCompositorAnimations() after BuildWebRenderCommands(). r=kats

Since bug 1457448 we can clear discarded animations on the same transaction where we send
animations to the compositor.

MozReview-Commit-ID: 4BYsCgA98S0
This commit is contained in:
Hiroyuki Ikezoe
2018-05-02 12:14:59 +09:00
parent 19eb18394f
commit 6d3c63be1b

View File

@@ -264,7 +264,6 @@ WebRenderLayerManager::EndTransactionWithoutLayer(nsDisplayList* aDisplayList,
mAnimationReadyTime = TimeStamp::Now();
WrBridge()->BeginTransaction();
DiscardCompositorAnimations();
LayoutDeviceIntSize size = mWidget->GetClientSize();
wr::LayoutSize contentSize { (float)size.width, (float)size.height };
@@ -279,6 +278,8 @@ WebRenderLayerManager::EndTransactionWithoutLayer(nsDisplayList* aDisplayList,
contentSize,
aFilters);
DiscardCompositorAnimations();
mWidget->AddWindowOverlayWebRenderCommands(WrBridge(), builder, resourceUpdates);
mWindowOverlayChanged = false;