Bug 1653355 - Also use the output time for picking video frames in non-WebRender. r=nical

Depends on D83830

Differential Revision: https://phabricator.services.mozilla.com/D84112
This commit is contained in:
Markus Stange 2020-07-20 20:12:24 +00:00
Родитель 62c9e985a3
Коммит 3325824c2d
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1010,6 +1010,7 @@ void CompositorBridgeParent::CompositeToTarget(VsyncId aId, DrawTarget* aTarget,
mTestTime.valueOr(mCompositorScheduler->GetLastComposeTime());
bool requestNextFrame =
mCompositionManager->TransformShadowTree(time, mVsyncRate);
TimeStamp outputTime = mCompositorScheduler->GetLastVsyncOutputTime();
if (requestNextFrame) {
ScheduleComposition();
@ -1030,7 +1031,7 @@ void CompositorBridgeParent::CompositeToTarget(VsyncId aId, DrawTarget* aTarget,
mLayerManager->Dump(/* aSorted = */ true);
}
mLayerManager->SetDebugOverlayWantsNextFrame(false);
mLayerManager->EndTransaction(time);
mLayerManager->EndTransaction(outputTime);
if (!aTarget) {
TimeStamp end = TimeStamp::Now();