mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
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:
parent
3a7fba9cb8
commit
becd2488d6
@ -1688,13 +1688,8 @@ void WebRenderBridgeParent::CompositeToTarget(VsyncId aId,
|
|||||||
if (mSkippedComposite ||
|
if (mSkippedComposite ||
|
||||||
wr::RenderThread::Get()->TooManyPendingFrames(mApi->GetId())) {
|
wr::RenderThread::Get()->TooManyPendingFrames(mApi->GetId())) {
|
||||||
// Render thread is busy, try next time.
|
// Render thread is busy, try next time.
|
||||||
if (!mSkippedComposite) {
|
mSkippedComposite = true;
|
||||||
// Only record the vsync id for the first skipped composite,
|
mSkippedCompositeId = aId;
|
||||||
// since this matches what we do for compressing messages
|
|
||||||
// in CompositorVsyncScheduler::PostCompositeTask.
|
|
||||||
mSkippedComposite = true;
|
|
||||||
mSkippedCompositeId = aId;
|
|
||||||
}
|
|
||||||
mPreviousFrameTimeStamp = TimeStamp();
|
mPreviousFrameTimeStamp = TimeStamp();
|
||||||
|
|
||||||
// Record that we skipped presenting a frame for
|
// Record that we skipped presenting a frame for
|
||||||
|
Loading…
Reference in New Issue
Block a user