util: Add calls for createImage* and destroyImage* to GLWindow

This adds the interface to the GLWindowBase, an implementation to
EGLWindow, and placeholder functions to WGLWindow.

Bug: angleproject:4964
Change-Id: Ia13f5237500cece9564910c95c6c5eea67ca022d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3637559
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Gert Wollny <gert.wollny@collabora.com>
This commit is contained in:
Gert Wollny
2022-05-10 13:02:03 +02:00
committed by Angle LUCI CQ
parent 486ae89e43
commit 029a4c9483
4 changed files with 94 additions and 0 deletions

View File

@@ -350,6 +350,36 @@ bool WGLWindow::makeCurrent(HGLRC context)
return true;
}
WGLWindow::Image WGLWindow::createImage(GLWindowContext context,
Enum target,
ClientBuffer buffer,
const Attrib *attrib_list)
{
std::cerr << "WGLWindow::createImage not implemented.\n";
return nullptr;
}
WGLWindow::Image WGLWindow::createImageKHR(GLWindowContext context,
Enum target,
ClientBuffer buffer,
const AttribKHR *attrib_list)
{
std::cerr << "WGLWindow::createImageKHR not implemented.\n";
return nullptr;
}
EGLBoolean WGLWindow::destroyImage(Image image)
{
std::cerr << "WGLWindow::destroyImage not implemented.\n";
return EGL_FALSE;
}
EGLBoolean WGLWindow::destroyImageKHR(Image image)
{
std::cerr << "WGLWindow::destroyImageKHR not implemented.\n";
return EGL_FALSE;
}
bool WGLWindow::setSwapInterval(EGLint swapInterval)
{
if (!_wglSwapIntervalEXT || _wglSwapIntervalEXT(swapInterval) == FALSE)