Free OSWindow and EGLWindow through helpers.

This cleans up any potential problems with allocating and freeing
resources in different shared objects or DLLs. Previously we were
using a dynamically linked allocation function and then calling
the standard delete function.

Also adds a base class helper for EGLWindow. Will base the WGL
Window class on this.

Needed for running ANGLE tests against native drivers.

Bug: angleproject:2995
Change-Id: Ic92b447649ebb32c547605c20086c07a601842f0
Reviewed-on: https://chromium-review.googlesource.com/c/1393443
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
This commit is contained in:
Jamie Madill
2019-01-03 13:01:08 -05:00
committed by Commit Bot
parent 9fa54eab25
commit ad398ee839
32 changed files with 609 additions and 411 deletions

View File

@@ -14,7 +14,7 @@
int main(int argc, char *argv[])
{
OSWindow *window = CreateOSWindow();
OSWindow *window = OSWindow::New();
int width = 400;
int height = 400;
int x = 0;