mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-31 21:21:08 +00:00
Bug 948955 - AddMaskEffect handles locking failure. r=bjacob
This commit is contained in:
parent
07c26e237c
commit
7841da0a81
@ -136,13 +136,11 @@ CompositableHost::AddMaskEffect(EffectChain& aEffects,
|
||||
{
|
||||
RefPtr<TextureSource> source;
|
||||
RefPtr<DeprecatedTextureHost> oldHost = GetDeprecatedTextureHost();
|
||||
if (oldHost) {
|
||||
oldHost->Lock();
|
||||
if (oldHost && oldHost->Lock()) {
|
||||
source = oldHost;
|
||||
} else {
|
||||
RefPtr<TextureHost> host = GetAsTextureHost();
|
||||
if (host) {
|
||||
host->Lock();
|
||||
if (host && host->Lock()) {
|
||||
source = host->GetTextureSources();
|
||||
}
|
||||
}
|
||||
|
@ -726,7 +726,9 @@ LayerManagerComposite::AutoAddMaskEffect::AutoAddMaskEffect(Layer* aMaskLayer,
|
||||
|
||||
gfx::Matrix4x4 transform;
|
||||
ToMatrix4x4(aMaskLayer->GetEffectiveTransform(), transform);
|
||||
mCompositable->AddMaskEffect(aEffects, transform, aIs3D);
|
||||
if (!mCompositable->AddMaskEffect(aEffects, transform, aIs3D)) {
|
||||
mCompositable = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
LayerManagerComposite::AutoAddMaskEffect::~AutoAddMaskEffect()
|
||||
|
Loading…
Reference in New Issue
Block a user