зеркало из https://github.com/AvaloniaUI/angle.git
dEQP: Add GL ES display factory.
So we can run dEQP on the GL ES back end. BUG=angleproject:1371 Change-Id: I7694d766f04997f9ba60ad0dd0bb4b30e714b4ae Reviewed-on: https://chromium-review.googlesource.com/342843 Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org> Commit-Queue: Frank Henigman <fjhenigman@chromium.org>
This commit is contained in:
Родитель
0f2ef7f93d
Коммит
bc7b7ab08d
|
@ -1039,6 +1039,13 @@
|
|||
'_XOPEN_SOURCE=600',
|
||||
],
|
||||
}],
|
||||
['use_ozone==1',
|
||||
{
|
||||
'deqp_defines':
|
||||
[
|
||||
'ANGLE_USE_OZONE',
|
||||
],
|
||||
}],
|
||||
],
|
||||
},
|
||||
'conditions':
|
||||
|
|
|
@ -74,6 +74,17 @@ ANGLEPlatform::ANGLEPlatform()
|
|||
m_nativeDisplayFactoryRegistry.registerFactory(d3d1193Factory);
|
||||
#endif // (DE_OS == DE_OS_WIN32)
|
||||
|
||||
#ifdef ANGLE_USE_OZONE
|
||||
std::vector<eglw::EGLAttrib> glesAttribs;
|
||||
glesAttribs.push_back(EGL_PLATFORM_ANGLE_TYPE_ANGLE);
|
||||
glesAttribs.push_back(EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE);
|
||||
glesAttribs.push_back(EGL_NONE);
|
||||
|
||||
auto *glesFactory = new ANGLENativeDisplayFactory(
|
||||
"angle-gles", "ANGLE OpenGL ES Display", glesAttribs, &mEvents);
|
||||
m_nativeDisplayFactoryRegistry.registerFactory(glesFactory);
|
||||
#endif
|
||||
|
||||
std::vector<eglw::EGLAttrib> glAttribs;
|
||||
glAttribs.push_back(EGL_PLATFORM_ANGLE_TYPE_ANGLE);
|
||||
glAttribs.push_back(EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче