Bug 1456978 - Rename function to a more appropriate name. r?sotaro
MozReview-Commit-ID: 2mVFcPsK6oe
--- 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: