mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1237160: Do not count frames not composited as dropped. r=cpearce
This is a partial reversal of bug 1230338. We can't distinguish frames that are never composited because the media element is hidden from the frames genuinely dropped due to machine slowness. So until we can distinguish them, let's not report them as dropped. MozReview-Commit-ID: ERV8Luaxp3F
This commit is contained in:
parent
a881759b48
commit
41241eef26
@ -34,7 +34,6 @@ VideoSink::VideoSink(AbstractThread* aThread,
|
||||
, mProducerID(ImageContainer::AllocateProducerID())
|
||||
, mFrameStats(aFrameStats)
|
||||
, mVideoFrameEndTime(-1)
|
||||
, mOldDroppedCount(0)
|
||||
, mHasVideo(false)
|
||||
, mUpdateScheduler(aThread)
|
||||
, mVideoQueueSendToCompositorSize(aVQueueSentToCompositerSize)
|
||||
@ -364,10 +363,6 @@ VideoSink::RenderVideoFrames(int32_t aMaxFrames,
|
||||
frame->mTime, frame->mFrameID, VideoQueue().GetSize());
|
||||
}
|
||||
mContainer->SetCurrentFrames(frames[0]->As<VideoData>()->mDisplay, images);
|
||||
|
||||
uint32_t dropped = mContainer->GetDroppedImageCount();
|
||||
mFrameStats.NotifyDecodedFrames(0, 0, dropped - mOldDroppedCount);
|
||||
mOldDroppedCount = dropped;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -126,8 +126,6 @@ private:
|
||||
// in microseconds.
|
||||
int64_t mVideoFrameEndTime;
|
||||
|
||||
uint32_t mOldDroppedCount;
|
||||
|
||||
// Event listeners for VideoQueue
|
||||
MediaEventListener mPushListener;
|
||||
MediaEventListener mFinishListener;
|
||||
|
Loading…
Reference in New Issue
Block a user