зеркало из https://github.com/mozilla/gecko-dev.git
Bug 950113 - Avoid destroying our texture everytime we composite a ImageHost - r=nical
This commit is contained in:
Родитель
9baee632d4
Коммит
1dd66d999b
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче