Bug 915869 - Let the GrallocBufferActor inform its old TextureHost when it's switching to another TextureHost - r=jrmuizel

This commit is contained in:
Benoit Jacob 2013-09-17 14:47:27 -04:00
Родитель ed51129da7
Коммит c37a134542
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -273,11 +273,17 @@ void GrallocBufferActor::ActorDestroy(ActorDestroyReason)
if (mDeprecatedTextureHost) {
mDeprecatedTextureHost->ForgetBuffer();
}
mDeprecatedTextureHost = nullptr;
}
// used only for hacky fix in gecko 23 for bug 862324
void GrallocBufferActor::SetDeprecatedTextureHost(DeprecatedTextureHost* aDeprecatedTextureHost)
{
if (mDeprecatedTextureHost &&
mDeprecatedTextureHost != aDeprecatedTextureHost)
{
mDeprecatedTextureHost->ForgetBuffer();
}
mDeprecatedTextureHost = aDeprecatedTextureHost;
}