Bug 911941 - Prevent TextureClients to be shared by several ImageLayers. r=Bas

This commit is contained in:
Nicolas Silva 2013-09-06 11:03:12 +02:00
parent 64da51905b
commit b14d7014f3

View File

@ -116,6 +116,12 @@ ImageClientSingle::UpdateImage(ImageContainer* aContainer,
// fast path: no need to allocate and/or copy image data
RefPtr<TextureClient> texture = image->AsSharedImage()->GetTextureClient();
if (texture->IsSharedWithCompositor()) {
// XXX - temporary fix for bug 911941
// This will be changed with bug 912907
return false;
}
if (mFrontBuffer) {
RemoveTextureClient(mFrontBuffer);
}