зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1717151 - Move EGL_EXT_device_query from device exts to client exts. r=lsalzman
This moved due to a fix in ANGLE 56663dbfa78 on 2020-nov-19. Differential Revision: https://phabricator.services.mozilla.com/D121561
This commit is contained in:
Родитель
6c765664f2
Коммит
002654edda
|
@ -51,9 +51,12 @@ namespace gl {
|
|||
|
||||
// should match the order of EGLExtensions, and be null-terminated.
|
||||
static const char* sEGLLibraryExtensionNames[] = {
|
||||
"EGL_ANDROID_get_native_client_buffer", "EGL_ANGLE_device_creation",
|
||||
"EGL_ANGLE_device_creation_d3d11", "EGL_ANGLE_platform_angle",
|
||||
"EGL_ANGLE_platform_angle_d3d"};
|
||||
"EGL_ANDROID_get_native_client_buffer",
|
||||
"EGL_ANGLE_device_creation",
|
||||
"EGL_ANGLE_device_creation_d3d11",
|
||||
"EGL_ANGLE_platform_angle",
|
||||
"EGL_ANGLE_platform_angle_d3d",
|
||||
"EGL_EXT_device_query"};
|
||||
|
||||
// should match the order of EGLExtensions, and be null-terminated.
|
||||
static const char* sEGLExtensionNames[] = {
|
||||
|
@ -71,7 +74,6 @@ static const char* sEGLExtensionNames[] = {
|
|||
"EGL_KHR_create_context",
|
||||
"EGL_KHR_stream",
|
||||
"EGL_KHR_stream_consumer_gltexture",
|
||||
"EGL_EXT_device_query",
|
||||
"EGL_NV_stream_consumer_gltexture_yuv",
|
||||
"EGL_ANGLE_stream_producer_d3d_texture",
|
||||
"EGL_KHR_surfaceless_context",
|
||||
|
|
|
@ -69,6 +69,7 @@ enum class EGLLibExtension {
|
|||
ANGLE_device_creation_d3d11,
|
||||
ANGLE_platform_angle,
|
||||
ANGLE_platform_angle_d3d,
|
||||
EXT_device_query,
|
||||
Max
|
||||
};
|
||||
|
||||
|
@ -94,7 +95,6 @@ enum class EGLExtension {
|
|||
KHR_create_context,
|
||||
KHR_stream,
|
||||
KHR_stream_consumer_gltexture,
|
||||
EXT_device_query,
|
||||
NV_stream_consumer_gltexture_yuv,
|
||||
ANGLE_stream_producer_d3d_texture,
|
||||
KHR_surfaceless_context,
|
||||
|
@ -761,7 +761,7 @@ class EglDisplay final {
|
|||
|
||||
// EXT_device_query
|
||||
EGLBoolean fQueryDisplayAttribEXT(EGLint attribute, EGLAttrib* value) const {
|
||||
MOZ_ASSERT(IsExtensionSupported(EGLExtension::EXT_device_query));
|
||||
MOZ_ASSERT(mLib->IsExtensionSupported(EGLLibExtension::EXT_device_query));
|
||||
return mLib->fQueryDisplayAttribEXT(mDisplay, attribute, value);
|
||||
}
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ ID3D11Device* RenderCompositorANGLE::GetDeviceOfEGLDisplay(nsACString& aError) {
|
|||
const auto& gle = gl::GLContextEGL::Cast(gl);
|
||||
const auto& egl = gle->mEgl;
|
||||
MOZ_ASSERT(egl);
|
||||
if (!egl || !egl->IsExtensionSupported(gl::EGLExtension::EXT_device_query)) {
|
||||
if (!egl || !egl->mLib->IsExtensionSupported(gl::EGLLibExtension::EXT_device_query)) {
|
||||
aError.Assign("RcANGLE(no EXT_device_query support)"_ns);
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче