зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1309443 - Add more updating mNeedsFullUpdate r=nical
This commit is contained in:
Родитель
898204c674
Коммит
74c5b567f4
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче