Bug 1182147: Ensure ImageHost does not attempt to call DrawQuad with an effect unsupported by the compositor. r=nical

This commit is contained in:
Bas Schouten
2015-09-04 18:31:52 +00:00
parent ab4e83f3ba
commit ff5eb8de72
2 changed files with 5 additions and 1 deletions

View File

@@ -312,6 +312,10 @@ ImageHost::Composite(LayerComposite* aLayer,
return;
}
if (!GetCompositor()->SupportsEffect(effect->mType)) {
return;
}
if (mLastFrameID != img->mFrameID || mLastProducerID != img->mProducerID) {
if (mImageContainer) {
aLayer->GetLayerManager()->