Bug 1465784 - Remove unnecessary render step with async-scene-building. r=sotaro

MozReview-Commit-ID: 8iOQHLhlcjA

--HG--
extra : rebase_source : 4dab621c8364d719ce895f6ab62d16c73b12bee7
This commit is contained in:
Kartikaya Gupta 2018-06-06 16:45:06 -04:00
parent c1fc73bb2d
commit 28ebbe606f

View File

@ -677,7 +677,11 @@ WebRenderBridgeParent::RecvSetDisplayList(const gfx::IntSize& aSize,
mApi->SendTransaction(txn);
ScheduleGenerateFrame();
if (!gfxPrefs::WebRenderAsyncSceneBuild()) {
// With async-scene-build enabled, we will trigger this after the scene
// build is done, so we don't need to do it here.
ScheduleGenerateFrame();
}
if (ShouldParentObserveEpoch()) {
mCompositorBridge->ObserveLayerUpdate(GetLayersId(), GetChildLayerObserverEpoch(), true);