зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1434574 - Build wayland with EGL OpenGL backend, r=glandium
MozReview-Commit-ID: LpGmUVOYqRI --HG-- extra : rebase_source : f26825fedcf66b6bdb2bcb32093b1d4451fe60e7
This commit is contained in:
Родитель
cf5439d414
Коммит
bdd7d89f6c
|
@ -41,7 +41,7 @@ namespace gl {
|
|||
#define GL_CONTEXT_PROVIDER_DEFAULT GLContextProviderCGL
|
||||
#endif
|
||||
|
||||
#if defined(MOZ_X11)
|
||||
#if defined(MOZ_X11) && !defined(MOZ_WAYLAND)
|
||||
#define GL_CONTEXT_PROVIDER_NAME GLContextProviderGLX
|
||||
#include "GLContextProviderImpl.h"
|
||||
#undef GL_CONTEXT_PROVIDER_NAME
|
||||
|
|
|
@ -13,7 +13,7 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|||
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'uikit':
|
||||
gl_provider = 'EAGL'
|
||||
elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
if CONFIG['MOZ_EGL_XRENDER_COMPOSITE']:
|
||||
if CONFIG['MOZ_EGL_XRENDER_COMPOSITE'] or CONFIG['MOZ_WAYLAND']:
|
||||
gl_provider = 'EGL'
|
||||
else:
|
||||
gl_provider = 'GLX'
|
||||
|
|
|
@ -214,10 +214,12 @@ def gl_provider_define(provider):
|
|||
|
||||
set_define('MOZ_GL_PROVIDER', gl_provider_define)
|
||||
|
||||
@depends(gl_provider, x11)
|
||||
def gl_default_provider(value, x11):
|
||||
@depends(gl_provider, wayland, x11)
|
||||
def gl_default_provider(value, wayland, x11):
|
||||
if value:
|
||||
return value
|
||||
elif wayland:
|
||||
return 'EGL'
|
||||
elif x11:
|
||||
return 'GLX'
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче