зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1143575. Remove unused VideoFrameContainer::Reset. r=nical
--HG-- extra : commitid : 4F7BQzgug3q extra : rebase_source : 0cdac4f1f201afb0c1168c618febd6f0439e0318
This commit is contained in:
Родитель
c85ce2add1
Коммит
4dc4994e87
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче