mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Bug 1186968 - Fix Compositor::SetScreenRotation() call r=nical
This commit is contained in:
parent
8af3ab8b39
commit
9871ff0626
@ -1264,6 +1264,7 @@ CompositorParent::ShadowLayersUpdated(LayerTransactionParent* aLayerTree,
|
|||||||
// race condition.
|
// race condition.
|
||||||
mLayerManager->UpdateRenderBounds(aTargetConfig.naturalBounds());
|
mLayerManager->UpdateRenderBounds(aTargetConfig.naturalBounds());
|
||||||
mLayerManager->SetRegionToClear(aTargetConfig.clearRegion());
|
mLayerManager->SetRegionToClear(aTargetConfig.clearRegion());
|
||||||
|
mLayerManager->GetCompositor()->SetScreenRotation(aTargetConfig.rotation());
|
||||||
|
|
||||||
mCompositionManager->Updated(aIsFirstPaint, aTargetConfig);
|
mCompositionManager->Updated(aIsFirstPaint, aTargetConfig);
|
||||||
Layer* root = aLayerTree->GetRoot();
|
Layer* root = aLayerTree->GetRoot();
|
||||||
|
@ -245,11 +245,6 @@ LayerTransactionParent::RecvUpdate(InfallibleTArray<Edit>&& cset,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mLayerManager && mLayerManager->GetCompositor() &&
|
|
||||||
!targetConfig.naturalBounds().IsEmpty()) {
|
|
||||||
mLayerManager->GetCompositor()->SetScreenRotation(targetConfig.rotation());
|
|
||||||
}
|
|
||||||
|
|
||||||
EditReplyVector replyv;
|
EditReplyVector replyv;
|
||||||
AutoLayerTransactionParentAsyncMessageSender autoAsyncMessageSender(this);
|
AutoLayerTransactionParentAsyncMessageSender autoAsyncMessageSender(this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user