Bug 1456978 - Remove redundant construction of WindowId. r?sotaro draft
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 27 Apr 2018 07:41:03 -0400
changeset 789026 f47cffd517195527051d4409e103b45774fff62c
parent 789025 b1cf6fa68507100689d3dbd16d1473c33f1811d1
child 789027 fde3cf26e68f7bf8847e63ec4d2c1ffab9ac119b
push id108135
push userkgupta@mozilla.com
push dateFri, 27 Apr 2018 11:41:59 +0000
reviewerssotaro
bugs1456978
milestone61.0a1
Bug 1456978 - Remove redundant construction of WindowId. r?sotaro MozReview-Commit-ID: 2XiVcQJotRv
gfx/webrender_bindings/RenderThread.cpp
--- a/gfx/webrender_bindings/RenderThread.cpp
+++ b/gfx/webrender_bindings/RenderThread.cpp
@@ -518,22 +518,22 @@ WebRenderProgramCache::~WebRenderProgram
 } // namespace wr
 } // namespace mozilla
 
 extern "C" {
 
 static void NewFrameReady(mozilla::wr::WrWindowId aWindowId)
 {
   mozilla::wr::RenderThread::Get()->IncRenderingFrameCount(aWindowId);
-  mozilla::wr::RenderThread::Get()->NewFrameReady(mozilla::wr::WindowId(aWindowId));
+  mozilla::wr::RenderThread::Get()->NewFrameReady(aWindowId);
 }
 
 void wr_notifier_wake_up(mozilla::wr::WrWindowId aWindowId)
 {
-  mozilla::wr::RenderThread::Get()->WakeUp(mozilla::wr::WindowId(aWindowId));
+  mozilla::wr::RenderThread::Get()->WakeUp(aWindowId);
 }
 
 void wr_notifier_new_frame_ready(mozilla::wr::WrWindowId aWindowId)
 {
   NewFrameReady(aWindowId);
 }
 
 void wr_notifier_new_scroll_frame_ready(mozilla::wr::WrWindowId aWindowId, bool aCompositeNeeded)