Commit bc7b7ab0 by Frank Henigman Committed by Commit Bot

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/342843Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org> Commit-Queue: Frank Henigman <fjhenigman@chromium.org>
parent 0f2ef7f9
...@@ -1039,6 +1039,13 @@ ...@@ -1039,6 +1039,13 @@
'_XOPEN_SOURCE=600', '_XOPEN_SOURCE=600',
], ],
}], }],
['use_ozone==1',
{
'deqp_defines':
[
'ANGLE_USE_OZONE',
],
}],
], ],
}, },
'conditions': 'conditions':
......
...@@ -74,6 +74,17 @@ ANGLEPlatform::ANGLEPlatform() ...@@ -74,6 +74,17 @@ ANGLEPlatform::ANGLEPlatform()
m_nativeDisplayFactoryRegistry.registerFactory(d3d1193Factory); m_nativeDisplayFactoryRegistry.registerFactory(d3d1193Factory);
#endif // (DE_OS == DE_OS_WIN32) #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; std::vector<eglw::EGLAttrib> glAttribs;
glAttribs.push_back(EGL_PLATFORM_ANGLE_TYPE_ANGLE); glAttribs.push_back(EGL_PLATFORM_ANGLE_TYPE_ANGLE);
glAttribs.push_back(EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE); glAttribs.push_back(EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment