Bug 1119019 - Avoid destroying a SharedSurface before its TextureClient/Host pair. r=sotaro

This commit is contained in:
Nicolas Silva
2015-01-23 15:35:16 +01:00
parent 5ba926b1a8
commit 8b8e48c853
4 changed files with 29 additions and 7 deletions

View File

@@ -503,10 +503,10 @@ TextureClient::KeepUntilFullDeallocation(KeepAlive* aKeep)
mActor->mKeep = aKeep;
}
void TextureClient::ForceRemove()
void TextureClient::ForceRemove(bool sync)
{
if (mValid && mActor) {
if (GetFlags() & TextureFlags::DEALLOCATE_CLIENT) {
if (sync || GetFlags() & TextureFlags::DEALLOCATE_CLIENT) {
MOZ_PERFORMANCE_WARNING("gfx", "TextureClient/Host pair requires synchronous deallocation");
if (mActor->IPCOpen()) {
mActor->SendClearTextureHostSync();