Bug 1588987 - Do not trigger WR rendering during paused state r=nical
authorsotaro <sotaro.ikeda.g@gmail.com>
Wed, 16 Oct 2019 09:10:30 +0000
changeset 559168 3f55a2e620e469a319b079b968382f903170ed30
parent 559167 e350706464ea616e32b6308559f90cc744223b75
child 559169 0762557d4a9974cf325329a3064a325eab663e12
push id12175
push userccoroiu@mozilla.com
push dateThu, 17 Oct 2019 19:29:09 +0000
treeherdermozilla-beta@d333b6ef1fd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1588987
milestone71.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 1588987 - Do not trigger WR rendering during paused state r=nical Differential Revision: https://phabricator.services.mozilla.com/D49379
gfx/layers/wr/WebRenderBridgeParent.cpp
--- a/gfx/layers/wr/WebRenderBridgeParent.cpp
+++ b/gfx/layers/wr/WebRenderBridgeParent.cpp
@@ -2252,16 +2252,17 @@ void WebRenderBridgeParent::MaybeGenerat
   MOZ_ASSERT(IsRootWebRenderBridgeParent());
 
   if (CompositorBridgeParent* cbp = GetRootCompositorBridgeParent()) {
     // Skip WR render during paused state.
     if (cbp->IsPaused()) {
       TimeStamp now = TimeStamp::Now();
       cbp->NotifyPipelineRendered(mPipelineId, mWrEpoch, VsyncId(), now, now,
                                   now);
+      return;
     }
   }
 
   TimeStamp start = TimeStamp::Now();
   mAsyncImageManager->SetCompositionTime(start);
 
   wr::RenderRootArray<Maybe<wr::TransactionBuilder>> fastTxns;
   // Handle transaction that is related to DisplayList.