Handle failed SendPCompositable. (bug 1313770 part 4, r=mattwoodrow)

--HG--
extra : rebase_source : 15bbe1c0bd61f3f8698ab296fc52d676e758ea38
This commit is contained in:
David Anderson 2016-10-28 15:48:35 -07:00
parent a5058127f9
commit 4ad2f45f29

View File

@ -775,7 +775,9 @@ ShadowLayerForwarder::Connect(CompositableClient* aCompositable,
}
PCompositableChild* actor =
mShadowManager->SendPCompositableConstructor(aCompositable->GetTextureInfo());
MOZ_ASSERT(actor);
if (!actor) {
return;
}
aCompositable->InitIPDLActor(actor);
}