Bug 1181303. Set composition time earlier so that computing invalid regions works properly. r=mattwoodrow

--HG--
extra : commitid : 84TwJo9wYem
extra : rebase_source : 9c4214cfa919611ab542a89b3191c8b9915b63a6
This commit is contained in:
Robert O'Callahan 2015-07-08 08:50:29 +12:00
Родитель 8f92f8c5b0
Коммит 0aa93d50d6
1 изменённых файлов: 5 добавлений и 3 удалений

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

@ -272,6 +272,11 @@ LayerManagerComposite::EndTransaction(const TimeStamp& aTimeStamp,
return;
}
// Set composition timestamp here because we need it in
// ComputeEffectiveTransforms (so the correct video frame size is picked) and
// also to compute invalid regions properly.
mCompositor->SetCompositionTime(aTimeStamp);
if (mRoot && mClonedLayerTreeProperties) {
MOZ_ASSERT(!mTarget);
nsIntRegion invalid =
@ -290,9 +295,6 @@ LayerManagerComposite::EndTransaction(const TimeStamp& aTimeStamp,
if (mRoot && !(aFlags & END_NO_IMMEDIATE_REDRAW)) {
MOZ_ASSERT(!aTimeStamp.IsNull());
// Set composition timestamp here because we need it in
// ComputeEffectiveTransforms (so the correct video frame size is picked)
mCompositor->SetCompositionTime(aTimeStamp);
// The results of our drawing always go directly into a pixel buffer,
// so we don't need to pass any global transform here.
mRoot->ComputeEffectiveTransforms(gfx::Matrix4x4());