зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1265468 - Invalidate all layers when dragging a tab to a new window. r=nical
This commit is contained in:
Родитель
3e12e32dc1
Коммит
de6a18cca7
|
@ -68,6 +68,7 @@ public:
|
|||
{
|
||||
LayerComposite::SetLayerManager(aManager);
|
||||
mManager = aManager;
|
||||
mLastIntermediateSurface = nullptr;
|
||||
|
||||
for (Layer* l = GetFirstChild(); l; l = l->GetNextSibling()) {
|
||||
LayerComposite* child = l->AsLayerComposite();
|
||||
|
|
|
@ -1637,9 +1637,6 @@ CompositorBridgeParent::RecvAdoptChild(const uint64_t& child)
|
|||
if (sIndirectLayerTrees[child].mLayerTree) {
|
||||
sIndirectLayerTrees[child].mLayerTree->mLayerManager = mLayerManager;
|
||||
}
|
||||
if (sIndirectLayerTrees[child].mRoot) {
|
||||
sIndirectLayerTrees[child].mRoot->AsLayerComposite()->SetLayerManager(mLayerManager);
|
||||
}
|
||||
controller = sIndirectLayerTrees[child].mController;
|
||||
}
|
||||
|
||||
|
|
|
@ -1005,6 +1005,8 @@ CompositorOGL::DrawQuad(const Rect& aRect,
|
|||
return;
|
||||
}
|
||||
|
||||
MakeCurrent();
|
||||
|
||||
IntPoint offset = mCurrentRenderTarget->GetOrigin();
|
||||
IntSize size = mCurrentRenderTarget->GetSize();
|
||||
|
||||
|
|
|
@ -212,6 +212,7 @@ RenderFrameParent::OwnerContentChanged(nsIContent* aContent)
|
|||
// Perhaps the document containing this frame currently has no presentation?
|
||||
if (lm && lm->AsClientLayerManager()) {
|
||||
lm->AsClientLayerManager()->GetRemoteRenderer()->SendAdoptChild(mLayersId);
|
||||
FrameLayerBuilder::InvalidateAllLayers(lm);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче