mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1043426 - Don't crash when failing to upload apply a maskon a container layer. r=Bas
This commit is contained in:
parent
152e8a83e3
commit
6cb31479a7
@ -530,6 +530,10 @@ ContainerRender(ContainerT* aContainer,
|
||||
LayerManagerComposite::AutoAddMaskEffect autoMaskEffect(aContainer->GetMaskLayer(),
|
||||
effectChain,
|
||||
!aContainer->GetTransform().CanDraw2D());
|
||||
if (autoMaskEffect.Failed()) {
|
||||
NS_WARNING("Failed to apply a mask effect.");
|
||||
return;
|
||||
}
|
||||
|
||||
aContainer->AddBlendModeEffect(effectChain);
|
||||
effectChain.mPrimaryEffect = new EffectRenderTarget(surface);
|
||||
|
@ -184,6 +184,7 @@ public:
|
||||
bool aIs3D = false);
|
||||
~AutoAddMaskEffect();
|
||||
|
||||
bool Failed() const { return !mCompositable; }
|
||||
private:
|
||||
CompositableHost* mCompositable;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user