Bug 1456978 - Rename function to a more appropriate name. r=sotaro
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 27 Apr 2018 07:41:03 -0400
changeset 469610 ca63e4de54791f32bd7896ebfd85747c56526625
parent 469609 3f84124ca07be0314a6a84a27479c241bf56f19f
child 469611 d5e9d984dcc67576848a20b85716f9cfad675bb6
push id9174
push userarchaeopteryx@coole-files.de
push dateMon, 30 Apr 2018 15:33:30 +0000
treeherdermozilla-beta@1b1a8ab75f1f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssotaro
bugs1456978
milestone61.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 1456978 - Rename function to a more appropriate name. r=sotaro MozReview-Commit-ID: 2mVFcPsK6oe
gfx/webrender_bindings/RenderThread.cpp
gfx/webrender_bindings/RenderThread.h
--- a/gfx/webrender_bindings/RenderThread.cpp
+++ b/gfx/webrender_bindings/RenderThread.cpp
@@ -187,17 +187,17 @@ RenderThread::NewFrameReady(wr::WindowId
     return;
   }
 
   if (IsDestroyed(aWindowId)) {
     return;
   }
 
   UpdateAndRender(aWindowId);
-  DecPendingFrameCount(aWindowId);
+  FrameRenderingComplete(aWindowId);
 }
 
 void
 RenderThread::WakeUp(wr::WindowId aWindowId)
 {
   if (mHasShutdown) {
     return;
   }
@@ -394,17 +394,17 @@ RenderThread::IncRenderingFrameCount(wr:
     return;
   }
   // Update rendering frame count.
   info.mRenderingCount = info.mRenderingCount + 1;
   mWindowInfos.Put(AsUint64(aWindowId), info);
 }
 
 void
-RenderThread::DecPendingFrameCount(wr::WindowId aWindowId)
+RenderThread::FrameRenderingComplete(wr::WindowId aWindowId)
 {
   MutexAutoLock lock(mFrameCountMapLock);
   // Get the old count.
   WindowInfo info;
   if (!mWindowInfos.Get(AsUint64(aWindowId), &info)) {
     MOZ_ASSERT(false);
     return;
   }
--- a/gfx/webrender_bindings/RenderThread.h
+++ b/gfx/webrender_bindings/RenderThread.h
@@ -150,17 +150,17 @@ public:
   void SetDestroyed(wr::WindowId aWindowId);
   /// Can be called from any thread.
   bool TooManyPendingFrames(wr::WindowId aWindowId);
   /// Can be called from any thread.
   void IncPendingFrameCount(wr::WindowId aWindowId);
   /// Can be called from any thread.
   void IncRenderingFrameCount(wr::WindowId aWindowId);
   /// Can be called from any thread.
-  void DecPendingFrameCount(wr::WindowId aWindowId);
+  void FrameRenderingComplete(wr::WindowId aWindowId);
 
   /// Can be called from any thread.
   WebRenderThreadPool& ThreadPool() { return mThreadPool; }
 
   /// Can only be called from the render thread.
   WebRenderProgramCache* ProgramCache();
 
 private: