Bug 1186968 - Fix Compositor::SetScreenRotation() call r=nical

This commit is contained in:
Sotaro Ikeda 2015-07-24 07:13:59 -07:00
parent 8af3ab8b39
commit 9871ff0626
2 changed files with 1 additions and 5 deletions

View File

@ -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();

View File

@ -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);