зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
6e2d772246
Коммит
1c07029298
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче