Commit fed6d0e2 by Geoff Lang Committed by Commit Bot

Check for out-of-date swap chains during eglWait calls.

BUG=angleproject:1438 Change-Id: I9b8d0da30e41c133ee92685d00f5f0239c7b2574 Reviewed-on: https://chromium-review.googlesource.com/358490Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 73bd218e
......@@ -323,7 +323,12 @@ void DisplayD3D::generateCaps(egl::Caps *outCaps) const
egl::Error DisplayD3D::waitClient() const
{
// Unimplemented as it is a noop on D3D
for (auto &surface : getSurfaceSet())
{
SurfaceD3D *surfaceD3D = GetImplAs<SurfaceD3D>(surface);
surfaceD3D->checkForOutOfDateSwapChain();
}
return egl::Error(EGL_SUCCESS);
}
......@@ -331,7 +336,18 @@ egl::Error DisplayD3D::waitNative(EGLint engine,
egl::Surface *drawSurface,
egl::Surface *readSurface) const
{
// Unimplemented as it is a noop on D3D
if (drawSurface != nullptr)
{
SurfaceD3D *drawSurfaceD3D = GetImplAs<SurfaceD3D>(drawSurface);
drawSurfaceD3D->checkForOutOfDateSwapChain();
}
if (readSurface != nullptr)
{
SurfaceD3D *readurfaceD3D = GetImplAs<SurfaceD3D>(readSurface);
readurfaceD3D->checkForOutOfDateSwapChain();
}
return egl::Error(EGL_SUCCESS);
}
} // namespace rx
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