void VideoFrameContainer::Reset() { ClearCurrentFrame(true); Invalidate(); mIntrinsicSize = gfxIntSize(-1, -1); mPaintDelay = mozilla::TimeDuration(); mPaintTarget = mozilla::TimeStamp(); mImageContainer->ResetPaintCount(); }
void VideoFrameContainer::SetCurrentFrame(const gfx::IntSize& aIntrinsicSize, Image* aImage, const TimeStamp& aTargetTime) { if (aImage) { MutexAutoLock lock(mMutex); AutoTArray<ImageContainer::NonOwningImage,1> imageList; imageList.AppendElement( ImageContainer::NonOwningImage(aImage, aTargetTime, ++mFrameID)); SetCurrentFramesLocked(aIntrinsicSize, imageList); } else { ClearCurrentFrame(aIntrinsicSize); } }