Hash :
fce1e2d1
Author :
Date :
2019-06-04T15:02:08
Extend eglGetPlatformDisplay to allow feature overrides. Add EGL_FEATURE_OVERRIDES_ENABLED_ANGLE and EGL_FEATURE_OVERRIDES_DISABLED_ANGLE to submit lists of strings naming the features that should be overridden (either enabled or disabled) on display creation. Bug: angleproject:1621 Change-Id: I4bb75c5dbab0e3b701a72069c38f8c60ecfffad2 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1646595 Commit-Queue: Jonah Ryan-Davis <jonahr@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org>
The EGL headers ANGLE uses are generated using the Khronos tools but modified to include function pointer types and function prototype guards.
Install Python 3 (not 2) with the lxml addon. You can do this using pip install lxml from your Python’s Scripts folder.
Edit EGL-Registry/api/genheaders.py:
# EGL API - EGL/egl.h (no function pointers, yet @@@) genFuncPointers = False, to genFuncPointers = True, protectProto = False, to protectProto = 'nonzero', protectProtoStr = 'EGL_EGLEXT_PROTOTYPES', to protectProtoStr = 'EGL_EGL_PROTOTYPES',
Set your working directory to EGL-Registry/api/.
Run python genheaders.py -registry egl.xml EGL/egl.h
The generated header will now be in EGL-Registry/api/EGL/egl.h. You can copy the header over to this folder.
Also update scripts/egl.xml with the latest version from EGL-Registry/api/.