Bug 1437036 - Implement GetLastTransactionId in WebRenderLayerManager. r=hiro
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 14 May 2018 08:53:52 -0400
changeset 418079 37746bbf1d1381346081e9606eca82ee4d83408d
parent 418078 7914da4c28314a9356678e9234d8d7b6acd32e47
child 418080 b18fc4703cbe9dd818419a0561d9a160c5ad6846
child 418176 c96b4323d7b8149d7737723e1a4937447cb46c18
push id63935
push userkgupta@mozilla.com
push dateMon, 14 May 2018 12:56:34 +0000
treeherderautoland@37746bbf1d13 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershiro
bugs1437036
milestone62.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 1437036 - Implement GetLastTransactionId in WebRenderLayerManager. r=hiro MozReview-Commit-ID: CLymsb5w3pk
gfx/layers/wr/WebRenderLayerManager.cpp
gfx/layers/wr/WebRenderLayerManager.h
--- a/gfx/layers/wr/WebRenderLayerManager.cpp
+++ b/gfx/layers/wr/WebRenderLayerManager.cpp
@@ -565,16 +565,22 @@ WebRenderLayerManager::SetTransactionIdA
     if (aAllocator) {
       aAllocator->ResetInitialTransactionId(mTransactionIdAllocator->LastTransactionId());
     }
   }
 
   mTransactionIdAllocator = aAllocator;
 }
 
+TransactionId
+WebRenderLayerManager::GetLastTransactionId()
+{
+  return mLatestTransactionId;
+}
+
 void
 WebRenderLayerManager::AddDidCompositeObserver(DidCompositeObserver* aObserver)
 {
   if (!mDidCompositeObservers.Contains(aObserver)) {
     mDidCompositeObservers.AppendElement(aObserver);
   }
 }
 
--- a/gfx/layers/wr/WebRenderLayerManager.h
+++ b/gfx/layers/wr/WebRenderLayerManager.h
@@ -97,16 +97,17 @@ public:
                             const mozilla::TimeStamp& aCompositeStart,
                             const mozilla::TimeStamp& aCompositeEnd) override;
 
   virtual void ClearCachedResources(Layer* aSubtree = nullptr) override;
   virtual void UpdateTextureFactoryIdentifier(const TextureFactoryIdentifier& aNewIdentifier) override;
   virtual TextureFactoryIdentifier GetTextureFactoryIdentifier() override;
 
   virtual void SetTransactionIdAllocator(TransactionIdAllocator* aAllocator) override;
+  virtual TransactionId GetLastTransactionId() override;
 
   virtual void AddDidCompositeObserver(DidCompositeObserver* aObserver) override;
   virtual void RemoveDidCompositeObserver(DidCompositeObserver* aObserver) override;
 
   virtual void FlushRendering() override;
   virtual void WaitOnTransactionProcessed() override;
 
   virtual void SendInvalidRegion(const nsIntRegion& aRegion) override;