Bug 1435022 - Remove more unused stuff. r?sotaro
MozReview-Commit-ID: I5XEUT9dmPT
--- 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();