Bug 1556433 - disable shared buffer provider when using direct texture mapping. r=nical

Differential Revision: https://phabricator.services.mozilla.com/D34242

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Lee Salzman 2019-06-10 09:23:17 +00:00
Родитель 7c09d4b7af
Коммит 06b9f322b2
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -100,7 +100,10 @@ PersistentBufferProviderShared::Create(gfx::IntSize aSize,
gfx::SurfaceFormat aFormat,
KnowsCompositor* aKnowsCompositor) {
if (!aKnowsCompositor ||
!aKnowsCompositor->GetTextureForwarder()->IPCOpen()) {
!aKnowsCompositor->GetTextureForwarder()->IPCOpen() ||
// Bug 1556433 - shared buffer provider and direct texture mapping do not
// synchronize properly
aKnowsCompositor->SupportsTextureDirectMapping()) {
return nullptr;
}