Bug 1699588 - Enable external compositing of SurfaceTexture with sw-wr r=gfx-reviewers,lsalzman

SurfaceTexture handling for external compositing is implemented in RenderCompositorOGLSWGL::HandleExternalImage().

Differential Revision: https://phabricator.services.mozilla.com/D115338
This commit is contained in:
sotaro 2021-05-21 15:56:16 +00:00
Родитель 6af282754f
Коммит 67d884b3c0
2 изменённых файлов: 7 добавлений и 0 удалений

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

@ -732,6 +732,11 @@ void SurfaceTextureHost::PushDisplayItems(wr::DisplayListBuilder& aBuilder,
}
}
bool SurfaceTextureHost::SupportsExternalCompositing(
WebRenderBackend aBackend) {
return aBackend == WebRenderBackend::SOFTWARE;
}
////////////////////////////////////////////////////////////////////////
// AndroidHardwareBufferTextureHost

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

@ -452,6 +452,8 @@ class SurfaceTextureHost : public TextureHost {
const Range<wr::ImageKey>& aImageKeys,
PushDisplayItemFlagSet aFlags) override;
bool SupportsExternalCompositing(WebRenderBackend aBackend) override;
// gecko does not need deferred deletion with WebRender
// GPU/hardware task end could be checked by android fence.
// SurfaceTexture uses android fence internally,