Bug 1687427 - Update display list when ExternalCompositing is changed r=mattwoodrow

When when TexutureHost's SupportsExternalCompositing is changed, display list needs to be updated.

Differential Revision: https://phabricator.services.mozilla.com/D102264
This commit is contained in:
sotaro
2021-01-19 21:42:57 +00:00
parent 0bbdb11c08
commit acd0ec363d
8 changed files with 46 additions and 18 deletions

View File

@@ -269,6 +269,13 @@ void GPUVideoTextureHost::PushDisplayItems(
aFilter, aImageKeys, aFlags);
}
bool GPUVideoTextureHost::SupportsExternalCompositing() {
if (!EnsureWrappedTextureHost()) {
return false;
}
return EnsureWrappedTextureHost()->SupportsExternalCompositing();
}
void GPUVideoTextureHost::UnbindTextureSource() {
if (EnsureWrappedTextureHost()) {
EnsureWrappedTextureHost()->UnbindTextureSource();