diff --git a/gfx/layers/ipc/CompositorParent.cpp b/gfx/layers/ipc/CompositorParent.cpp index d53878b0ca2e..1cf692c5d383 100644 --- a/gfx/layers/ipc/CompositorParent.cpp +++ b/gfx/layers/ipc/CompositorParent.cpp @@ -342,7 +342,7 @@ CompositorVsyncScheduler::ScheduleComposition() // Used only for performance testing purposes PostCompositeTask(TimeStamp::Now()); } else { - SetNeedsComposite(true); + SetNeedsComposite(); } } @@ -366,13 +366,12 @@ CompositorVsyncScheduler::CancelCurrentSetNeedsCompositeTask() * How many skipped vsync events until we stop listening to vsync events? */ void -CompositorVsyncScheduler::SetNeedsComposite(bool aNeedsComposite) +CompositorVsyncScheduler::SetNeedsComposite() { if (!CompositorParent::IsInCompositorThread()) { MonitorAutoLock lock(mSetNeedsCompositeMonitor); mSetNeedsCompositeTask = NewRunnableMethod(this, - &CompositorVsyncScheduler::SetNeedsComposite, - aNeedsComposite); + &CompositorVsyncScheduler::SetNeedsComposite); ScheduleTask(mSetNeedsCompositeTask, 0); return; } else { @@ -380,7 +379,7 @@ CompositorVsyncScheduler::SetNeedsComposite(bool aNeedsComposite) mSetNeedsCompositeTask = nullptr; } - mNeedsComposite = aNeedsComposite; + mNeedsComposite = true; if (!mIsObservingVsync && mNeedsComposite) { ObserveVsync(); } diff --git a/gfx/layers/ipc/CompositorParent.h b/gfx/layers/ipc/CompositorParent.h index 00f3579453ec..80793630d254 100644 --- a/gfx/layers/ipc/CompositorParent.h +++ b/gfx/layers/ipc/CompositorParent.h @@ -101,7 +101,7 @@ class CompositorVsyncScheduler public: explicit CompositorVsyncScheduler(CompositorParent* aCompositorParent, nsIWidget* aWidget); bool NotifyVsync(TimeStamp aVsyncTimestamp); - void SetNeedsComposite(bool aSchedule); + void SetNeedsComposite(); void OnForceComposeToTarget(); void ScheduleTask(CancelableTask*, int); diff --git a/widget/gonk/GeckoTouchDispatcher.cpp b/widget/gonk/GeckoTouchDispatcher.cpp index e30286c198ab..60244c25fa57 100644 --- a/widget/gonk/GeckoTouchDispatcher.cpp +++ b/widget/gonk/GeckoTouchDispatcher.cpp @@ -105,7 +105,7 @@ void GeckoTouchDispatcher::NotifyTouch(MultiTouchInput& aTouch, TimeStamp aEventTime) { if (mCompositorVsyncScheduler) { - mCompositorVsyncScheduler->SetNeedsComposite(true); + mCompositorVsyncScheduler->SetNeedsComposite(); } if (aTouch.mType == MultiTouchInput::MULTITOUCH_MOVE) {