Bug 1309443 - Add more updating mNeedsFullUpdate r=nical

This commit is contained in:
Sotaro Ikeda 2016-10-12 22:19:32 -07:00
Родитель 898204c674
Коммит 74c5b567f4
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -546,7 +546,10 @@ BufferTextureHost::SetCompositor(Compositor* aCompositor)
if (mFirstSource && mFirstSource->IsOwnedBy(this)) {
mFirstSource->SetOwner(nullptr);
}
if (mFirstSource) {
mFirstSource = nullptr;
mNeedsFullUpdate = true;
}
mCompositor = aCompositor;
}
@ -717,6 +720,7 @@ BufferTextureHost::PrepareTextureSource(CompositableTextureSourceRef& aTexture)
aTexture->AsSourceBasic()->SetBufferTextureHost(this);
aTexture->AsDataTextureSource()->SetOwner(this);
mFirstSource = aTexture->AsDataTextureSource();
mNeedsFullUpdate = true;
}
if (!mHasIntermediateBuffer) {