Bug 1650113 [Linux] Use DMABufTextures only when Wayland support is build, r=sotaro

Differential Revision: https://phabricator.services.mozilla.com/D82177
This commit is contained in:
Martin Stransky 2020-07-03 12:59:53 +00:00
Родитель 6e2d772246
Коммит 1c07029298
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -86,9 +86,11 @@ already_AddRefed<ContentClient> ContentClient::CreateContentClient(
#endif
{
#ifdef MOZ_WIDGET_GTK
# ifdef MOZ_WAYLAND
if (gfxPlatformGtk::GetPlatform()->UseDMABufTextures()) {
useDoubleBuffering = true;
} else
# endif
// We can't use double buffering when using image content with
// Xrender support on Linux, as ContentHostDoubleBuffered is not
// suited for direct uploads to the server.