From 4dc4994e8726647680b48e03775eaf8cb54ffdbb Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Mon, 23 Mar 2015 23:33:51 +1300 Subject: [PATCH] Bug 1143575. Remove unused VideoFrameContainer::Reset. r=nical --HG-- extra : commitid : 4F7BQzgug3q extra : rebase_source : 0cdac4f1f201afb0c1168c618febd6f0439e0318 --- dom/media/VideoFrameContainer.cpp | 10 ---------- dom/media/VideoFrameContainer.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/dom/media/VideoFrameContainer.cpp b/dom/media/VideoFrameContainer.cpp index b312d07a2945..77d6417b6268 100644 --- a/dom/media/VideoFrameContainer.cpp +++ b/dom/media/VideoFrameContainer.cpp @@ -65,16 +65,6 @@ void VideoFrameContainer::SetCurrentFrame(const gfxIntSize& aIntrinsicSize, mPaintTarget = aTargetTime; } -void VideoFrameContainer::Reset() -{ - ClearCurrentFrame(true); - Invalidate(); - mIntrinsicSize = gfxIntSize(-1, -1); - mPaintDelay = mozilla::TimeDuration(); - mPaintTarget = mozilla::TimeStamp(); - mImageContainer->ResetPaintCount(); -} - void VideoFrameContainer::ClearCurrentFrame(bool aResetSize) { MutexAutoLock lock(mMutex); diff --git a/dom/media/VideoFrameContainer.h b/dom/media/VideoFrameContainer.h index cf749d8d0643..2d3ee158f7c1 100644 --- a/dom/media/VideoFrameContainer.h +++ b/dom/media/VideoFrameContainer.h @@ -49,8 +49,6 @@ public: B2G_ACL_EXPORT void SetCurrentFrame(const gfxIntSize& aIntrinsicSize, Image* aImage, TimeStamp aTargetTime); void ClearCurrentFrame(bool aResetSize = false); - // Reset the VideoFrameContainer - void Reset(); // Time in seconds by which the last painted video frame was late by. // E.g. if the last painted frame should have been painted at time t, // but was actually painted at t+n, this returns n in seconds. Threadsafe.