зеркало из https://github.com/mozilla/gecko-dev.git
Bug 915869 - Let the GrallocBufferActor inform its old TextureHost when it's switching to another TextureHost - r=jrmuizel
This commit is contained in:
Родитель
ed51129da7
Коммит
c37a134542
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче