dEQP: Enable CreateSurfacePlatformEXT tests

Add the corresponding capability to NativeWindow and implement
getPlatformExtension virtual method to return a native pointer that can
be used with eglCreatePlatformWindowSurfaceEXT().

Bug: angleproject:6961
Change-Id: Ieb1a1fd8b3cae4e6f199c269f3922cbd0307aa35
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3452102
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Auto-Submit: Antonio Caggiano <antonio.caggiano@collabora.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
Antonio Caggiano
2022-02-10 11:33:32 +01:00
committed by Angle LUCI CQ
parent b92ebdb73a
commit 2a9c4b01bf
6 changed files with 28 additions and 2 deletions

View File

@@ -389,6 +389,11 @@ bool OSWindow::takeScreenshot(uint8_t *pixelData)
return false;
}
void *OSWindow::getPlatformExtension()
{
return reinterpret_cast<void *>(getNativeWindow());
}
bool OSWindow::popEvent(Event *event)
{
if (mEvents.size() > 0 && event)