Bug 1071241. Call ComputeRotation before TransformShadowTree. r=mwoodrow

This is need so that the rotation transform is available at
transform time. Without this rotation is delayed a frame.
This commit is contained in:
Jeff Muizelaar 2014-09-30 10:07:05 -04:00
parent b9a248bfae
commit 3862451b01

View File

@ -685,6 +685,8 @@ CompositorParent::CompositeToTarget(DrawTarget* aTarget, const nsIntRect* aRect)
}
}
mCompositionManager->ComputeRotation();
TimeStamp time = mIsTesting ? mTestTime : mLastCompose;
bool requestNextFrame = mCompositionManager->TransformShadowTree(time);
if (requestNextFrame) {
@ -693,8 +695,6 @@ CompositorParent::CompositeToTarget(DrawTarget* aTarget, const nsIntRect* aRect)
RenderTraceLayers(mLayerManager->GetRoot(), "0000");
mCompositionManager->ComputeRotation();
#ifdef MOZ_DUMP_PAINTING
static bool gDumpCompositorTree = false;
if (gDumpCompositorTree) {