Bug 1520269 - Use the most recently skipped vsync id for catch up composites. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D17598

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matt Woodrow 2019-01-25 05:09:46 +00:00
parent 3a7fba9cb8
commit becd2488d6

View File

@ -1688,13 +1688,8 @@ void WebRenderBridgeParent::CompositeToTarget(VsyncId aId,
if (mSkippedComposite ||
wr::RenderThread::Get()->TooManyPendingFrames(mApi->GetId())) {
// Render thread is busy, try next time.
if (!mSkippedComposite) {
// Only record the vsync id for the first skipped composite,
// since this matches what we do for compressing messages
// in CompositorVsyncScheduler::PostCompositeTask.
mSkippedComposite = true;
mSkippedCompositeId = aId;
}
mSkippedComposite = true;
mSkippedCompositeId = aId;
mPreviousFrameTimeStamp = TimeStamp();
// Record that we skipped presenting a frame for