Bug 1435022 - Remove more unused stuff. r?sotaro draft
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 01 Feb 2018 16:29:08 -0500
changeset 750303 e4959a235c6a0391f54c7c2e5b8503412df16e7e
parent 750302 1302d13f5c44e6e81e003ea0052a6ae41a31e5c6
push id97612
push userkgupta@mozilla.com
push dateThu, 01 Feb 2018 21:30:35 +0000
reviewerssotaro
bugs1435022
milestone60.0a1
Bug 1435022 - Remove more unused stuff. r?sotaro MozReview-Commit-ID: I5XEUT9dmPT
gfx/layers/ipc/CompositorVsyncScheduler.cpp
gfx/layers/ipc/CompositorVsyncScheduler.h
--- a/gfx/layers/ipc/CompositorVsyncScheduler.cpp
+++ b/gfx/layers/ipc/CompositorVsyncScheduler.cpp
@@ -230,18 +230,16 @@ CompositorVsyncScheduler::Composite(Time
     if (mVsyncSchedulerOwner->IsPendingComposite()) {
       // If previous composite is still on going, finish it and wait for the
       // next vsync.
       mVsyncSchedulerOwner->FinishPendingComposite();
       return;
     }
   }
 
-  DispatchTouchEvents(aVsyncTimestamp);
-
   if (mNeedsComposite || mAsapScheduling) {
     mNeedsComposite = 0;
     mLastCompose = aVsyncTimestamp;
 
     // Tell the owner to do a composite
     mVsyncSchedulerOwner->CompositeToTarget(nullptr, nullptr);
 
     mVsyncNotificationsSkipped = 0;
@@ -300,21 +298,16 @@ void
 CompositorVsyncScheduler::UnobserveVsync()
 {
   MOZ_ASSERT(CompositorThreadHolder::IsInCompositorThread());
   mWidget->ObserveVsync(nullptr);
   mIsObservingVsync = false;
 }
 
 void
-CompositorVsyncScheduler::DispatchTouchEvents(TimeStamp aVsyncTimestamp)
-{
-}
-
-void
 CompositorVsyncScheduler::DispatchVREvents(TimeStamp aVsyncTimestamp)
 {
   {
     MonitorAutoLock lock(mCurrentVRListenerTaskMonitor);
     mCurrentVRListenerTask = nullptr;
   }
   // This only allows to be called by CompositorVsyncScheduler::PostVRTask()
   // When the process is going to shutdown, the runnable has chance to be executed
--- a/gfx/layers/ipc/CompositorVsyncScheduler.h
+++ b/gfx/layers/ipc/CompositorVsyncScheduler.h
@@ -14,19 +14,16 @@
 #include "mozilla/RefPtr.h"             // for RefPtr
 #include "mozilla/TimeStamp.h"          // for TimeStamp
 #include "mozilla/gfx/Point.h"          // for IntSize
 #include "mozilla/VsyncDispatcher.h"
 #include "mozilla/widget/CompositorWidget.h"
 #include "nsISupportsImpl.h"
 
 
-class MessageLoop;
-class nsIWidget;
-
 namespace mozilla {
 
 class CancelableRunnable;
 class Runnable;
 
 namespace gfx {
 class DrawTarget;
 } // namespace gfx
@@ -102,20 +99,19 @@ private:
   // Post a task to run DispatchVREvents() on the VR thread, if there isn't
   // such a task already queued. Can be called from any thread.
   void PostVRTask(TimeStamp aTimestamp);
 
   // This gets run at vsync time and "does" a composite (which really means
   // update internal state and call the owner to do the composite).
   void Composite(TimeStamp aVsyncTimestamp);
 
-  void NotifyCompositeTaskExecuted();
   void ObserveVsync();
   void UnobserveVsync();
-  void DispatchTouchEvents(TimeStamp aVsyncTimestamp);
+
   void DispatchVREvents(TimeStamp aVsyncTimestamp);
 
   class Observer final : public VsyncObserver
   {
   public:
     explicit Observer(CompositorVsyncScheduler* aOwner);
     virtual bool NotifyVsync(TimeStamp aVsyncTimestamp) override;
     void Destroy();