Bug 950113 - Avoid destroying our texture everytime we composite a ImageHost - r=nical

This commit is contained in:
Benoit Jacob 2014-01-15 07:45:28 -05:00
Родитель 9baee632d4
Коммит 1dd66d999b
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -38,12 +38,6 @@ ImageHost::~ImageHost() {}
void
ImageHost::UseTextureHost(TextureHost* aTexture)
{
if (mFrontBuffer) {
// XXX - When we implement sharing textures between several compositables
// we will need to not remove the compositor if there is another compositable
// using the texture.
mFrontBuffer->SetCompositor(nullptr);
}
CompositableHost::UseTextureHost(aTexture);
mFrontBuffer = aTexture;
}