Commit be4a3683 by Jamie Madill Committed by Commit Bot

dEQP: Use overload of CreateWindow.

This allows us access to the EGLDisplay handle. This will be useful for passing along an error logging function. Bug: angleproject:2552 Change-Id: I98a170f419d728ca93558954be4e5c0511b0316b Reviewed-on: https://chromium-review.googlesource.com/1062790 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 9b1a9084
...@@ -132,6 +132,11 @@ class NativeWindowFactory : public eglu::NativeWindowFactory ...@@ -132,6 +132,11 @@ class NativeWindowFactory : public eglu::NativeWindowFactory
eglu::NativeWindow *createWindow(eglu::NativeDisplay *nativeDisplay, eglu::NativeWindow *createWindow(eglu::NativeDisplay *nativeDisplay,
const eglu::WindowParams &params) const override; const eglu::WindowParams &params) const override;
eglu::NativeWindow *createWindow(eglu::NativeDisplay *nativeDisplay,
eglw::EGLDisplay display,
eglw::EGLConfig config,
const eglw::EGLAttrib *attribList,
const eglu::WindowParams &params) const override;
private: private:
EventState *mEvents; EventState *mEvents;
...@@ -248,6 +253,16 @@ NativeWindowFactory::NativeWindowFactory(EventState *eventState) ...@@ -248,6 +253,16 @@ NativeWindowFactory::NativeWindowFactory(EventState *eventState)
eglu::NativeWindow *NativeWindowFactory::createWindow(eglu::NativeDisplay *nativeDisplay, eglu::NativeWindow *NativeWindowFactory::createWindow(eglu::NativeDisplay *nativeDisplay,
const eglu::WindowParams &params) const const eglu::WindowParams &params) const
{ {
DE_ASSERT(DE_FALSE);
return nullptr;
}
eglu::NativeWindow *NativeWindowFactory::createWindow(eglu::NativeDisplay *nativeDisplay,
eglw::EGLDisplay display,
eglw::EGLConfig config,
const eglw::EGLAttrib *attribList,
const eglu::WindowParams &params) const
{
return new NativeWindow(dynamic_cast<ANGLENativeDisplay *>(nativeDisplay), params, mEvents); return new NativeWindow(dynamic_cast<ANGLENativeDisplay *>(nativeDisplay), params, mEvents);
} }
......
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