[test] OpenGL unit tests

This CL moves MyEGL/GLESv2/Dispatch into a more
general location---emugl_common---allowing
us to dispatch underlying GLESv2/EGL libs
from other places in the emulator than qt gl widget,
and introduces code for OpenGL unit tests,
along with a basic context creation unit tests.

We can now do offscreen-rendering type unit tests
with OpenGL. This is very helpful for debugging
host-side OpenGL issues, rather than going through
X11 / WGL from the ground up to repro OpenGL cases.

This should also be useful for testing snapshots.

Usage:

qemu dir -> cwd
DYLD_LIBRARY_PATH (or platform equivalent)=objs/lib64
objs/lib64OpenglRender_unittests --gtest_also_run_disabled_tests

should run at least basic context creation and dispatch.

Change-Id: If89966156bb4978a302fd94a96d77e5ce1552c03
1 file changed
tree: bafd7143deaa240e95abeff74f33e43f4f249d1a
  1. android/
  2. host/
  3. .gitignore