Bug 1245400 - P5. Report frames dropped with WebRender. r=nical
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 17 Jul 2018 01:12:35 +0200
changeset 481152 3ef0a331591001bf9bcf5b31ad7fa9b89749e690
parent 481151 cfd2152bd3311bffc820d52832079676db12e791
child 481153 2f9c90bd0f2f12f580c59602893cb430acda68a0
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewersnical
bugs1245400
milestone63.0a1
Bug 1245400 - P5. Report frames dropped with WebRender. r=nical Differential Revision: https://phabricator.services.mozilla.com/D2182
gfx/layers/wr/WebRenderImageHost.h
--- a/gfx/layers/wr/WebRenderImageHost.h
+++ b/gfx/layers/wr/WebRenderImageHost.h
@@ -61,16 +61,21 @@ public:
   virtual already_AddRefed<gfx::DataSourceSurface> GetAsSurface() override;
 
   virtual bool Lock() override;
 
   virtual void Unlock() override;
 
   virtual void CleanupResources() override;
 
+  uint32_t GetDroppedFrames() override
+  {
+    return GetDroppedFramesAndReset();
+  }
+
   virtual WebRenderImageHost* AsWebRenderImageHost() override { return this; }
 
   TextureHost* GetAsTextureHostForComposite();
 
   void SetWrBridge(WebRenderBridgeParent* aWrBridge);
 
   void ClearWrBridge();